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 TypeMethodDescriptiondefault voidcopyTransforms(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.ModelPartgetChildPart(String name) Returns a child model part of the given name, ornullif one is not found.
-
Method Details
-
getChildPart
Returns a child model part of the given name, ornullif 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
nullif 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
-