public class ChunkBlockTickSystem
System for handling chunkblocktick mechanics. Systems contain game logic that operates on entities with specific component types.
java.lang.Object > ChunkBlockTickSystem
Field Summary
time
final
Instant
time
Field time.
chunk
final
BlockChunk
chunk
Field chunk.
reference
final
Ref
reference
Field reference.
worldChunk
final
WorldChunk
worldChunk
Field worldChunk.
ticked
final
int
ticked
Field ticked.
blockX
final
int
blockX
Field blockX.
blockZ
final
int
blockZ
Field blockZ.
procedure
final
TickProcedure
procedure
Field procedure.
blockType
final
BlockType
blockType
Field blockType.
Method Detail
isParallel
public
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
tick
public
void
tick
(final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tick.
- Parameters:
final floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
getDependencies
public
Set>
getDependencies
()
Method getDependencies.
chunk
public
in
chunk
(%d, %d)
Method chunk.
- Parameters:
%d%d
at
public
block
at
(%d, %d, %d)
Method at.
- Parameters:
%d%d
SystemDependency
public
new
SystemDependency
(Order.AFTER, PreTick.class)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERPreTick.classPreTick.class