Enum Class EmptyModelData
- All Implemented Interfaces:
Serializable,Comparable<EmptyModelData>,Constable,IModelData
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetData(ModelProperty<T> prop) booleanhasProperty(ModelProperty<?> prop) Check if this data has a property, even if the value isnull.<T> TsetData(ModelProperty<T> prop, T data) static EmptyModelDataReturns the enum constant of this class with the specified name.static EmptyModelData[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Constructor Details
-
EmptyModelData
private EmptyModelData()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
hasProperty
Description copied from interface:IModelDataCheck if this data has a property, even if the value isnull. 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 returnnulleven if this method returnstrue.- Specified by:
hasPropertyin interfaceIModelData- Parameters:
prop- The property to check for inclusion in this model data- Returns:
trueif this data has the given property, even if no value is present
-
getData
- Specified by:
getDatain interfaceIModelData
-
setData
- Specified by:
setDatain interfaceIModelData
-