Class CompositeModelState

java.lang.Object
io.github.vampirestudios.vampirelib.client.model.CompositeModelState
All Implemented Interfaces:
ModelStateExtensions, net.minecraft.client.resources.model.ModelState

public class CompositeModelState extends Object implements net.minecraft.client.resources.model.ModelState, ModelStateExtensions
An ModelState that combines the transforms from two child ModelState.
  • Constructor Details

    • CompositeModelState

      public CompositeModelState(net.minecraft.client.resources.model.ModelState first, net.minecraft.client.resources.model.ModelState second)
    • CompositeModelState

      public CompositeModelState(net.minecraft.client.resources.model.ModelState first, net.minecraft.client.resources.model.ModelState second, boolean uvLock)
  • Method Details

    • isUvLocked

      public boolean isUvLocked()
      Specified by:
      isUvLocked in interface net.minecraft.client.resources.model.ModelState
    • getRotation

      public com.mojang.math.Transformation getRotation()
      Specified by:
      getRotation in interface net.minecraft.client.resources.model.ModelState
    • getPartTransformation

      public com.mojang.math.Transformation getPartTransformation(Object part)
      Specified by:
      getPartTransformation in interface ModelStateExtensions
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object