Class ModelMixin

java.lang.Object
dev.jaxydog.astral.mixin.ModelMixin
All Implemented Interfaces:
AstralModel

public abstract class ModelMixin extends Object implements AstralModel
Implements the AstralModel interface.
Since:
1.7.0
  • Constructor Details

    • ModelMixin

      public ModelMixin()
  • Method Details

    • astral$addCustomJson

      public void astral$addCustomJson(String key, com.google.gson.JsonElement element)
      Description copied from interface: AstralModel
      Adds a custom JSON entry to this model.
      Specified by:
      astral$addCustomJson in interface AstralModel
      Parameters:
      key - The JSON key.
      element - The JSON value.
    • astral$addCustomJson

      public void astral$addCustomJson(Map<String,com.google.gson.JsonElement> map)
      Description copied from interface: AstralModel
      Adds a custom JSON entry to this model.
      Specified by:
      astral$addCustomJson in interface AstralModel
      Parameters:
      map - The JSON elements.
    • astral$copy

      public net.minecraft.data.client.Model astral$copy()
      Description copied from interface: AstralModel
      Copies the model.
      Specified by:
      astral$copy in interface AstralModel
      Returns:
      A copy of this model.