Class MultiPartBlockStateBuilder
- java.lang.Object
-
- net.minecraftforge.client.model.generators.MultiPartBlockStateBuilder
-
- All Implemented Interfaces:
IGeneratedBlockstate
public final class MultiPartBlockStateBuilder extends java.lang.Object implements IGeneratedBlockstate
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
MultiPartBlockStateBuilder.PartBuilder
-
Field Summary
Fields Modifier and Type Field Description private Block
owner
private java.util.List<MultiPartBlockStateBuilder.PartBuilder>
parts
-
Constructor Summary
Constructors Constructor Description MultiPartBlockStateBuilder(Block owner)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) MultiPartBlockStateBuilder
addPart(MultiPartBlockStateBuilder.PartBuilder part)
ConfiguredModel.Builder<MultiPartBlockStateBuilder.PartBuilder>
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<?>,java.lang.Comparable<?>> conditions, boolean useOr)
private static com.google.gson.JsonObject
toJson(java.util.List<MultiPartBlockStateBuilder.PartBuilder.ConditionGroup> conditions, boolean useOr)
-
-
-
Field Detail
-
parts
private final java.util.List<MultiPartBlockStateBuilder.PartBuilder> parts
-
owner
private final Block owner
-
-
Constructor Detail
-
MultiPartBlockStateBuilder
public MultiPartBlockStateBuilder(Block owner)
-
-
Method Detail
-
part
public ConfiguredModel.Builder<MultiPartBlockStateBuilder.PartBuilder> 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:
ConfiguredModel.Builder
-
addPart
MultiPartBlockStateBuilder addPart(MultiPartBlockStateBuilder.PartBuilder part)
-
toJson
public com.google.gson.JsonObject toJson()
- Specified by:
toJson
in interfaceIGeneratedBlockstate
-
toJson
private static com.google.gson.JsonObject toJson(java.util.List<MultiPartBlockStateBuilder.PartBuilder.ConditionGroup> conditions, boolean useOr)
-
toJson
private static com.google.gson.JsonObject toJson(com.google.common.collect.Multimap<Property<?>,java.lang.Comparable<?>> conditions, boolean useOr)
-
-