public class Variant extends java.lang.Object implements ISmartVariant
| Modifier and Type | Class and Description |
|---|---|
static class |
Variant.Deserializer |
| Modifier and Type | Field and Description |
|---|---|
private ResourceLocation |
modelLocation |
private ModelRotation |
rotation |
private boolean |
uvLock |
private int |
weight |
| Constructor and Description |
|---|
Variant(ResourceLocation modelLocationIn,
ModelRotation rotationIn,
boolean uvLockIn,
int weightIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object p_equals_1_) |
ResourceLocation |
getModelLocation() |
ModelRotation |
getRotation()
Deprecated.
|
IModelState |
getState() |
int |
getWeight() |
int |
hashCode() |
boolean |
isUvLock() |
IModel |
process(IModel base) |
java.lang.String |
toString() |
private final ResourceLocation modelLocation
private final ModelRotation rotation
private final boolean uvLock
private final int weight
public Variant(ResourceLocation modelLocationIn, ModelRotation rotationIn, boolean uvLockIn, int weightIn)
public ResourceLocation getModelLocation()
@Deprecated public ModelRotation getRotation()
public IModelState getState()
public boolean isUvLock()
public int getWeight()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object p_equals_1_)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic IModel process(IModel base)
process in interface ISmartVariant