Class ItemContainerBlockSpatialSystem

All Implemented Interfaces:
ISystem<ChunkStore>, QuerySystem<ChunkStore>, TickableSystem<ChunkStore>

public class ItemContainerBlockSpatialSystem extends SpatialSystem<ChunkStore>
  • Field Details

    • QUERY

      @Nonnull public static final Query<ChunkStore> QUERY
      The query used by this system
  • Constructor Details

  • Method Details

    • tick

      public void tick(float dt, int systemIndex, @Nonnull Store<ChunkStore> store)
      Description copied from class: TickingSystem
      Required reading: CommandBuffer

      Called once per world tick.

      Specified by:
      tick in interface TickableSystem<ChunkStore>
      Overrides:
      tick in class SpatialSystem<ChunkStore>
      Parameters:
      dt - The delta time in seconds.
      systemIndex - The index of this system, used for faster lookups in Store.
    • getPosition

      public org.joml.Vector3d getPosition(@Nonnull ArchetypeChunk<ChunkStore> archetypeChunk, int index)
      Description copied from class: SpatialSystem
      Called to fetch a position for an entity in the given archetype chunk at the specified index.
      Specified by:
      getPosition in class SpatialSystem<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 null if the entity does not have a position.
    • getQuery

      @Nullable public Query<ChunkStore> getQuery()