public class JsonStyleSerializer_v1_20_5 extends JsonStyleSerializer_v1_20_3
| Constructor and Description |
|---|
JsonStyleSerializer_v1_20_5(java.util.function.Function<JsonStyleSerializer_v1_20_3,ITypedSerializer<com.google.gson.JsonElement,AHoverEvent>> hoverEventSerializer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNumber(com.google.gson.JsonElement element)
Check if the given element is a number.
|
boolean |
requiredBoolean(com.google.gson.JsonObject obj,
java.lang.String name)
Get a required boolean or throw an exception if not present.
|
int |
requiredInt(com.google.gson.JsonObject obj,
java.lang.String name)
Get a required int or throw an exception if not present.
|
deserialize, serializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsArray, containsObject, containsString, isObject, isString, optionalBoolean, optionalBoolean, optionalCompound, optionalInt, optionalInt, optionalObject, optionalString, optionalString, requiredBoolean, requiredCompound, requiredInt, requiredObject, requiredString, requiredString, unwrapMarkerspublic JsonStyleSerializer_v1_20_5(java.util.function.Function<JsonStyleSerializer_v1_20_3,ITypedSerializer<com.google.gson.JsonElement,AHoverEvent>> hoverEventSerializer)
public boolean isNumber(@Nullable
com.google.gson.JsonElement element)
CodecUtils_v1_20_3element - The element to checkpublic boolean requiredBoolean(com.google.gson.JsonObject obj,
java.lang.String name)
CodecUtils_v1_20_3obj - The object to get the boolean fromname - The name of the booleanpublic int requiredInt(com.google.gson.JsonObject obj,
java.lang.String name)
CodecUtils_v1_20_3obj - The object to get the int fromname - The name of the int