Class CompositeBlockStateModelBuilder
java.lang.Object
net.neoforged.neoforge.client.model.generators.blockstate.CustomBlockStateModelBuilder
net.neoforged.neoforge.client.model.generators.blockstate.CompositeBlockStateModelBuilder
This builder creates a
CompositeBlockModel.Unbaked
.-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.client.model.generators.blockstate.CustomBlockStateModelBuilder
CustomBlockStateModelBuilder.Simple
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPartModel
(net.minecraft.client.renderer.block.model.BlockStateModel.Unbaked partModel) Add a part model to this composite modelConvert this builder to the finalCustomUnbakedBlockStateModel
for serialization.with
(net.minecraft.client.renderer.block.model.VariantMutator variantMutator) Apply the providedVariantMutator
to this builder.with
(UnbakedMutator variantMutator) Apply the providedUnbakedMutator
to the model being built by this builder and return a new builder with the mutated state.
-
Field Details
-
models
-
-
Constructor Details
-
CompositeBlockStateModelBuilder
public CompositeBlockStateModelBuilder()
-
-
Method Details
-
addPartModel
public void addPartModel(net.minecraft.client.renderer.block.model.BlockStateModel.Unbaked partModel) Add a part model to this composite model -
with
public CompositeBlockStateModelBuilder with(net.minecraft.client.renderer.block.model.VariantMutator variantMutator) Description copied from class:CustomBlockStateModelBuilder
Apply the providedVariantMutator
to this builder.- Specified by:
with
in classCustomBlockStateModelBuilder
-
with
Description copied from class:CustomBlockStateModelBuilder
Apply the providedUnbakedMutator
to the model being built by this builder and return a new builder with the mutated state.- Specified by:
with
in classCustomBlockStateModelBuilder
-
toUnbaked
Description copied from class:CustomBlockStateModelBuilder
Convert this builder to the finalCustomUnbakedBlockStateModel
for serialization.- Specified by:
toUnbaked
in classCustomBlockStateModelBuilder
-