Skip to content

InstructionType

Package: com.hypixel.hytale.server.npc.asset.builder

public enum InstructionType implements Supplier<String>

Defines the instruction context types in the NPC behavior tree. Used by InstructionContextHelper to validate that actions, sensors, and motions are placed in appropriate instruction slots.

ConstantDescription
Default"the default behaviour instruction" — the main behavior tree root.
Interaction"the interaction instruction" — triggered by player/NPC interaction.
Death"the death instruction" — executed on NPC death.
Component"a component" — a reusable component reference.
StateTransitions"state transition actions" — actions triggered by state changes.
FieldTypeContents
AnyEnumSet<InstructionType>All values.
MotionAllowedInstructionsEnumSet<InstructionType>Default only.
StateChangeAllowedInstructionsEnumSet<InstructionType>Default, Interaction, Death, Component.
public String get()

Returns the human-readable description.

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.