ComponentContext
Package: com.hypixel.hytale.server.npc.asset.builder
public enum ComponentContext implements Supplier<String>Defines the sensor context in which a component operates within the NPC behavior tree. Used by InstructionContextHelper to validate that components are placed in appropriate sensor contexts.
Constants
Section titled “Constants”| Constant | Description |
|---|---|
SensorSelf | "self sensor" — the component operates in a self-sensing context. |
SensorTarget | "target sensor" — the component operates in a target-sensing context. |
SensorEntity | "entity sensor" — the component operates in an entity-sensing context. |
Static Fields
Section titled “Static Fields”| Field | Type | Description |
|---|---|---|
NotSelfEntitySensor | EnumSet<ComponentContext> | Contains SensorTarget and SensorEntity. |
Methods
Section titled “Methods”public String get()Returns the human-readable description string.
Related Types
Section titled “Related Types”- InstructionContextHelper — validates component context
- InstructionType — the other context dimension
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.