Class ArrayHolder
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
-
Field Summary
FieldsFields inherited from class com.hypixel.hytale.server.npc.asset.builder.holder.ValueHolder
expression, LOG_VALUES, LOGGER, name, valueType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidreadJSON(com.google.gson.JsonElement optionalJsonElement, int minLength, int maxLength, boolean[] defaultValue, String name, BuilderParameters builderParameters) protected voidreadJSON(com.google.gson.JsonElement optionalJsonElement, int minLength, int maxLength, double[] defaultValue, String name, BuilderParameters builderParameters) protected voidreadJSON(com.google.gson.JsonElement optionalJsonElement, int minLength, int maxLength, String[] defaultValue, String name, BuilderParameters builderParameters) protected voidreadJSON(com.google.gson.JsonElement requiredJsonElement, int minLength, int maxLength, String name, BuilderParameters builderParameters) protected voidsetLength(int length) protected voidsetLength(int minLength, int maxLength) protected voidvalidateLength(int length) Methods inherited from class com.hypixel.hytale.server.npc.asset.builder.holder.ValueHolder
getExpressionString, getName, isStatic, readJSON, readJSON, setName, validate
-
Field Details
-
minLength
protected int minLength -
maxLength
protected int maxLength
-
-
Constructor Details
-
ArrayHolder
-
-
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)
-