mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-25 16:45:28 +02:00
add more sensibly named API for grabbing the UserBlockTracker
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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 {
|
||||
/**
|
||||
|
Reference in New Issue
Block a user