Class CompositeModelState

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

public class CompositeModelState extends Object implements ModelState
An ModelState that combines the transforms from two child ModelState.
  • Field Details

    • first

      private final ModelState first
    • second

      private final ModelState second
    • uvLock

      private final boolean uvLock
  • Constructor Details

  • Method Details

    • isUvLocked

      public boolean isUvLocked()
      Specified by:
      isUvLocked in interface ModelState
    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object