Class NPCInteractionSimulationHandler
java.lang.Object
com.hypixel.hytale.server.npc.interactions.NPCInteractionSimulationHandler
- All Implemented Interfaces:
IInteractionSimulationHandler
public class NPCInteractionSimulationHandler
extends Object
implements IInteractionSimulationHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetChargeValue(boolean firstRun, float time, InteractionType type, InteractionContext context, Ref<EntityStore> ref, CooldownHandler cooldownHandler) booleanisCharging(boolean firstRun, float time, InteractionType type, InteractionContext context, Ref<EntityStore> ref, CooldownHandler cooldownHandler) voidrequestChargeTime(float chargeTime) voidsetState(InteractionType type, boolean state) booleanshouldCancelCharging(boolean firstRun, float time, InteractionType type, InteractionContext context, Ref<EntityStore> ref, CooldownHandler cooldownHandler)
-
Field Details
-
requestedChargeTime
private float requestedChargeTime
-
-
Constructor Details
-
NPCInteractionSimulationHandler
public NPCInteractionSimulationHandler()
-
-
Method Details
-
setState
- Specified by:
setStatein interfaceIInteractionSimulationHandler
-
isCharging
public boolean isCharging(boolean firstRun, float time, InteractionType type, InteractionContext context, Ref<EntityStore> ref, CooldownHandler cooldownHandler) - Specified by:
isChargingin interfaceIInteractionSimulationHandler
-
shouldCancelCharging
public boolean shouldCancelCharging(boolean firstRun, float time, InteractionType type, InteractionContext context, Ref<EntityStore> ref, CooldownHandler cooldownHandler) - Specified by:
shouldCancelChargingin interfaceIInteractionSimulationHandler
-
getChargeValue
public float getChargeValue(boolean firstRun, float time, InteractionType type, InteractionContext context, Ref<EntityStore> ref, CooldownHandler cooldownHandler) - Specified by:
getChargeValuein interfaceIInteractionSimulationHandler
-
requestChargeTime
public void requestChargeTime(float chargeTime)
-