Class MultipartModelData
java.lang.Object
net.minecraftforge.client.model.data.MultipartModelData
- All Implemented Interfaces:
IModelData
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ModelProperty<MultipartModelData>
private final Map<BakedModel,
IModelData> private final IModelData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IModelData
create
(List<org.apache.commons.lang3.tuple.Pair<Predicate<BlockState>, BakedModel>> selectors, BlockAndTintGetter level, BlockPos pos, BlockState state, IModelData tileData) <T> T
getData
(ModelProperty<T> prop) getPartData
(BakedModel part, IModelData defaultData) boolean
hasProperty
(ModelProperty<?> prop) Check if this data has a property, even if the value isnull
.static IModelData
resolve
(BakedModel part, IModelData modelData) <T> T
setData
(ModelProperty<T> prop, T data) void
setPartData
(BakedModel part, IModelData data)
-
Field Details
-
MULTIPART_DATA
-
tileData
-
partData
-
-
Constructor Details
-
MultipartModelData
-
-
Method Details
-
create
public static IModelData create(List<org.apache.commons.lang3.tuple.Pair<Predicate<BlockState>, BakedModel>> selectors, BlockAndTintGetter level, BlockPos pos, BlockState state, IModelData tileData) -
resolve
-
setPartData
-
getPartData
-
hasProperty
Description copied from interface:IModelData
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:
IModelData.getData(ModelProperty)
can returnnull
even if this method returnstrue
.- Specified by:
hasProperty
in interfaceIModelData
- Parameters:
prop
- The property to check for inclusion in this model data- Returns:
true
if this data has the given property, even if no value is present
-
getData
- Specified by:
getData
in interfaceIModelData
-
setData
- Specified by:
setData
in interfaceIModelData
-