Class ActionDropItem
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.ActionBase
com.hypixel.hytale.server.npc.corecomponents.ActionWithDelay
com.hypixel.hytale.server.npc.corecomponents.items.ActionDropItem
- All Implemented Interfaces:
Action,RoleStateChange,IAnnotatedComponent,IComponentExecutionControl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Vector3dprotected final Stringprotected final floatprotected final floatprotected final booleanprotected final Stringprotected final doubleprotected final doubleprotected final float[]protected floatFields inherited from class com.hypixel.hytale.server.npc.corecomponents.ActionBase
active, once, triggeredFields inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
index, parentFields inherited from interface com.hypixel.hytale.server.npc.instructions.Action
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanExecute(Ref<EntityStore> ref, Role role, InfoProvider sensorInfo, double dt, Store<EntityStore> store) booleanexecute(Ref<EntityStore> ref, Role role, InfoProvider sensorInfo, double dt, Store<EntityStore> store) protected voidnewDirection(Ref<EntityStore> ref, double distance, double height, ComponentAccessor<EntityStore> componentAccessor) protected doubleMethods inherited from class com.hypixel.hytale.server.npc.corecomponents.ActionWithDelay
clearDelay, isDelaying, isDelayPrepared, prepareDelay, processDelay, startDelayMethods inherited from class com.hypixel.hytale.server.npc.corecomponents.ActionBase
activate, clearOnce, deactivate, isActivated, isTriggered, setOnceMethods inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
getIndex, getInfo, getParent, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.npc.util.IAnnotatedComponent
getBreadCrumbs, getBreadCrumbs, getIndex, getInfo, getLabel, getParent, setContextMethods inherited from interface com.hypixel.hytale.server.npc.instructions.RoleStateChange
loaded, motionControllerChanged, registerWithSupport, removed, spawned, teleported, unloaded
-
Field Details
-
item
-
dropList
-
dropSectorStart
protected final float dropSectorStart -
dropSectorEnd
protected final float dropSectorEnd -
minDistance
protected final double minDistance -
maxDistance
protected final double maxDistance -
highPitch
protected final boolean highPitch -
pitch
protected final float[] pitch -
dropDirection
-
throwSpeed
protected float throwSpeed
-
-
Constructor Details
-
ActionDropItem
-
-
Method Details
-
canExecute
public boolean canExecute(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, InfoProvider sensorInfo, double dt, @Nonnull Store<EntityStore> store) - Specified by:
canExecutein interfaceAction- Overrides:
canExecutein classActionBase
-
execute
public boolean execute(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, InfoProvider sensorInfo, double dt, @Nonnull Store<EntityStore> store) - Specified by:
executein interfaceAction- Overrides:
executein classActionBase
-
pickDistance
protected double pickDistance() -
newDirection
protected void newDirection(@Nonnull Ref<EntityStore> ref, double distance, double height, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
-