MergeWaitingBlocksSystem

public class MergeWaitingBlocksSystem extends RefSystem

System for handling mergewaitingblocks mechanics. Systems contain game logic that operates on entities with specific component types.

java.lang.Object > RefSystem > MergeWaitingBlocksSystem

Field Summary

chunkStore

final ChunkStore chunkStore

Field chunkStore.

chunk

final WorldChunk chunk

Field chunk.

x

final int x

Field x.

z

final int z

Field z.

blockChunk

final BlockChunk blockChunk

Field blockChunk.

Method Detail

getQuery

public Query getQuery ()

Method getQuery.

onEntityAdded

public void onEntityAdded (@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final AddReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onEntityRemove

public void onEntityRemove (@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityRemove.

Parameters:
@Nonnull final Ref ref
@Nonnull final RemoveReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

mergeTickingBlocks

static void mergeTickingBlocks (@Nonnull final ChunkStore store, final int x, final int z)

Method mergeTickingBlocks.

Parameters:
@Nonnull final ChunkStore store
final int x
final int z