Interface FabricModel<S>

All Known Implementing Classes:
net.minecraft.client.model.Model, TransformCopyingModel

@NonExtendable public interface FabricModel<S>
General purpose Fabric extensions to the Model class.

Note: This interface is automatically implemented on all Model instances via Mixin and interface injection.

  • Method Summary

    Modifier and Type
    Method
    Description
    default 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.
    default @Nullable net.minecraft.client.model.geom.ModelPart
    Returns a child model part of the given name, or null if one is not found.
  • Method Details

    • getChildPart

      default @Nullable net.minecraft.client.model.geom.ModelPart getChildPart(String name)
      Returns a child model part of the given name, or null if one is not found.
      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

      default 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.
      Parameters:
      model - the model to copy transforms from