BuilderContext
Package: com.hypixel.hytale.server.npc.asset.builder
public interface BuilderContextProvides hierarchical context for builders, enabling breadcrumb-style error reporting. Each context knows its owner and label, allowing the system to construct a path like "Role|Instruction|Action" when reporting configuration errors.
Methods
Section titled “Methods”getOwner
Section titled “getOwner”BuilderContext getOwner();Returns the parent context, or null for root-level builders.
getLabel
Section titled “getLabel”String getLabel();Returns this context’s label (typically the type name or JSON key).
setCurrentStateName
Section titled “setCurrentStateName”default void setCurrentStateName(String name)Sets the current state name for state-aware contexts. Default is a no-op.
getParent
Section titled “getParent”@Nullabledefault Builder<?> getParent()Walks up the owner chain to find the nearest Builder ancestor. Returns null if no builder ancestor exists.
getBreadCrumbs
Section titled “getBreadCrumbs”default void getBreadCrumbs(@Nonnull StringBuilder stringBuilder)Recursively builds a pipe-delimited breadcrumb string by walking up the owner chain.
@Nonnulldefault String getBreadCrumbs()Returns the full breadcrumb string (convenience overload).
Related Types
Section titled “Related Types”- Builder — extends this interface
- BuilderObjectHelper — implements this interface
- BuilderBase — implements this via Builder
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.