public class BlockComponentChunk implements Component
Class BlockComponentChunk. Provides blockcomponentchunk functionality for the Hytale server.
java.lang.Object > BlockComponentChunk
Field Summary
needsSaving
Field needsSaving.
entityHoldersClone
Field entityHoldersClone.
reference
Field reference.
holders
Field holders.
holder
Field holder.
out
Field out.
map2
Field map2.
store
Field store.
blockComponentChunk
Field blockComponentChunk.
size
Field size.
indexes
Field indexes.
references
Field references.
data
Field data.
chunk
Field chunk.
entityHolders
Field entityHolders.
index
Field index.
x
Field x.
y
Field y.
z
Field z.
state
Field state.
component
Field component.
componentStore
Field componentStore.
Method Detail
getComponentType
BlockComponentChunk>
getComponentType
()
Method getComponentType.
BlockComponentChunk
public
BlockComponentChunk
()
Method BlockComponentChunk.
getEntityHolders
Int2ObjectMap>
getEntityHolders
()
Method getEntityHolders.
getEntityHolder
Method getEntityHolder.
- Parameters:
final intindex
storeEntityHolder
Method storeEntityHolder.
- Parameters:
final intindex@Nonnull final Holderholder
removeEntityHolder
Method removeEntityHolder.
- Parameters:
final intindex
getEntityReference
Method getEntityReference.
- Parameters:
final intindex
addEntityReference
Method addEntityReference.
- Parameters:
final intindex@Nonnull final Refreference
loadEntityReference
Method loadEntityReference.
- Parameters:
final intindex@Nonnull final Refreference
takeEntityHolders
Int2ObjectMap>
takeEntityHolders
()
Method takeEntityHolders.
getComponent
Method getComponent.
- Parameters:
final intindex@Nonnull final ComponentTypecomponentType
hasComponents
boolean
hasComponents
(final int index)
Method hasComponents.
- Parameters:
final intindex
getNeedsSaving
boolean
getNeedsSaving
()
Method getNeedsSaving.
markNeedsSaving
void
markNeedsSaving
()
Method markNeedsSaving.
consumeNeedsSaving
boolean
consumeNeedsSaving
()
Method consumeNeedsSaving.
Int2ObjectMapCodec
new
Int2ObjectMapCodec
(new StoredCodec)
Method Int2ObjectMapCodec.
- Parameters:
newStoredCodec((CodecKey
BlockComponentChunkLoadingSystem
public
BlockComponentChunkLoadingSystem
()
Method BlockComponentChunkLoadingSystem.
onComponentAdded
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
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
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
Vector3i
new
Vector3i
(x, y, z)
Method Vector3i.
- Parameters:
xxyyzz
LoadBlockComponentPacketSystem
Method LoadBlockComponentPacketSystem.
- Parameters:
final ComponentTypeblockComponentChunkComponentType
fetch
void
fetch
(final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, final CommandBuffer commandBuffer, final PlayerRef player, @Nonnull final List results)
Method fetch.
- Parameters:
final intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestorefinal CommandBuffercommandBufferfinal PlayerRefplayer@Nonnull final Listresults
UnloadBlockComponentPacketSystem
public
UnloadBlockComponentPacketSystem
(final ComponentType blockComponentChunkComponentType)
Method UnloadBlockComponentPacketSystem.
- Parameters:
final ComponentTypeblockComponentChunkComponentType