java.lang.Object
ovh.paulem.arcana.regions.container.WorldBlockContainer<S,K>
- Type Parameters:
S- The type of the tracked entities being managed, which extendsTracked.K- The type of the key associated with the tracked entities, which extendsWorldKey.
- All Implemented Interfaces:
SubContainerHolderAccessor<S,K>
public class WorldBlockContainer<S extends Tracked<K>,K extends WorldKey>
extends Object
implements SubContainerHolderAccessor<S,K>
Represents a container for managing block-related data across a specific world,
organized into smaller chunk-based containers.
-
Method Summary
Modifier and TypeMethodDescriptionCollection<Holder<S, K>> @Nullable ChunkBlockContainer<S, K> getHolder(int x, int y, int z) org.bukkit.WorldgetWorld()static <S extends Tracked<K>,K extends WorldKey>
WorldBlockContainer<S, K> static <S extends Tracked<K>,K extends WorldKey>
WorldBlockContainer<S, K> of(org.bukkit.World world) voidremoveChunkContainer(org.bukkit.Chunk chunk) voidvoidremoveHolder(int x, int y, int z) void
-
Method Details
-
of
-
of
public static <S extends Tracked<K>,K extends WorldKey> WorldBlockContainer<S,K> of(org.bukkit.World world) -
getWorld
public org.bukkit.World getWorld() -
getChunkContainer
-
getOrCreateChunkContainer
-
removeChunkContainer
-
removeChunkContainer
public void removeChunkContainer(org.bukkit.Chunk chunk) -
getHolder
-
setHolder
-
removeHolder
public void removeHolder(int x, int y, int z) - Specified by:
removeHolderin interfaceSubContainerHolderAccessor<S extends Tracked<K>,K extends WorldKey>
-
getAllHolders
- Specified by:
getAllHoldersin interfaceSubContainerHolderAccessor<S extends Tracked<K>,K extends WorldKey>
-