add more sensibly named API for grabbing the UserBlockTracker

This commit is contained in:
nossr50
2024-05-19 12:58:13 -07:00
parent 8b82163e3d
commit 9b09f06ad8
14 changed files with 58 additions and 31 deletions

View File

@@ -65,7 +65,7 @@ public final class BlockUtils {
* @param block target block
*/
public static void setUnnaturalBlock(@NotNull Block block) {
mcMMO.getPlaceStore().setIneligible(block);
mcMMO.getUserBlockTracker().setIneligible(block);
// Failsafe against lingering metadata
if (block.hasMetadata(MetadataConstants.METADATA_KEY_BONUS_DROPS))
@@ -82,7 +82,7 @@ public final class BlockUtils {
block.removeMetadata(MetadataConstants.METADATA_KEY_REPLANT, mcMMO.p);
}
mcMMO.getPlaceStore().setEligible(block);
mcMMO.getUserBlockTracker().setEligible(block);
}
/**

View File

@@ -7,7 +7,7 @@ import org.jetbrains.annotations.NotNull;
/**
* Contains blockstore methods that are safe for external plugins to access.
* An instance can be retrieved via {@link mcMMO#getPlaceStore() mcMMO.getPlaceStore()}
* An instance can be retrieved via {@link mcMMO#getUserBlockTracker() mcMMO.getPlaceStore()}
*/
public interface UserBlockTracker {
/**