Package codechicken.lib.model
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPerspectiveModelState(Map<net.minecraft.world.item.ItemDisplayContext, com.mojang.math.Transformation> transforms) PerspectiveModelState(Map<net.minecraft.world.item.ItemDisplayContext, com.mojang.math.Transformation> transforms, boolean isUvLocked) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.math.TransformationgetTransform(net.minecraft.world.item.ItemDisplayContext context) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.resources.model.ModelState
getRotation
-
Field Details
-
IDENTITY
-
-
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:
isUvLockedin interfacenet.minecraft.client.resources.model.ModelState
-