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
Method AddSimulationManagerSystem.
- Parameters:
@Nonnull final ComponentTypenpcEntityComponentType
onEntityAdd
public
void
onEntityAdd
(@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)
Method onEntityAdd.
- Parameters:
@Nonnull final Holderholder@Nonnull final AddReasonreason@Nonnull final Storestore
InteractionManager
public
new
InteractionManager
(npcComponent, null, new NPCInteractionSimulationHandler()
Method InteractionManager.
- Parameters:
npcComponentnpcComponentnullnullnewNPCInteractionSimulationHandler(
onEntityRemoved
public
void
onEntityRemoved
(@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)
Method onEntityRemoved.
- Parameters:
@Nonnull final Holderholder@Nonnull final RemoveReasonreason@Nonnull final Storestore
TickHeldInteractionsSystem
Method TickHeldInteractionsSystem.
- Parameters:
@Nonnull final ComponentTypenpcEntityComponentType
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