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.
getEntityHolders
public
List>
getEntityHolders
()
Method getEntityHolders.
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.
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 Refref@Nonnull final NonTickingcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
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 Refreffinal NonTickingoldComponent@Nonnull final NonTickingnewComponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
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 Refref@Nonnull final NonTickingcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
if
public
else
if
(archetype.count()
Method if.
- Parameters:
archetype.count(archetype.count(