Interface RechiseledBlockBuilder
- All Known Implementing Classes:
RechiseledBlockBuilderImpl
public interface RechiseledBlockBuilder
Used to configure and build new blocks for use with Rechiseled.
See
RechiseledRegistration to get new block builders.
Created 26/04/2023 by SuperMartijn642
-
Method Summary
Modifier and TypeMethodDescriptionAdds the constructed block to the given tag.build()Completes this block builder and returns anRechiseledBlockTypecontaining the constructed blocks.connectingVariant(Supplier<net.minecraft.world.level.block.Block> blockSupplier) Sets the connecting variant for this block to the given block.copyProperties(Supplier<net.minecraft.world.level.block.Block> block) Copies the properties from the given blockitemGroups(net.minecraft.world.item.CreativeModeTab group, net.minecraft.world.item.CreativeModeTab... groups) Sets the item groups the constructed blocks will be added tominingTagsFrom(Supplier<net.minecraft.world.level.block.Block> blockSupplier) Copies the mining tags from the given block.model(BlockModelType modelType) Sets a different model type to be generated.Indicates that this block does not have a connecting variantIndicates that this block does not have a non-connecting variantproperties(com.supermartijn642.core.block.BlockProperties properties) Sets the properties for the constructed blocksproperties(Consumer<com.supermartijn642.core.block.BlockProperties> configurer) Allows configuration of block propertiesrecipe(net.minecraft.resources.ResourceLocation location) Sets the chiseling recipe which this block should be added to.regularVariant(Supplier<net.minecraft.world.level.block.Block> blockSupplier) Sets the regular variant for this block to the given block.specification(BlockSpecification specification) Sets the type of block to be constructedtranslation(String translation) Sets the translation for the constructed block.
-
Method Details
-
properties
Sets the properties for the constructed blocks -
copyProperties
Copies the properties from the given block -
properties
RechiseledBlockBuilder properties(Consumer<com.supermartijn642.core.block.BlockProperties> configurer) Allows configuration of block properties -
itemGroups
RechiseledBlockBuilder itemGroups(net.minecraft.world.item.CreativeModeTab group, net.minecraft.world.item.CreativeModeTab... groups) Sets the item groups the constructed blocks will be added to -
specification
Sets the type of block to be constructed -
noRegularVariant
RechiseledBlockBuilder noRegularVariant()Indicates that this block does not have a non-connecting variant -
noConnectingVariant
RechiseledBlockBuilder noConnectingVariant()Indicates that this block does not have a connecting variant -
regularVariant
RechiseledBlockBuilder regularVariant(Supplier<net.minecraft.world.level.block.Block> blockSupplier) Sets the regular variant for this block to the given block. This is only relevant for the chiseling recipes. -
connectingVariant
RechiseledBlockBuilder connectingVariant(Supplier<net.minecraft.world.level.block.Block> blockSupplier) Sets the connecting variant for this block to the given block. This is only relevant for the chiseling recipes. -
recipe
Sets the chiseling recipe which this block should be added to. -
blockTag
Adds the constructed block to the given tag. -
miningTagsFrom
RechiseledBlockBuilder miningTagsFrom(Supplier<net.minecraft.world.level.block.Block> blockSupplier) Copies the mining tags from the given block. -
translation
Sets the translation for the constructed block. -
model
Sets a different model type to be generated. By default, the model type from the block specification will be used. -
build
RechiseledBlockType build()Completes this block builder and returns anRechiseledBlockTypecontaining the constructed blocks.
-