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
SystemDependency
public
new
SystemDependency
(Order.BEFORE, DeathSystems.CorpseRemoval.class)
Method SystemDependency.
- Parameters:
Order.BEFOREOrder.BEFOREDeathSystems.CorpseRemoval.classDeathSystems.CorpseRemoval.class
getDependencies
public
Set>
getDependencies
()
Method getDependencies.
isParallel
public
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
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 floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer