Class CompositeRenderable.Transforms

java.lang.Object
net.minecraftforge.client.model.renderable.CompositeRenderable.Transforms
Enclosing class:
CompositeRenderable

public static class CompositeRenderable.Transforms extends Object
A context value that provides Matrix4f transforms for certain parts of the model.
  • Field Details

    • EMPTY

      public static final CompositeRenderable.Transforms EMPTY
      A default instance that has no transforms specified.
    • parts

      private final com.google.common.collect.ImmutableMap<String,org.joml.Matrix4f> parts
  • Constructor Details

    • Transforms

      private Transforms(com.google.common.collect.ImmutableMap<String,org.joml.Matrix4f> parts)
  • Method Details

    • of

      public static CompositeRenderable.Transforms of(com.google.common.collect.ImmutableMap<String,org.joml.Matrix4f> parts)
      Builds a MultipartTransforms object with the given mapping.
    • getTransform

      @Nullable public @Nullable org.joml.Matrix4f getTransform(String part)