Contents
Class AugmentBlocksSpatialSystem
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.builtin.augmentblocks.AugmentBlocksSpatialSystem
- All Implemented Interfaces:
ISystem<ChunkStore>, QuerySystem<ChunkStore>, TickableSystem<ChunkStore>
Indexes all
AugmentBlock blocks in a KDTree spatial resource by world position, so any augment block
can resolve another participating block's current level without scanning the world. Rebuilt every tick (participating
blocks are rare), mirroring CompanionBlockSpawnerSpatialSystem.-
Field Summary
FieldsFields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionAugmentBlocksSpatialSystem(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()Methods inherited from class SpatialSystem
tickMethods 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
-
-
Constructor Details
-
AugmentBlocksSpatialSystem
public AugmentBlocksSpatialSystem(ResourceType<ChunkStore, SpatialResource<Ref<ChunkStore>, ChunkStore>> resourceType)
-
-
Method Details
-
getPosition
@Nullable public org.joml.Vector3d getPosition(@Nonnull ArchetypeChunk<ChunkStore> archetypeChunk, int index) 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
-