StatePair
Package: com.hypixel.hytale.server.npc.asset.builder
public class StatePairAn immutable tuple holding a full state name string and its resolved main state and sub-state integer indices. Used by BuilderModifier for exported state mappings and by BuilderSupport for mapped state pair resolution.
Constructor
Section titled “Constructor”public StatePair(String fullStateName, int state, int subState)Methods
Section titled “Methods”getFullStateName
Section titled “getFullStateName”public String getFullStateName()Returns the original state name string (e.g., "idle.Default").
getState
Section titled “getState”public int getState()Returns the main state index.
getSubState
Section titled “getSubState”public int getSubState()Returns the sub-state index.
Related Types
Section titled “Related Types”- BuilderModifier — creates state pairs from
_ExportStates - BuilderSupport — resolves mapped state pairs
- StateMappingHelper — produces the indices
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.