Class FusionModelTypeRegistry
java.lang.Object
com.supermartijn642.fusion.api.model.FusionModelTypeRegistry
Created 26/04/2023 by SuperMartijn642
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregisterModelType(net.minecraft.resources.ResourceLocation identifier, ModelType<?> modelType) Registers the given model type.static com.google.gson.JsonObjectserializeModelData(ModelInstance<?> model) Serializes the given model.
-
Constructor Details
-
FusionModelTypeRegistry
public FusionModelTypeRegistry()
-
-
Method Details
-
registerModelType
public static void registerModelType(net.minecraft.resources.ResourceLocation identifier, ModelType<?> modelType) Registers the given model type.- Parameters:
identifier- identifier for the model typemodelType- handler for the custom model
-
serializeModelData
Serializes the given model.- Parameters:
model- model to be serialized
-