Class StringHolder
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.holder.ValueHolder
com.hypixel.hytale.server.npc.asset.builder.holder.StringHolderBase
com.hypixel.hytale.server.npc.asset.builder.holder.StringHolder
-
Field Summary
FieldsFields inherited from class com.hypixel.hytale.server.npc.asset.builder.holder.StringHolderBase
relationValidatorsFields 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 TypeMethodDescriptionget(ExecutionContext executionContext) rawGet(ExecutionContext executionContext) voidreadJSON(com.google.gson.JsonElement requiredJsonElement, StringValidator validator, String name, BuilderParameters builderParameters) voidreadJSON(com.google.gson.JsonElement optionalJsonElement, String defaultValue, StringValidator validator, String name, BuilderParameters builderParameters) voidvalidate(ExecutionContext context) voidMethods inherited from class com.hypixel.hytale.server.npc.asset.builder.holder.StringHolderBase
addRelationValidator, validateRelationsMethods inherited from class com.hypixel.hytale.server.npc.asset.builder.holder.ValueHolder
getExpressionString, getName, isStatic, readJSON, readJSON, setName
-
Field Details
-
stringValidator
-
-
Constructor Details
-
StringHolder
public StringHolder()
-
-
Method Details
-
validate
- Specified by:
validatein classValueHolder
-
readJSON
public void readJSON(@Nonnull com.google.gson.JsonElement requiredJsonElement, StringValidator validator, String name, @Nonnull BuilderParameters builderParameters) -
readJSON
public void readJSON(com.google.gson.JsonElement optionalJsonElement, String defaultValue, StringValidator validator, String name, @Nonnull BuilderParameters builderParameters) -
get
-
rawGet
-
validate
-