Class ValueHolder

java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.holder.ValueHolder
Direct Known Subclasses:
ArrayHolder, BooleanHolder, DoubleHolderBase, IntHolder, StringHolderBase

public abstract class ValueHolder extends Object
Holder instances store attributes which can be computed dynamically.

Normally holder classes are initialised with require/get calls when JSON attributes are read. Subclasses from ValueHolder will also store type specific validators and execute them when using get() to read the holder value.

  • Method Details

    • validate

      public abstract void validate(ExecutionContext context)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • isStatic

      public boolean isStatic()
    • getExpressionString

      public String getExpressionString()