Class PerspectiveModelState

java.lang.Object
codechicken.lib.model.PerspectiveModelState
All Implemented Interfaces:
net.minecraft.client.resources.model.ModelState

public class PerspectiveModelState extends Object implements net.minecraft.client.resources.model.ModelState
A simple ModelState implementation which is composed of multiple Transformations.

Created by covers1624 on 9/7/22.

See Also:
  • Field Details

  • Constructor Details

    • PerspectiveModelState

      public PerspectiveModelState(Map<net.minecraft.world.item.ItemDisplayContext,com.mojang.math.Transformation> transforms)
    • PerspectiveModelState

      public PerspectiveModelState(Map<net.minecraft.world.item.ItemDisplayContext,com.mojang.math.Transformation> transforms, boolean isUvLocked)
  • Method Details

    • getTransform

      public com.mojang.math.Transformation getTransform(net.minecraft.world.item.ItemDisplayContext context)
    • isUvLocked

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