Class MultiPartBlockStateBuilder
java.lang.Object
net.minecraftforge.client.model.generators.MultiPartBlockStateBuilder
- All Implemented Interfaces:
IGeneratedBlockState
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Block
private final List
<MultiPartBlockStateBuilder.PartBuilder> -
Constructor Summary
-
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.com.google.gson.JsonObject
toJson()
private static com.google.gson.JsonObject
toJson
(com.google.common.collect.Multimap<Property<?>, Comparable<?>> conditions, boolean useOr) private static com.google.gson.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
public com.google.gson.JsonObject toJson()- Specified by:
toJson
in interfaceIGeneratedBlockState
-
toJson
private static com.google.gson.JsonObject toJson(List<MultiPartBlockStateBuilder.PartBuilder.ConditionGroup> conditions, boolean useOr) -
toJson
private static com.google.gson.JsonObject toJson(com.google.common.collect.Multimap<Property<?>, Comparable<?>> conditions, boolean useOr)
-