java.lang.Object
ovh.paulem.arcana.regions.container.ChunkSectionBlockContainer<S,K>
- Type Parameters:
S- The type of entities being tracked and managed, which extendsTracked.K- The type of the key associated with the tracked entities, which extendsWorldKey.
- All Implemented Interfaces:
SubContainerHolderAccessor<S,K>
public class ChunkSectionBlockContainer<S extends Tracked<K>,K extends WorldKey>
extends Object
implements SubContainerHolderAccessor<S,K>
Represents a container for managing blocks within a specific vertical section of a chunk.
Each ChunkSectionBlockContainer instance corresponds to a single section, providing management
for tracked entities within that section. This container is optimized for organizing and accessing
data based on three-dimensional coordinates (x, y, z) relative to the chunk section.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Collection<Holder<S, K>> getHolder(int x, int y, int z) static <S extends Tracked<K>,K extends WorldKey>
ChunkSectionBlockContainer<S, K> of(ChunkBlockContainer<S, K> parent, int sectionY) voidremoveHolder(int x, int y, int z) void
-
Method Details
-
of
public static <S extends Tracked<K>,K extends WorldKey> ChunkSectionBlockContainer<S,K> of(ChunkBlockContainer<S, K> parent, int sectionY) -
getHolder
-
setHolder
-
removeHolder
public void removeHolder(int x, int y, int z) - Specified by:
removeHolderin interfaceSubContainerHolderAccessor<S extends Tracked<K>,K extends WorldKey>
-
clear
public void clear() -
getAllHolders
- Specified by:
getAllHoldersin interfaceSubContainerHolderAccessor<S extends Tracked<K>,K extends WorldKey>
-