Class ModelDataMap
java.lang.Object
net.minecraftforge.client.model.data.ModelDataMap
- All Implemented Interfaces:
IModelData
- Direct Known Subclasses:
CompositeModel.CompositeModelData,CompositeModel.ModelDataWrapper
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
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)
-
Field Details
-
backingMap
-
-
Constructor Details
-
ModelDataMap
-
ModelDataMap
protected ModelDataMap()
-
-
Method Details
-
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
-