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 Details

    • properties

      RechiseledBlockBuilder properties(com.supermartijn642.core.block.BlockProperties properties)
      Sets the properties for the constructed blocks
    • copyProperties

      RechiseledBlockBuilder copyProperties(Supplier<net.minecraft.world.level.block.Block> block)
      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

      RechiseledBlockBuilder specification(BlockSpecification 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

      RechiseledBlockBuilder recipe(net.minecraft.resources.ResourceLocation location)
      Sets the chiseling recipe which this block should be added to.
    • blockTag

      RechiseledBlockBuilder blockTag(String namespace, String identifier)
      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

      RechiseledBlockBuilder translation(String 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

      Completes this block builder and returns an RechiseledBlockType containing the constructed blocks.