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().
Constructor
Section titled “Constructor”public BuilderTemplateInteractionVars()Initializes with RootInteraction.class and RootInteraction.CHILD_ASSET_CODEC_MAP.
Methods
Section titled “Methods”public Map<String, String> build()Throws UnsupportedOperationException. Use build(ExecutionContext) instead.
@Nullablepublic Map<String, String> build(@Nonnull ExecutionContext context)Returns the interaction vars map. If the execution context provides an override, that value is used.
Related Types
Section titled “Related Types”- BuilderCodecObjectHelper — parent class
- BuilderModifier — can provide
_InteractionVarsoverrides
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.