Instruction
Package: com.hypixel.hytale.server.npc.instructions
public class Instruction implements RoleStateChange, IAnnotatedComponentCollectionFields
Section titled “Fields”| Modifier | Type | Name |
|---|---|---|
public static final | Instruction[] | EMPTY_ARRAY |
protected | IAnnotatedComponent | parent |
protected final | String | name |
protected final | String | tag |
protected final | Sensor | sensor |
protected | int | index |
protected final | Instruction[] | instructionList |
protected final | BodyMotion | bodyMotion |
protected final | HeadMotion | headMotion |
protected final | ActionList | actions |
protected final | double | weight |
protected final | boolean | treeMode |
protected final | boolean | invertTreeModeResult |
protected | boolean | continueAfter |
protected | Instruction | parentTreeModeStep |
Methods
Section titled “Methods”| Modifier | Return Type | Signature |
|---|---|---|
public | Sensor | getSensor() |
@Nullable public | String | getDebugTag() |
public | double | getWeight() |
public | boolean | isContinueAfter() |
@Nullable public | BodyMotion | getBodyMotion() |
@Nullable public | HeadMotion | getHeadMotion() |
@Override public | void | registerWithSupport(Role role) |
@Override public | void | motionControllerChanged( @Nullable Ref<EntityStore> ref, @Nonnull NPCEntity npcComponent, MotionController motionController, @Nullable ComponentAccessor<EntityStore> componentAccessor ) |
@Override public | void | loaded(Role role) |
@Override public | void | spawned(Role role) |
@Override public | void | unloaded(Role role) |
@Override public | void | removed(Role role) |
@Override public | void | teleported(Role role, World from, World to) |
@Override public | int | componentCount() |
@Override public | IAnnotatedComponent | getComponent(int index) |
@Override public | void | getInfo(Role role, @Nonnull ComponentInfo holder) |
@Override public | IAnnotatedComponent | getParent() |
@Override public | int | getIndex() |
@Override @Nonnull public | String | getLabel() |
@Override public | void | setContext(IAnnotatedComponent parent, int index) |
public | boolean | matches(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, double dt, @Nonnull Store<EntityStore> store) |
public | void | executeActions(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, InfoProvider sensorInfo, double dt, @Nonnull Store<EntityStore> store) |
public | void | execute(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, double dt, @Nonnull Store<EntityStore> store) |
public | void | clearOnce() |
public | void | onEndMotion() |
public | void | onMatched(@Nonnull Role role) |
public | void | onCompleted(@Nonnull Role role) |
public | void | notifyChildSensorMatch() |
public | void | reset() |
protected | void | forEachInstruction(@Nonnull Consumer<Instruction> instructionConsumer) |
protected <T> | void | forEachInstruction(@Nonnull BiConsumer<Instruction, T> instructionConsumer, T obj) |
protected <T, U, V> | void | forEachInstruction(@Nonnull QuadConsumer<Instruction, T, U, V> instructionConsumer, T t, U u, V v) |
@Nonnull public static | Instruction | createRootInstruction(Instruction[] instructions, @Nonnull BuilderSupport support) |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.