Class MultiPartBlockStateBuilder
java.lang.Object
net.neoforged.neoforge.client.model.generators.MultiPartBlockStateBuilder
- All Implemented Interfaces:
IGeneratedBlockState
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Block
private final List
<MultiPartBlockStateBuilder.PartBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) MultiPartBlockStateBuilder
part()
Creates a builder for models to assign to aMultiPartBlockStateBuilder.PartBuilder
, which when completed viaConfiguredModel.Builder.addModel()
will assign the resultant set of models to the part and return it for further processing.toJson()
private static JsonObject
toJson
(Multimap<Property<?>, Comparable<?>> conditions, boolean useOr) private static JsonObject
toJson
(List<MultiPartBlockStateBuilder.PartBuilder.ConditionGroup> conditions, boolean useOr)
-
Field Details
-
parts
-
owner
-
-
Constructor Details
-
MultiPartBlockStateBuilder
-
-
Method Details
-
part
Creates a builder for models to assign to aMultiPartBlockStateBuilder.PartBuilder
, which when completed viaConfiguredModel.Builder.addModel()
will assign the resultant set of models to the part and return it for further processing.- Returns:
- the model builder
- See Also:
-
addPart
-
toJson
- Specified by:
toJson
in interfaceIGeneratedBlockState
-
toJson
private static JsonObject toJson(List<MultiPartBlockStateBuilder.PartBuilder.ConditionGroup> conditions, boolean useOr) -
toJson
-