public enum EmptyModelData extends java.lang.Enum<EmptyModelData> implements IModelData
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getData(ModelProperty<T> prop) |
boolean |
hasProperty(ModelProperty<?> prop)
Check if this data has a property, even if the value is
null. |
<T> T |
setData(ModelProperty<T> prop,
T data) |
static EmptyModelData |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EmptyModelData[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmptyModelData INSTANCE
public static EmptyModelData[] values()
for (EmptyModelData c : EmptyModelData.values()) System.out.println(c);
public static EmptyModelData valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean hasProperty(ModelProperty<?> prop)
IModelDatanull. Can be
used by code that intends to fill in data for a render pipeline, such as the
forge animation system.
IMPORTANT: IModelData.getData(ModelProperty) can return null
even if this method returns true.
hasProperty in interface IModelDataprop - The property to check for inclusion in this model datatrue if this data has the given property, even if no value is presentpublic <T> T getData(ModelProperty<T> prop)
getData in interface IModelDatapublic <T> T setData(ModelProperty<T> prop, T data)
setData in interface IModelData