BuilderObjectStaticHelper
Package: com.hypixel.hytale.server.npc.asset.builder
public class BuilderObjectStaticHelper<T> extends BuilderObjectReferenceHelper<T>A reference helper variant that enforces that the resolved builder is inline (static). Throws IllegalStateException if the JSON contains a "Reference" or "Local" reference. Used in contexts where dynamic resolution is not supported and the builder must be fully defined in-place.
Methods
Section titled “Methods”readConfig
Section titled “readConfig”@Overridepublic void readConfig(@Nonnull JsonElement data, @Nonnull BuilderManager builderManager, @Nonnull BuilderParameters builderParameters, @Nonnull BuilderValidationHelper builderValidationHelper)Delegates to parent, then asserts the result is a final (inline) builder.
setInternalReference / setFileReference
Section titled “setInternalReference / setFileReference”Both throw IllegalStateException — references are not permitted.
staticBuild
Section titled “staticBuild”@Nullablepublic T staticBuild(@Nonnull BuilderManager manager)Builds the inline builder with a null BuilderSupport, passing only the manager. Used for static initialization that does not require entity context.
Related Types
Section titled “Related Types”- BuilderObjectReferenceHelper — parent class
- BuilderObjectStaticListHelper — uses this for list elements
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.