Class ModelMixin<S>
java.lang.Object
net.fabricmc.fabric.mixin.client.rendering.ModelMixin<S>
- All Implemented Interfaces:
FabricModel<S>, ModelExtensions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyTransforms(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.voidfabric$calculateChildParts(net.minecraft.client.model.geom.ModelPart root) @Nullable net.minecraft.client.model.geom.ModelPartgetChildPart(String name) Returns a child model part of the given name, ornullif one is not found.abstract net.minecraft.client.model.geom.ModelPartroot()
-
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$calculateChildPartsin interfaceModelExtensions
-
getChildPart
Description copied from interface:FabricModelReturns a child model part of the given name, ornullif one is not found.- Specified by:
getChildPartin interfaceFabricModel<S>- Parameters:
name- the name of the child model part- Returns:
- the child model part that corresponds to the name parameter, or
nullif it is not found.
-
copyTransforms
public void copyTransforms(net.minecraft.client.model.Model<?> model) Description copied from interface:FabricModelCopies transforms of child model parts of the model to child model parts of this model whose names match.- Specified by:
copyTransformsin interfaceFabricModel<S>- Parameters:
model- the model to copy transforms from
-