Interface IModelData
-
- All Known Implementing Classes:
CompositeModel.CompositeModelData,CompositeModel.ModelDataWrapper,EmptyModelData,ModelDataMap,MultipartModelData
public interface IModelData
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <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)
-
-
-
Method Detail
-
hasProperty
boolean hasProperty(ModelProperty<?> prop)
Check 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:
getData(ModelProperty)can returnnulleven if this method returnstrue.- 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
@Nullable <T> T getData(ModelProperty<T> prop)
-
setData
@Nullable <T> T setData(ModelProperty<T> prop, T data)
-
-