public static class ForgeBlockStateV1.Variant.Deserializer extends java.lang.Object implements com.google.gson.JsonDeserializer<ForgeBlockStateV1.Variant>
Modifier and Type | Field and Description |
---|---|
(package private) static ForgeBlockStateV1.Variant.Deserializer |
INSTANCE |
java.lang.String |
simpleSubmodelKey
Used once (then set null) for the key to put a simple submodel declaration under in the submodel map.
|
Constructor and Description |
---|
Deserializer() |
Modifier and Type | Method and Description |
---|---|
ForgeBlockStateV1.Variant |
deserialize(com.google.gson.JsonElement element,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
protected ResourceLocation |
getBlockLocation(java.lang.String location) |
private void |
throwIfNestedSubmodels(ForgeBlockStateV1.Variant submodel)
Throws an error if there are submodels in this submodel.
|
static ForgeBlockStateV1.Variant.Deserializer INSTANCE
public java.lang.String simpleSubmodelKey
protected ResourceLocation getBlockLocation(java.lang.String location)
private void throwIfNestedSubmodels(ForgeBlockStateV1.Variant submodel)
public ForgeBlockStateV1.Variant deserialize(com.google.gson.JsonElement element, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<ForgeBlockStateV1.Variant>
com.google.gson.JsonParseException