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
Modifier and TypeFieldDescriptionstatic final MultipartTransforms
A default instance that has no transforms specified. -
Constructor Summary
ModifierConstructorDescriptionprivate
MultipartTransforms
(com.google.common.collect.ImmutableMap<String, Matrix4f> parts) -
Method Summary
Modifier and TypeMethodDescriptiongetPartValues
(String part) Returns the value for the given part.static MultipartTransforms
Builds 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:IMultipartRenderValues
Returns the value for the given part.- Specified by:
getPartValues
in interfaceIMultipartRenderValues<Matrix4f>
- Parameters:
part
- the name of the part- Returns:
- the context value for the part, or
null
-