Class MultipartModelData
java.lang.Object
net.neoforged.neoforge.client.model.data.MultipartModelData
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModelData
create
(List<org.apache.commons.lang3.tuple.Pair<Predicate<BlockState>, BakedModel>> selectors, BitSet bitset, BlockAndTintGetter level, BlockPos pos, BlockState state, ModelData tileModelData) static ModelData
resolve
(ModelData modelData, BakedModel model) Helper to get the data from aModelData
instance.
-
Field Details
-
PROPERTY
-
-
Constructor Details
-
MultipartModelData
public MultipartModelData()
-
-
Method Details
-
resolve
Helper to get the data from aModelData
instance.- Parameters:
modelData
- The object to get data frommodel
- The model to get data for- Returns:
- The data for the part, or the one passed in if not found
-
create
public static ModelData create(List<org.apache.commons.lang3.tuple.Pair<Predicate<BlockState>, BakedModel>> selectors, BitSet bitset, BlockAndTintGetter level, BlockPos pos, BlockState state, ModelData tileModelData)
-