Contents
Class ItemContainerBlockSpatialSystem
java.lang.Object
com.hypixel.hytale.component.system.System<ChunkStore>
com.hypixel.hytale.component.system.tick.TickingSystem<ChunkStore>
com.hypixel.hytale.component.spatial.SpatialSystem<ChunkStore>
com.hypixel.hytale.server.core.modules.block.system.ItemContainerBlockSpatialSystem
- All Implemented Interfaces:
ISystem<ChunkStore>, QuerySystem<ChunkStore>, TickableSystem<ChunkStore>
-
Field Summary
FieldsFields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionItemContainerBlockSpatialSystem(ResourceType<ChunkStore, SpatialResource<Ref<ChunkStore>, ChunkStore>> resourceType) -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector3dgetPosition(ArchetypeChunk<ChunkStore> archetypeChunk, int index) Called to fetch a position for an entity in the given archetype chunk at the specified index.getQuery()voidtick(float dt, int systemIndex, Store<ChunkStore> store) Required reading:CommandBufferMethods inherited from class System
getComponentRegistrations, getResourceRegistrations, registerResource, registerResourceMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISystem
getDependencies, getGroup, onSystemRegistered, onSystemUnregisteredMethods inherited from interface QuerySystem
getHierarchyScope, test
-
Field Details
-
QUERY
The query used by this system
-
-
Constructor Details
-
ItemContainerBlockSpatialSystem
public ItemContainerBlockSpatialSystem(ResourceType<ChunkStore, SpatialResource<Ref<ChunkStore>, ChunkStore>> resourceType)
-
-
Method Details
-
tick
Description copied from class:TickingSystem- Specified by:
tickin interfaceTickableSystem<ChunkStore>- Overrides:
tickin classSpatialSystem<ChunkStore>- Parameters:
dt- The delta time in seconds.systemIndex- The index of this system, used for faster lookups inStore.
-
getPosition
Description copied from class:SpatialSystemCalled to fetch a position for an entity in the given archetype chunk at the specified index.- Specified by:
getPositionin classSpatialSystem<ChunkStore>- Parameters:
archetypeChunk- The archetype chunk containing the entity.index- The index of the entity within the archetype chunk.- Returns:
- the position of the entity, or
nullif the entity does not have a position.
-
getQuery
-