NPCInteractionSystems

public class NPCInteractionSystems

Class NPCInteractionSystems. Provides npcinteractionsystems functionality for the Hytale server.

java.lang.Object > NPCInteractionSystems

Field Summary

npcComponent

final NPCEntity npcComponent

Field npcComponent.

interactionManager

final InteractionManager interactionManager

Field interactionManager.

inventory

final Inventory inventory

Field inventory.

armorInventory

final ItemContainer armorInventory

Field armorInventory.

ref

final Ref ref

Field ref.

Method Detail

AddSimulationManagerSystem

public public AddSimulationManagerSystem (@Nonnull final ComponentType npcEntityComponentType)

Method AddSimulationManagerSystem.

Parameters:
@Nonnull final ComponentType npcEntityComponentType

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

InteractionManager

public new InteractionManager (npcComponent, null, new NPCInteractionSimulationHandler()

Method InteractionManager.

Parameters:
npcComponent npcComponent
null null
new NPCInteractionSimulationHandler(

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

getQuery

public Query getQuery ()

Method getQuery.

TickHeldInteractionsSystem

public public TickHeldInteractionsSystem (@Nonnull final ComponentType npcEntityComponentType)

Method TickHeldInteractionsSystem.

Parameters:
@Nonnull final ComponentType npcEntityComponentType

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