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
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 Refref@Nonnull final AddReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
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 Refref@Nonnull final RemoveReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
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
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 intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer@Nonnull final ChangeGameModeEventevent