Class FusionModelTypeRegistry

java.lang.Object
com.supermartijn642.fusion.api.model.FusionModelTypeRegistry

public final class FusionModelTypeRegistry extends Object
Created 26/04/2023 by SuperMartijn642
  • 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 type
      modelType - handler for the custom model
    • serializeModelData

      public static com.google.gson.JsonObject serializeModelData(ModelInstance<?> model)
      Serializes the given model.
      Parameters:
      model - model to be serialized