Class SimpleModelState
java.lang.Object
io.github.vampirestudios.vampirelib.client.model.SimpleModelState
- All Implemented Interfaces:
ModelStateExtensions,net.minecraft.client.resources.model.ModelState
public final class SimpleModelState
extends Object
implements net.minecraft.client.resources.model.ModelState, ModelStateExtensions
Simple implementation of IModelState via a map and a default value.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleModelState(com.google.common.collect.ImmutableMap<?, com.mojang.math.Transformation> map) SimpleModelState(com.google.common.collect.ImmutableMap<?, com.mojang.math.Transformation> map, com.mojang.math.Transformation base) SimpleModelState(com.mojang.math.Transformation base) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.math.TransformationgetPartTransformation(Object part) com.mojang.math.TransformationMethods 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
isUvLocked
-
Field Details
-
IDENTITY
-
-
Constructor Details
-
SimpleModelState
public SimpleModelState(com.google.common.collect.ImmutableMap<?, com.mojang.math.Transformation> map) -
SimpleModelState
public SimpleModelState(com.mojang.math.Transformation base) -
SimpleModelState
public SimpleModelState(com.google.common.collect.ImmutableMap<?, com.mojang.math.Transformation> map, com.mojang.math.Transformation base)
-
-
Method Details
-
getRotation
public com.mojang.math.Transformation getRotation()- Specified by:
getRotationin interfacenet.minecraft.client.resources.model.ModelState
-
getPartTransformation
- Specified by:
getPartTransformationin interfaceModelStateExtensions
-