RoleSystems

public class RoleSystems

Class RoleSystems. Provides rolesystems functionality for the Hytale server.

java.lang.Object > RoleSystems

Field Summary

npcComponent

final NPCEntity npcComponent

Field npcComponent.

role

final Role role

Field role.

modelComponent

final ModelComponent modelComponent

Field modelComponent.

boundingBoxComponent

final BoundingBox boundingBoxComponent

Field boundingBoxComponent.

markedEntitySupport

final MarkedEntitySupport markedEntitySupport

Field markedEntitySupport.

entityTargets

final Ref[] entityTargets

Field entityTargets.

targetReference

final Ref targetReference

Field targetReference.

playerComponent

final Player playerComponent

Field playerComponent.

playerSettingsComponent

final PlayerSettings playerSettingsComponent

Field playerSettingsComponent.

deathComponent

final DeathComponent deathComponent

Field deathComponent.

entities

final List> entities

Field entities.

world

final World world

Field world.

isAllNpcFrozen

final boolean isAllNpcFrozen

Field isAllNpcFrozen.

stepComponent

final StepComponent stepComponent

Field stepComponent.

benchmarking

final boolean benchmarking

Field benchmarking.

start

final long start

Field start.

ref

final Ref ref

Field ref.

activeMotionController

final MotionController activeMotionController

Field activeMotionController.

entitySupport

final EntitySupport entitySupport

Field entitySupport.

debugDisplay

final RoleDebugDisplay debugDisplay

Field debugDisplay.

Method Detail

RoleActivateSystem

public public RoleActivateSystem (@Nonnull final ComponentType npcComponentType)

Method RoleActivateSystem.

Parameters:
@Nonnull final ComponentType npcComponentType

SystemDependency

public new SystemDependency (Order.AFTER, BalancingInitialisationSystem.class)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
BalancingInitialisationSystem.class BalancingInitialisationSystem.class

getQuery

public Query getQuery ()

Method getQuery.

getDependencies

public Set> getDependencies ()

Method getDependencies.

onEntityAdd

public void onEntityAdd (@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)

Method onEntityAdd.

Parameters:
@Nonnull final Holder holder
@Nonnull final AddReason reason
@Nonnull final Store store

onEntityRemoved

public void onEntityRemoved (@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)

Method onEntityRemoved.

Parameters:
@Nonnull final Holder holder
@Nonnull final RemoveReason reason
@Nonnull final Store store

PreBehaviourSupportTickSystem

public public PreBehaviourSupportTickSystem (@Nonnull final ComponentType npcComponentType)

Method PreBehaviourSupportTickSystem.

Parameters:
@Nonnull final ComponentType npcComponentType

isParallel

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

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

steppedTick

public void steppedTick (final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method steppedTick.

Parameters:
final float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

BehaviourTickSystem

public public BehaviourTickSystem (@Nonnull final ComponentType npcComponentType, @Nonnull final ComponentType stepComponentType)

Method BehaviourTickSystem.

Parameters:
@Nonnull final ComponentType npcComponentType
@Nonnull final ComponentType stepComponentType

tick

public void tick (final float dt, final int systemIndex, @Nonnull final Store store)

Method tick.

Parameters:
final float dt
final int systemIndex
@Nonnull final Store store

PostBehaviourSupportTickSystem

public public PostBehaviourSupportTickSystem (@Nonnull final ComponentType npcComponentType)

Method PostBehaviourSupportTickSystem.

Parameters:
@Nonnull final ComponentType npcComponentType

RoleDebugSystem

public public RoleDebugSystem (@Nonnull final ComponentType npcComponentType, @Nonnull final Set> dependencies)

Method RoleDebugSystem.

Parameters:
@Nonnull final ComponentType npcComponentType
@Nonnull final Set> dependencies