NPCPreTickSystem

public class NPCPreTickSystem extends SteppableTickingSystem

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

java.lang.Object > SteppableTickingSystem > NPCPreTickSystem

Field Summary

ref

final Ref ref

Field ref.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

position

final Vector3d position

Field position.

modelComponent

final ModelComponent modelComponent

Field modelComponent.

spawnBeaconReference

final SpawnBeaconReference spawnBeaconReference

Field spawnBeaconReference.

timeManager

final WorldTimeResource timeManager

Field timeManager.

Method Detail

NPCPreTickSystem

public public NPCPreTickSystem (@Nonnull final ComponentType npcComponentType)

Method NPCPreTickSystem.

Parameters:
@Nonnull final ComponentType npcComponentType

SystemDependency

public new SystemDependency (Order.BEFORE, DeathSystems.CorpseRemoval.class)

Method SystemDependency.

Parameters:
Order.BEFORE Order.BEFORE
DeathSystems.CorpseRemoval.class DeathSystems.CorpseRemoval.class

getDependencies

public Set> getDependencies ()

Method getDependencies.

isParallel

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

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

getQuery

public Query getQuery ()

Method getQuery.

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