Class SimpleModelState

java.lang.Object
net.minecraftforge.client.model.SimpleModelState
All Implemented Interfaces:
ModelState, IForgeModelState

public final class SimpleModelState extends Object implements ModelState
Simple implementation of IModelState via a map and a default value.
  • Field Details

  • Constructor Details

    • SimpleModelState

      public SimpleModelState(com.google.common.collect.ImmutableMap<?,Transformation> map)
    • SimpleModelState

      public SimpleModelState(Transformation base)
    • SimpleModelState

      public SimpleModelState(com.google.common.collect.ImmutableMap<?,Transformation> map, Transformation base)
  • Method Details

    • getRotation

      public Transformation getRotation()
      Specified by:
      getRotation in interface ModelState
    • getPartTransformation

      public Transformation getPartTransformation(Object part)
      Specified by:
      getPartTransformation in interface IForgeModelState
      Parameters:
      part - Part of the model we are wanting to transform. An empty optional means we want a transform for the entire model.
      Returns:
      A transformation to apply to the part, if any. The coordinate system of the transform is determined by the part type.