Contents
Class BooleanHolder
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.holder.ValueHolder
com.hypixel.hytale.server.npc.asset.builder.holder.BooleanHolder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRelationValidator(BiConsumer<ExecutionContext, Boolean> validator) booleanget(ExecutionContext executionContext) booleanrawGet(ExecutionContext executionContext) voidreadJSON(com.google.gson.JsonElement optionalJsonElement, boolean defaultValue, String name, BuilderParameters builderParameters) voidreadJSON(com.google.gson.JsonElement requiredJsonElement, String name, BuilderParameters builderParameters) voidvalidate(ExecutionContext context) Methods inherited from class ValueHolder
getExpressionString, getName, isStatic, setName
-
Constructor Details
-
BooleanHolder
public BooleanHolder()
-
-
Method Details
-
readJSON
public void readJSON(@Nonnull com.google.gson.JsonElement requiredJsonElement, String name, @Nonnull BuilderParameters builderParameters) -
validate
- Specified by:
validatein classValueHolder
-
readJSON
public void readJSON(com.google.gson.JsonElement optionalJsonElement, boolean defaultValue, String name, @Nonnull BuilderParameters builderParameters) -
get
-
rawGet
-
addRelationValidator
-