java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.holder.ValueHolder
com.hypixel.hytale.server.npc.asset.builder.holder.ArrayHolder
Direct Known Subclasses:
BooleanArrayHolder, EnumArrayHolder, EnumSetHolder, NumberArrayHolder, StringArrayHolder

public abstract class ArrayHolder extends ValueHolder
  • Field Details

    • minLength

      protected int minLength
    • maxLength

      protected int maxLength
  • Constructor Details

    • ArrayHolder

      public ArrayHolder(ValueType valueType)
  • Method Details

    • readJSON

      protected void readJSON(@Nonnull com.google.gson.JsonElement requiredJsonElement, int minLength, int maxLength, String name, @Nonnull BuilderParameters builderParameters)
    • readJSON

      protected void readJSON(com.google.gson.JsonElement optionalJsonElement, int minLength, int maxLength, double[] defaultValue, String name, @Nonnull BuilderParameters builderParameters)
    • readJSON

      protected void readJSON(com.google.gson.JsonElement optionalJsonElement, int minLength, int maxLength, String[] defaultValue, String name, @Nonnull BuilderParameters builderParameters)
    • readJSON

      protected void readJSON(com.google.gson.JsonElement optionalJsonElement, int minLength, int maxLength, boolean[] defaultValue, String name, @Nonnull BuilderParameters builderParameters)
    • validateLength

      protected void validateLength(int length)
    • setLength

      protected void setLength(int minLength, int maxLength)
    • setLength

      protected void setLength(int length)