Class ExtendedBlockModelDeserializer
java.lang.Object
net.minecraft.client.renderer.block.model.BlockModel.Deserializer
net.neoforged.neoforge.client.model.ExtendedBlockModelDeserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<BlockModel>
A version of
BlockModel.Deserializer
capable of deserializing models with custom loaders, as well as other
changes introduced to the spec by Forge.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement element, Type targetType, com.google.gson.JsonDeserializationContext deserializationContext) static @Nullable IUnbakedGeometry
<?> deserializeGeometry
(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject object) Methods inherited from class net.minecraft.client.renderer.block.model.BlockModel.Deserializer
getAmbientOcclusion, getElements, getOverrides
-
Field Details
-
INSTANCE
public static final com.google.gson.Gson INSTANCE
-
-
Constructor Details
-
ExtendedBlockModelDeserializer
public ExtendedBlockModelDeserializer()
-
-
Method Details
-
deserialize
public BlockModel deserialize(com.google.gson.JsonElement element, Type targetType, com.google.gson.JsonDeserializationContext deserializationContext) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<BlockModel>
- Overrides:
deserialize
in classBlockModel.Deserializer
- Throws:
com.google.gson.JsonParseException
-
deserializeGeometry
@Nullable public static @Nullable IUnbakedGeometry<?> deserializeGeometry(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject object) throws com.google.gson.JsonParseException - Throws:
com.google.gson.JsonParseException
-