Class BuilderModifier

java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.BuilderModifier
All Implemented Interfaces:
ForwardedModifier
Direct Known Subclasses:
EmptyBuilderModifier

public class BuilderModifier extends Object implements ForwardedModifier
BuilderModifier is read from JSON file to overwrite parameters in a BuilderParameters section when building from a a template.

The BuilderParameters block is in the template file and exposes all values which can be modified when instantiating the template. The BuilderModifier contains key value pairs. BuilderParameter values with matching keys are overwritten with the value from the modifier before the template is instantiated.

Example Parameters Block:


 "Parameters": {
     "Appearance": {"Value": "Sheep"},
     "WanderRadius": {"Value": 5},
     "MaxSpeed": {"Value": 3},
     }
 

Example Modifier Block overwriting values "Appearance" and "WanderRadius" in template "Test":


 "Reference": "Test",
 "Modify": {
     "Appearance": "Cow_Brown",
     "WanderRadius": 10
 }