EntityChunk

public class EntityChunk implements Component

Class EntityChunk. Provides entitychunk functionality for the Hytale server.

java.lang.Object > EntityChunk

Field Summary

needsSaving

private boolean needsSaving

Field needsSaving.

entityHoldersClone

final ObjectArrayList> entityHoldersClone

Field entityHoldersClone.

holders

final Holder[] holders

Field holders.

out

final boolean out

Field out.

references

final Ref[] references

Field references.

val$references

final Ref[] val$references

Field val$references.

index

final int index

Field index.

reference

final Ref reference

Field reference.

array2

final Holder[] array2

Field array2.

array3

final Holder[] array3

Field array3.

store

final Store store

Field store.

o2

final Object o2

Field o2.

n2

final int n2

Field n2.

world

final World world

Field world.

entityChunkComponent

final EntityChunk entityChunkComponent

Field entityChunkComponent.

entityStore

final Store entityStore

Field entityStore.

data

final ComponentRegistry.Data data

Field data.

holder

final Holder holder

Field holder.

worldChunkComponent

final WorldChunk worldChunkComponent

Field worldChunkComponent.

archetype

final Archetype archetype

Field archetype.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

refs

final Ref[] refs

Field refs.

entityRef

final Ref entityRef

Field entityRef.

Method Detail

getComponentType

public EntityChunk> getComponentType ()

Method getComponentType.

EntityChunk

public public EntityChunk ()

Method EntityChunk.

clone

public Component clone ()

Method clone.

cloneSerializable

public Component cloneSerializable ()

Method cloneSerializable.

getEntityHolders

public List> getEntityHolders ()

Method getEntityHolders.

addEntityHolder

public void addEntityHolder (@Nonnull final Holder holder)

Method addEntityHolder.

Parameters:
@Nonnull final Holder holder

storeEntityHolder

public void storeEntityHolder (@Nonnull final Holder holder)

Method storeEntityHolder.

Parameters:
@Nonnull final Holder holder

getEntityReferences

public Set> getEntityReferences ()

Method getEntityReferences.

addEntityReference

public void addEntityReference (@Nonnull final Ref reference)

Method addEntityReference.

Parameters:
@Nonnull final Ref reference

loadEntityReference

public void loadEntityReference (@Nonnull final Ref reference)

Method loadEntityReference.

Parameters:
@Nonnull final Ref reference

removeEntityReference

public void removeEntityReference (@Nonnull final Ref reference)

Method removeEntityReference.

Parameters:
@Nonnull final Ref reference

unloadEntityReference

public void unloadEntityReference (@Nonnull final Ref reference)

Method unloadEntityReference.

Parameters:
@Nonnull final Ref reference

takeEntityHolders

public Holder[] takeEntityHolders ()

Method takeEntityHolders.

takeEntityReferences

public Ref[] takeEntityReferences ()

Method takeEntityReferences.

getNeedsSaving

public boolean getNeedsSaving ()

Method getNeedsSaving.

markNeedsSaving

public void markNeedsSaving ()

Method markNeedsSaving.

consumeNeedsSaving

public boolean consumeNeedsSaving ()

Method consumeNeedsSaving.

getEntities

public Iterable getEntities ()

Method getEntities.

hasNext

public boolean hasNext ()

Method hasNext.

EntityChunkLoadingSystem

public public EntityChunkLoadingSystem ()

Method EntityChunkLoadingSystem.

getQuery

public Query getQuery ()

Method getQuery.

componentType

public NonTicking> componentType ()

Method componentType.

onComponentAdded

public void onComponentAdded (@Nonnull final Ref ref, @Nonnull final NonTicking component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final NonTicking component
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onComponentSet

public void onComponentSet (@Nonnull final Ref ref, final NonTicking oldComponent, @Nonnull final NonTicking newComponent, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentSet.

Parameters:
@Nonnull final Ref ref
final NonTicking oldComponent
@Nonnull final NonTicking newComponent
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onComponentRemoved

public void onComponentRemoved (@Nonnull final Ref ref, @Nonnull final NonTicking component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentRemoved.

Parameters:
@Nonnull final Ref ref
@Nonnull final NonTicking component
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

if

public else if (archetype.count()

Method if.

Parameters:
archetype.count( archetype.count(