Class InteractionSimulationHandler
java.lang.Object
com.hypixel.hytale.server.core.modules.interaction.InteractionSimulationHandler
- All Implemented Interfaces:
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) voidsetState(InteractionType type, boolean state) booleanshouldCancelCharging(boolean firstRun, float time, InteractionType type, InteractionContext context, Ref<EntityStore> ref, CooldownHandler cooldownHandler)
-
Field Details
-
isDown
private final boolean[] isDown
-
-
Constructor Details
-
InteractionSimulationHandler
public InteractionSimulationHandler()
-
-
Method Details
-
setState
- Specified by:
setStatein interfaceIInteractionSimulationHandler
-
isCharging
public boolean isCharging(boolean firstRun, float time, @Nonnull 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
-