Skip to content

BuilderTemplateInteractionVars

Package: com.hypixel.hytale.server.npc.asset.builder

public class BuilderTemplateInteractionVars extends BuilderCodecObjectHelper<Map<String, String>>

A codec object helper specialized for reading template interaction variable maps. Uses the RootInteraction.CHILD_ASSET_CODEC_MAP codec to decode a map of string-to-string interaction variables from JSON. Supports runtime override via ExecutionContext.getInteractionVars().

public BuilderTemplateInteractionVars()

Initializes with RootInteraction.class and RootInteraction.CHILD_ASSET_CODEC_MAP.

public Map<String, String> build()

Throws UnsupportedOperationException. Use build(ExecutionContext) instead.

@Nullable
public Map<String, String> build(@Nonnull ExecutionContext context)

Returns the interaction vars map. If the execution context provides an override, that value is used.

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