Skip to content

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.

ConstantDescription
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.
FieldTypeDescription
NotSelfEntitySensorEnumSet<ComponentContext>Contains SensorTarget and SensorEntity.
public String get()

Returns the human-readable description string.

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