Class InstructionRandomized
java.lang.Object
com.hypixel.hytale.server.npc.instructions.Instruction
com.hypixel.hytale.server.npc.instructions.InstructionRandomized
- All Implemented Interfaces:
RoleStateChange,IAnnotatedComponent,IAnnotatedComponentCollection
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InstructionRandomized.InstructionHolderprotected final doubleprotected final doubleprotected final booleanprotected doubleprotected final IWeightedMap<InstructionRandomized.InstructionHolder> Fields inherited from class com.hypixel.hytale.server.npc.instructions.Instruction
actions, bodyMotion, continueAfter, EMPTY_ARRAY, headMotion, index, instructionList, invertTreeModeResult, LOGGER, name, parent, parentTreeModeStep, sensor, tag, treeMode, weight -
Constructor Summary
ConstructorsConstructorDescriptionInstructionRandomized(BuilderInstructionRandomized builder, Sensor sensor, Instruction[] instructionList, BuilderSupport support) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidexecute(Ref<EntityStore> ref, Role role, double dt, Store<EntityStore> store) voidreset()Methods inherited from class com.hypixel.hytale.server.npc.instructions.Instruction
componentCount, createRootInstruction, executeActions, forEachInstruction, forEachInstruction, forEachInstruction, getBodyMotion, getComponent, getDebugTag, getHeadMotion, getIndex, getInfo, getLabel, getParent, getSensor, getWeight, isContinueAfter, loaded, matches, motionControllerChanged, notifyChildSensorMatch, onCompleted, onEndMotion, onMatched, registerWithSupport, removed, setContext, spawned, teleported, unloadedMethods 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
-
Field Details
-
weightedInstructionMap
@Nonnull protected final IWeightedMap<InstructionRandomized.InstructionHolder> weightedInstructionMap -
resetOnStateChange
protected final boolean resetOnStateChange -
minExecuteTime
protected final double minExecuteTime -
maxExecuteTime
protected final double maxExecuteTime -
timeout
protected double timeout -
current
-
-
Constructor Details
-
InstructionRandomized
public InstructionRandomized(@Nonnull BuilderInstructionRandomized builder, Sensor sensor, @Nonnull Instruction[] instructionList, @Nonnull BuilderSupport support)
-
-
Method Details
-
execute
public void execute(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, double dt, @Nonnull Store<EntityStore> store) - Overrides:
executein classInstruction
-
clearOnce
public void clearOnce()- Overrides:
clearOncein classInstruction
-
reset
public void reset()- Overrides:
resetin classInstruction
-