classpublicPriority 3
BlockComponentChunk
com.hypixel.hytale.server.core.universe.world.chunk.BlockComponentChunk
implements Component
23
Methods
23
Public Methods
5
Fields
2
Constructors
Constants
BuilderCodec<BlockComponentChunk>CODEC= BuilderCodec.builder(BlockComponentChunk.class, BlockComponentChunk::new)
.addField(
...
HytaleLoggerLOGGER= HytaleLogger.forEnclosingClass()
Constructors
public
BlockComponentChunk()public
BlockComponentChunk(Int2ObjectMap<Holder<ChunkStore>> entityHolders, Int2ObjectMap<Ref<ChunkStore>> entityReferences)Methods
Public Methods (23)
public
void addEntityHolder(int index, Holder<ChunkStore> holder)public
void addEntityReference(int index, Ref<ChunkStore> reference)public
Component<ChunkStore> clone()@Nonnull@Override
public
Component<ChunkStore> cloneSerializable()@Nonnull@Override
public
ComponentType<ChunkStore, NonTicking<ChunkStore>> componentType()@Nonnull@Override
public
boolean consumeNeedsSaving()public
<T extends Component<ChunkStore>> T getComponent(int index, ComponentType<ChunkStore, T> componentType)@Nullable
publicstatic
ComponentType<ChunkStore, BlockComponentChunk> getComponentType()public
Holder<ChunkStore> getEntityHolder(int index)@Nullable
public
Int2ObjectMap<Holder<ChunkStore>> getEntityHolders()@Nonnull
public
Ref<ChunkStore> getEntityReference(int index)@Nullable
public
Int2ObjectMap<Ref<ChunkStore>> getEntityReferences()@Nonnull
public
boolean getNeedsSaving()public
Query<ChunkStore> getQuery()@Override
public
boolean hasComponents(int index)public
void loadEntityReference(int index, Ref<ChunkStore> reference)public
void markNeedsSaving()public
Holder<ChunkStore> removeEntityHolder(int index)@Nullable
public
void removeEntityReference(int index, Ref<ChunkStore> reference)public
void storeEntityHolder(int index, Holder<ChunkStore> holder)public
Int2ObjectMap<Holder<ChunkStore>> takeEntityHolders()@Nullable
public
Int2ObjectMap<Ref<ChunkStore>> takeEntityReferences()@Nullable
public
void unloadEntityReference(int index, Ref<ChunkStore> reference)Fields
Private/Package Fields (5)
private
Int2ObjectMap<Holder<ChunkStore>> entityHoldersprivate
Int2ObjectMap<Holder<ChunkStore>> entityHoldersUnmodifiableprivate
Int2ObjectMap<Ref<ChunkStore>> entityReferencesprivate
Int2ObjectMap<Ref<ChunkStore>> entityReferencesUnmodifiableprivate
boolean needsSaving