Class ModelMixin<S>

java.lang.Object
net.fabricmc.fabric.mixin.client.rendering.ModelMixin<S>
All Implemented Interfaces:
FabricModel<S>, ModelExtensions

public abstract class ModelMixin<S> extends Object implements FabricModel<S>, ModelExtensions
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    copyTransforms(net.minecraft.client.model.Model<?> model)
    Copies transforms of child model parts of the model to child model parts of this model whose names match.
    void
    fabric$calculateChildParts(net.minecraft.client.model.geom.ModelPart root)
     
    @Nullable net.minecraft.client.model.geom.ModelPart
    Returns a child model part of the given name, or null if one is not found.
    abstract net.minecraft.client.model.geom.ModelPart
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModelMixin

      public ModelMixin()
  • Method Details

    • root

      public abstract net.minecraft.client.model.geom.ModelPart root()
    • fabric$calculateChildParts

      public void fabric$calculateChildParts(net.minecraft.client.model.geom.ModelPart root)
      Specified by:
      fabric$calculateChildParts in interface ModelExtensions
    • getChildPart

      public @Nullable net.minecraft.client.model.geom.ModelPart getChildPart(String name)
      Description copied from interface: FabricModel
      Returns a child model part of the given name, or null if one is not found.
      Specified by:
      getChildPart in interface FabricModel<S>
      Parameters:
      name - the name of the child model part
      Returns:
      the child model part that corresponds to the name parameter, or null if it is not found.
    • copyTransforms

      public void copyTransforms(net.minecraft.client.model.Model<?> model)
      Description copied from interface: FabricModel
      Copies transforms of child model parts of the model to child model parts of this model whose names match.
      Specified by:
      copyTransforms in interface FabricModel<S>
      Parameters:
      model - the model to copy transforms from