java.lang.Object
ovh.paulem.arcana.regions.container.ChunkBlockContainer<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 ChunkBlockContainer<S extends Tracked<K>,K extends WorldKey>
extends Object
implements SubContainerHolderAccessor<S,K>
Represents a container for managing and organizing data within a specific chunk of the world.
This container divides the chunk into sections based on the vertical axis, allowing for more
granular management of data associated with tracked entities.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Collection<Holder<S, K>> getHolder(int x, int y, int z) getOrCreateSection(int sectionY) getSection(int sectionY) static <S extends Tracked<K>,K extends WorldKey>
ChunkBlockContainer<S, K> of(WorldBlockContainer<S, K> parent, ChunkKey chunkKey) voidremoveHolder(int x, int y, int z) voidremoveSection(ChunkSectionBlockContainer<S, K> section) void
-
Method Details
-
of
public static <S extends Tracked<K>,K extends WorldKey> ChunkBlockContainer<S,K> of(WorldBlockContainer<S, K> parent, ChunkKey chunkKey) -
getSection
-
getOrCreateSection
-
removeSection
-
clear
public void clear() -
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>
-