Skip to content

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.

@Override
public 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.

Both throw IllegalStateException — references are not permitted.

@Nullable
public 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.

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