@ApiStatus.Internal
public final class GsonUtil
extends java.lang.Object
| Constructor and Description |
|---|
GsonUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBoolean(com.google.gson.JsonObject object,
java.lang.String key,
boolean def) |
static float |
getFloat(com.google.gson.JsonObject object,
java.lang.String key,
float def) |
static int |
getInt(com.google.gson.JsonObject object,
java.lang.String key,
int def) |
static boolean |
isInt(com.google.gson.JsonObject object,
java.lang.String key) |
static boolean |
isNullOrAbsent(com.google.gson.JsonObject object,
java.lang.String name) |
static @NotNull com.google.gson.JsonElement |
parseReader(@NotNull com.google.gson.stream.JsonReader reader) |
static @NotNull com.google.gson.JsonElement |
parseReader(@NotNull java.io.Reader reader) |
static @NotNull com.google.gson.JsonElement |
parseString(@NotNull java.lang.String string) |
static team.unnamed.creative.base.Vector3Float |
readVector3Float(com.google.gson.JsonElement element) |
static void |
writeVector2Float(com.google.gson.stream.JsonWriter writer,
team.unnamed.creative.base.Vector2Float vector) |
static void |
writeVector3Float(com.google.gson.stream.JsonWriter writer,
team.unnamed.creative.base.Vector3Float vector) |
@NotNull
public static @NotNull com.google.gson.JsonElement parseString(@NotNull
@NotNull java.lang.String string)
@NotNull
public static @NotNull com.google.gson.JsonElement parseReader(@NotNull
@NotNull java.io.Reader reader)
@NotNull
public static @NotNull com.google.gson.JsonElement parseReader(@NotNull
@NotNull com.google.gson.stream.JsonReader reader)
public static boolean isNullOrAbsent(com.google.gson.JsonObject object,
java.lang.String name)
public static boolean getBoolean(com.google.gson.JsonObject object,
java.lang.String key,
boolean def)
public static boolean isInt(com.google.gson.JsonObject object,
java.lang.String key)
public static int getInt(com.google.gson.JsonObject object,
java.lang.String key,
int def)
public static float getFloat(com.google.gson.JsonObject object,
java.lang.String key,
float def)
public static void writeVector3Float(com.google.gson.stream.JsonWriter writer,
team.unnamed.creative.base.Vector3Float vector)
throws java.io.IOException
java.io.IOExceptionpublic static void writeVector2Float(com.google.gson.stream.JsonWriter writer,
team.unnamed.creative.base.Vector2Float vector)
throws java.io.IOException
java.io.IOExceptionpublic static team.unnamed.creative.base.Vector3Float readVector3Float(com.google.gson.JsonElement element)