HyCodeYourTale
classpublicPriority 3

EntityChunk

com.hypixel.hytale.server.core.universe.world.chunk.EntityChunk

implements Component

21

Methods

21

Public Methods

5

Fields

2

Constructors

Constants

BuilderCodec<EntityChunk>CODEC= BuilderCodec.builder(EntityChunk.class, EntityChunk::new) .addField(new KeyedCodec<>("Entit...
HytaleLoggerLOGGER= HytaleLogger.forEnclosingClass()

Constructors

public
EntityChunk()
public
EntityChunk(List<Holder<EntityStore>> entityHolders, Set<Ref<EntityStore>> entityReferences)

Methods

Public Methods (21)

public
void addEntityHolder(Holder<EntityStore> holder)
public
void addEntityReference(Ref<EntityStore> reference)
public
Component<ChunkStore> clone()
@Nonnull@Override
public
Component<ChunkStore> cloneSerializable()
@Nonnull@Override
public
ComponentType<ChunkStore, NonTicking<ChunkStore>> componentType()
@Nonnull@Override
public
boolean consumeNeedsSaving()
publicstatic
ComponentType<ChunkStore, EntityChunk> getComponentType()
@Nonnull
public
Iterable<Entity> getEntities()
public
List<Holder<EntityStore>> getEntityHolders()
@Nonnull
public
Set<Ref<EntityStore>> getEntityReferences()
@Nonnull
public
boolean getNeedsSaving()
public
Query<ChunkStore> getQuery()
@Override
public
boolean hasNext()
@Override
public
void loadEntityReference(Ref<EntityStore> reference)
public
void markNeedsSaving()
public
Entity next()
public
void removeEntityReference(Ref<EntityStore> reference)
public
void storeEntityHolder(Holder<EntityStore> holder)
public
Holder<EntityStore>[] takeEntityHolders()
@Nullable
public
Ref<EntityStore>[] takeEntityReferences()
@Nullable
public
void unloadEntityReference(Ref<EntityStore> reference)

Fields

Private/Package Fields (5)

privateList<Holder<EntityStore>> entityHolders
privateList<Holder<EntityStore>> entityHoldersUnmodifiable
privateSet<Ref<EntityStore>> entityReferences
privateSet<Ref<EntityStore>> entityReferencesUnmodifiable
privateboolean needsSaving

Related Classes