FlockSystems

public class FlockSystems

Class FlockSystems. Provides flocksystems functionality for the Hytale server.

java.lang.Object > FlockSystems

Field Summary

flockId

final UUID flockId

Field flockId.

entityGroup

final EntityGroup entityGroup

Field entityGroup.

flock

final Flock flock

Field flock.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

ref

final Ref ref

Field ref.

Method Detail

EntityRemoved

public public EntityRemoved (final ComponentType flockComponentType)

Method EntityRemoved.

Parameters:
final ComponentType flockComponentType

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

Ticking

public public Ticking (final ComponentType flockComponentType)

Method Ticking.

Parameters:
final ComponentType flockComponentType

isParallel

public boolean isParallel (final int archetypeChunkSize, final int taskCount)

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

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 float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

PlayerChangeGameModeEventSystem

public public PlayerChangeGameModeEventSystem ()

Method PlayerChangeGameModeEventSystem.

handle

public void handle (final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer, @Nonnull final ChangeGameModeEvent event)

Method handle.

Parameters:
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer
@Nonnull final ChangeGameModeEvent event