Class MultipartTransforms
java.lang.Object
net.minecraftforge.client.model.renderable.MultipartTransforms
- All Implemented Interfaces:
IMultipartRenderValues<Matrix4f>
A context value that provides
Matrix4f transforms for certain parts of the model.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MultipartTransformsA default instance that has no transforms specified. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMultipartTransforms(com.google.common.collect.ImmutableMap<String, Matrix4f> parts) -
Method Summary
Modifier and TypeMethodDescriptiongetPartValues(String part) Returns the value for the given part.static MultipartTransformsBuilds a MultipartTransforms object with the given mapping.
-
Field Details
-
EMPTY
A default instance that has no transforms specified. -
parts
-
-
Constructor Details
-
MultipartTransforms
-
-
Method Details
-
of
Builds a MultipartTransforms object with the given mapping. -
getPartValues
Description copied from interface:IMultipartRenderValuesReturns the value for the given part.- Specified by:
getPartValuesin interfaceIMultipartRenderValues<Matrix4f>- Parameters:
part- the name of the part- Returns:
- the context value for the part, or
null
-