Class BlockTransformerHelper

java.lang.Object
net.fabricmc.fabric.api.item.v1.BlockTransformerHelper

public final class BlockTransformerHelper extends Object
Contains various shortcut methods for adding block transform data to axes, shovels, and hoes.

For more advanced modification of block transformers, use BlockTransformerEvents.MODIFY.

  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    registerAxe(net.minecraft.core.component.BlockTransformer transformer)
    Registers block transform data that will be added to axes.
    static void
    registerAxe(net.minecraft.core.component.BlockTransformer.BlockTransformData transformData)
    Registers block transform data that will be added to axes.
    static void
    registerFlattening(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.block.Block toBlock)
    Registers standard block transform data for flattening with a shovel, like dirt into paths.
    static void
    registerFlattening(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.block.state.BlockState toBlockState)
    Registers standard block transform data for flattening with a shovel, like dirt into paths.
    static void
    registerFlattening(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
    Registers standard block transform data for flattening with a shovel, like dirt into paths.
    static void
    registerFlattening(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.block.Block toBlock)
    Registers standard block transform data for flattening with a shovel, like dirt into paths.
    static void
    registerFlattening(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.block.state.BlockState toBlockState)
    Registers standard block transform data for flattening with a shovel, like dirt into paths.
    static void
    registerFlattening(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
    Registers standard block transform data for flattening with a shovel, like dirt into paths.
    static void
    registerFlattening(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.block.Block toBlock)
    Registers standard block transform data for flattening with a shovel, like dirt into paths.
    static void
    registerFlattening(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.block.state.BlockState toBlockState)
    Registers standard block transform data for flattening with a shovel, like dirt into paths.
    static void
    registerFlattening(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
    Registers standard block transform data for flattening with a shovel, like dirt into paths.
    static void
    registerFlattening(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.block.Block toBlock)
    Registers standard block transform data for flattening with a shovel, like dirt into paths.
    static void
    registerFlattening(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.block.state.BlockState toBlockState)
    Registers standard block transform data for flattening with a shovel, like dirt into paths.
    static void
    registerFlattening(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
    Registers standard block transform data for flattening with a shovel, like dirt into paths.
    static void
    registerHoe(net.minecraft.core.component.BlockTransformer transformer)
    Registers block transform data that will be added to hoes.
    static void
    registerHoe(net.minecraft.core.component.BlockTransformer.BlockTransformData transformData)
    Registers block transform data that will be added to hoes.
    static void
    registerShovel(net.minecraft.core.component.BlockTransformer transformer)
    Registers block transform data that will be added to shovels.
    static void
    registerShovel(net.minecraft.core.component.BlockTransformer.BlockTransformData transformData)
    Registers block transform data that will be added to shovels.
    static void
    registerStripping(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.block.Block toBlock)
    Registers standard block transform data for stripping with an axe, like logs into stripped logs.
    static void
    registerStripping(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.block.state.BlockState toBlockState)
    Registers standard block transform data for stripping with an axe, like logs into stripped logs.
    static void
    registerStripping(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
    Registers standard block transform data for stripping with an axe, like logs into stripped logs.
    static void
    registerStripping(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.block.Block toBlock)
    Registers standard block transform data for stripping with an axe, like logs into stripped logs.
    static void
    registerStripping(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.block.state.BlockState toBlockState)
    Registers standard block transform data for stripping with an axe, like logs into stripped logs.
    static void
    registerStripping(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
    Registers standard block transform data for stripping with an axe, like logs into stripped logs.
    static void
    registerStripping(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.block.Block toBlock)
    Registers standard block transform data for stripping with an axe, like logs into stripped logs.
    static void
    registerStripping(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.block.state.BlockState toBlockState)
    Registers standard block transform data for stripping with an axe, like logs into stripped logs.
    static void
    registerStripping(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
    Registers standard block transform data for stripping with an axe, like logs into stripped logs.
    static void
    registerStripping(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.block.Block toBlock)
    Registers standard block transform data for stripping with an axe, like logs into stripped logs.
    static void
    registerStripping(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.block.state.BlockState toBlockState)
    Registers standard block transform data for stripping with an axe, like logs into stripped logs.
    static void
    registerStripping(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
    Registers standard block transform data for stripping with an axe, like logs into stripped logs.
    static void
    registerTilling(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.block.Block toBlock)
    Registers standard block transform data for tilling with a hoe, like dirt into farmland.
    static void
    registerTilling(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.block.state.BlockState toBlockState)
    Registers standard block transform data for tilling with a hoe, like dirt into farmland.
    static void
    registerTilling(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
    Registers standard block transform data for tilling with a hoe, like dirt into farmland.
    static void
    registerTilling(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.block.Block toBlock)
    Registers standard block transform data for tilling with a hoe, like dirt into farmland.
    static void
    registerTilling(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.block.state.BlockState toBlockState)
    Registers standard block transform data for tilling with a hoe, like dirt into farmland.
    static void
    registerTilling(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
    Registers standard block transform data for tilling with a hoe, like dirt into farmland.
    static void
    registerTilling(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.block.Block toBlock)
    Registers standard block transform data for tilling with a hoe, like dirt into farmland.
    static void
    registerTilling(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.block.state.BlockState toBlockState)
    Registers standard block transform data for tilling with a hoe, like dirt into farmland.
    static void
    registerTilling(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
    Registers standard block transform data for tilling with a hoe, like dirt into farmland.
    static void
    registerTilling(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.block.Block toBlock)
    Registers standard block transform data for tilling with a hoe, like dirt into farmland.
    static void
    registerTilling(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.block.state.BlockState toBlockState)
    Registers standard block transform data for tilling with a hoe, like dirt into farmland.
    static void
    registerTilling(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
    Registers standard block transform data for tilling with a hoe, like dirt into farmland.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • registerAxe

      public static void registerAxe(net.minecraft.core.component.BlockTransformer transformer)
      Registers block transform data that will be added to axes.
      Use registerStripping(BlockPredicate, BlockStateProvider) instead to register standard block transform data for stripping with an axe, like logs into stripped logs.
      Parameters:
      transformer - The transformer to register.
    • registerHoe

      public static void registerHoe(net.minecraft.core.component.BlockTransformer transformer)
      Registers block transform data that will be added to hoes.
      Use registerTilling(BlockPredicate, BlockStateProvider) instead to register standard block transform data for tilling with a hoe, like dirt into farmland.
      Parameters:
      transformer - The transformer to register.
    • registerShovel

      public static void registerShovel(net.minecraft.core.component.BlockTransformer transformer)
      Registers block transform data that will be added to shovels.
      Use registerFlattening(BlockPredicate, BlockStateProvider) instead to register standard block transform data for flattening with a shovel, like dirt into paths.
      Parameters:
      transformer - The transformer to register.
    • registerAxe

      public static void registerAxe(net.minecraft.core.component.BlockTransformer.BlockTransformData transformData)
      Registers block transform data that will be added to axes.
      Use registerStripping(BlockPredicate, BlockStateProvider) instead to register standard block transform data for stripping with an axe, like logs into stripped logs.
      Parameters:
      transformData - The transform data to register.
    • registerHoe

      public static void registerHoe(net.minecraft.core.component.BlockTransformer.BlockTransformData transformData)
      Registers block transform data that will be added to hoes.
      Use registerTilling(BlockPredicate, BlockStateProvider) instead to register standard block transform data for tilling with a hoe, like dirt into farmland.
      Parameters:
      transformData - The transform data to register.
    • registerShovel

      public static void registerShovel(net.minecraft.core.component.BlockTransformer.BlockTransformData transformData)
      Registers block transform data that will be added to shovels.
      Use registerFlattening(BlockPredicate, BlockStateProvider) instead to register standard block transform data for flattening with a shovel, like dirt into paths.
      Parameters:
      transformData - The transform data to register.
    • registerStripping

      public static void registerStripping(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
      Registers standard block transform data for stripping with an axe, like logs into stripped logs.
      Specifically, copies any applicable block state properties to the result, and plays the stripping sound.
      Use registerAxe(BlockTransformer) instead to register any more complex or custom block transform data for axes.
      Parameters:
      fromBlockPredicate - A predicate for which blocks can be stripped.
      toBlockState - A provider of the block state which results from the stripping.
    • registerTilling

      public static void registerTilling(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
      Registers standard block transform data for tilling with a hoe, like dirt into farmland.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the tilling sound.
      Use registerHoe(BlockTransformer) instead to register any more complex or custom block transform data for hoes.
      Parameters:
      fromBlockPredicate - A predicate for which blocks can be tilled.
      toBlockState - A provider of the block state which results from the tilling.
    • registerFlattening

      public static void registerFlattening(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
      Registers standard block transform data for flattening with a shovel, like dirt into paths.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the flattening sound.
      Use registerShovel(BlockTransformer) instead to register any more complex or custom block transform data for shovels.
      Parameters:
      fromBlockPredicate - A predicate for which blocks can be flattened.
      toBlockState - A provider of the block state which results from the flattening.
    • registerStripping

      public static void registerStripping(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
      Registers standard block transform data for stripping with an axe, like logs into stripped logs.
      Specifically, copies any applicable block state properties to the result, and plays the stripping sound.
      Use registerAxe(BlockTransformer) instead to register any more complex or custom block transform data for axes.
      Parameters:
      fromBlock - The block which can can be stripped.
      toBlockState - A provider of the block state which results from the stripping.
    • registerTilling

      public static void registerTilling(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
      Registers standard block transform data for tilling with a hoe, like dirt into farmland.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the tilling sound.
      Use registerHoe(BlockTransformer) instead to register any more complex or custom block transform data for hoes.
      Parameters:
      fromBlock - The block which can be tilled.
      toBlockState - A provider of the block state which results from the tilling.
    • registerFlattening

      public static void registerFlattening(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
      Registers standard block transform data for flattening with a shovel, like dirt into paths.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the flattening sound.
      Use registerShovel(BlockTransformer) instead to register any more complex or custom block transform data for shovels.
      Parameters:
      fromBlock - The block which can be flattened.
      toBlockState - A provider of the block state which results from the flattening.
    • registerStripping

      public static void registerStripping(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
      Registers standard block transform data for stripping with an axe, like logs into stripped logs.
      Specifically, copies any applicable block state properties to the result, and plays the stripping sound.
      Use registerAxe(BlockTransformer) instead to register any more complex or custom block transform data for axes.
      Parameters:
      fromBlocks - The blocks which can can be stripped.
      toBlockState - A provider of the block state which results from the stripping.
    • registerTilling

      public static void registerTilling(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
      Registers standard block transform data for tilling with a hoe, like dirt into farmland.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the tilling sound.
      Use registerHoe(BlockTransformer) instead to register any more complex or custom block transform data for hoes.
      Parameters:
      fromBlocks - The blocks which can be tilled.
      toBlockState - A provider of the block state which results from the tilling.
    • registerFlattening

      public static void registerFlattening(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
      Registers standard block transform data for flattening with a shovel, like dirt into paths.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the flattening sound.
      Use registerShovel(BlockTransformer) instead to register any more complex or custom block transform data for shovels.
      Parameters:
      fromBlocks - The blocks which can be flattened.
      toBlockState - A provider of the block state which results from the flattening.
    • registerStripping

      public static void registerStripping(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
      Registers standard block transform data for stripping with an axe, like logs into stripped logs.
      Specifically, copies any applicable block state properties to the result, and plays the stripping sound.
      Use registerAxe(BlockTransformer) instead to register any more complex or custom block transform data for axes.
      Parameters:
      fromBlocks - The blocks which can can be stripped.
      toBlockState - A provider of the block state which results from the stripping.
    • registerTilling

      public static void registerTilling(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
      Registers standard block transform data for tilling with a hoe, like dirt into farmland.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the tilling sound.
      Use registerHoe(BlockTransformer) instead to register any more complex or custom block transform data for hoes.
      Parameters:
      fromBlocks - The blocks which can be tilled.
      toBlockState - A provider of the block state which results from the tilling.
    • registerFlattening

      public static void registerFlattening(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toBlockState)
      Registers standard block transform data for flattening with a shovel, like dirt into paths.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the flattening sound.
      Use registerShovel(BlockTransformer) instead to register any more complex or custom block transform data for shovels.
      Parameters:
      fromBlocks - The blocks which can be flattened.
      toBlockState - A provider of the block state which results from the flattening.
    • registerStripping

      public static void registerStripping(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.block.state.BlockState toBlockState)
      Registers standard block transform data for stripping with an axe, like logs into stripped logs.
      Specifically, copies any applicable block state properties to the result, and plays the stripping sound.
      Use registerAxe(BlockTransformer) instead to register any more complex or custom block transform data for axes.
      Parameters:
      fromBlockPredicate - A predicate for which blocks can be stripped.
      toBlockState - The block state which results from the stripping.
    • registerTilling

      public static void registerTilling(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.block.state.BlockState toBlockState)
      Registers standard block transform data for tilling with a hoe, like dirt into farmland.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the tilling sound.
      Use registerHoe(BlockTransformer) instead to register any more complex or custom block transform data for hoes.
      Parameters:
      fromBlockPredicate - A predicate for which blocks can be tilled.
      toBlockState - The block state which results from the tilling.
    • registerFlattening

      public static void registerFlattening(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.block.state.BlockState toBlockState)
      Registers standard block transform data for flattening with a shovel, like dirt into paths.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the flattening sound.
      Use registerShovel(BlockTransformer) instead to register any more complex or custom block transform data for shovels.
      Parameters:
      fromBlockPredicate - A predicate for which blocks can be flattened.
      toBlockState - The block state which results from the flattening.
    • registerStripping

      public static void registerStripping(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.block.state.BlockState toBlockState)
      Registers standard block transform data for stripping with an axe, like logs into stripped logs.
      Specifically, copies any applicable block state properties to the result, and plays the stripping sound.
      Use registerAxe(BlockTransformer) instead to register any more complex or custom block transform data for axes.
      Parameters:
      fromBlock - The block state which can can be stripped.
      toBlockState - The block state which results from the stripping.
    • registerTilling

      public static void registerTilling(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.block.state.BlockState toBlockState)
      Registers standard block transform data for tilling with a hoe, like dirt into farmland.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the tilling sound.
      Use registerHoe(BlockTransformer) instead to register any more complex or custom block transform data for hoes.
      Parameters:
      fromBlock - The block state which can be tilled.
      toBlockState - The block state which results from the tilling.
    • registerFlattening

      public static void registerFlattening(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.block.state.BlockState toBlockState)
      Registers standard block transform data for flattening with a shovel, like dirt into paths.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the flattening sound.
      Use registerShovel(BlockTransformer) instead to register any more complex or custom block transform data for shovels.
      Parameters:
      fromBlock - The block state which can be flattened.
      toBlockState - The block state which results from the flattening.
    • registerStripping

      public static void registerStripping(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.block.state.BlockState toBlockState)
      Registers standard block transform data for stripping with an axe, like logs into stripped logs.
      Specifically, copies any applicable block state properties to the result, and plays the stripping sound.
      Use registerAxe(BlockTransformer) instead to register any more complex or custom block transform data for axes.
      Parameters:
      fromBlocks - The blocks which can can be stripped.
      toBlockState - The block state which results from the stripping.
    • registerTilling

      public static void registerTilling(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.block.state.BlockState toBlockState)
      Registers standard block transform data for tilling with a hoe, like dirt into farmland.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the tilling sound.
      Use registerHoe(BlockTransformer) instead to register any more complex or custom block transform data for hoes.
      Parameters:
      fromBlocks - The blocks which can be tilled.
      toBlockState - The block state which results from the tilling.
    • registerFlattening

      public static void registerFlattening(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.block.state.BlockState toBlockState)
      Registers standard block transform data for flattening with a shovel, like dirt into paths.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the flattening sound.
      Use registerShovel(BlockTransformer) instead to register any more complex or custom block transform data for shovels.
      Parameters:
      fromBlocks - The blocks which can be flattened.
      toBlockState - The block state which results from the flattening.
    • registerStripping

      public static void registerStripping(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.block.state.BlockState toBlockState)
      Registers standard block transform data for stripping with an axe, like logs into stripped logs.
      Specifically, copies any applicable block state properties to the result, and plays the stripping sound.
      Use registerAxe(BlockTransformer) instead to register any more complex or custom block transform data for axes.
      Parameters:
      fromBlocks - The blocks which can can be stripped.
      toBlockState - The block state which results from the stripping.
    • registerTilling

      public static void registerTilling(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.block.state.BlockState toBlockState)
      Registers standard block transform data for tilling with a hoe, like dirt into farmland.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the tilling sound.
      Use registerHoe(BlockTransformer) instead to register any more complex or custom block transform data for hoes.
      Parameters:
      fromBlocks - The blocks which can be tilled.
      toBlockState - The block state which results from the tilling.
    • registerFlattening

      public static void registerFlattening(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.block.state.BlockState toBlockState)
      Registers standard block transform data for flattening with a shovel, like dirt into paths.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the flattening sound.
      Use registerShovel(BlockTransformer) instead to register any more complex or custom block transform data for shovels.
      Parameters:
      fromBlocks - The blocks which can be flattened.
      toBlockState - The block state which results from the flattening.
    • registerStripping

      public static void registerStripping(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.block.Block toBlock)
      Registers standard block transform data for stripping with an axe, like logs into stripped logs.
      Specifically, copies any applicable block state properties to the result, and plays the stripping sound.
      Use registerAxe(BlockTransformer) instead to register any more complex or custom block transform data for axes.
      Parameters:
      fromBlockPredicate - A predicate for which blocks can be stripped.
      toBlock - The block which results from the stripping.
    • registerTilling

      public static void registerTilling(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.block.Block toBlock)
      Registers standard block transform data for tilling with a hoe, like dirt into farmland.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the tilling sound.
      Use registerHoe(BlockTransformer) instead to register any more complex or custom block transform data for hoes.
      Parameters:
      fromBlockPredicate - A predicate for which blocks can be tilled.
      toBlock - The block which results from the tilling.
    • registerFlattening

      public static void registerFlattening(net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate fromBlockPredicate, net.minecraft.world.level.block.Block toBlock)
      Registers standard block transform data for flattening with a shovel, like dirt into paths.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the flattening sound.
      Use registerShovel(BlockTransformer) instead to register any more complex or custom block transform data for shovels.
      Parameters:
      fromBlockPredicate - A predicate for which blocks can be flattened.
      toBlock - The block which results from the flattening.
    • registerStripping

      public static void registerStripping(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.block.Block toBlock)
      Registers standard block transform data for stripping with an axe, like logs into stripped logs.
      Specifically, copies any applicable block state properties to the result, and plays the stripping sound.
      Use registerAxe(BlockTransformer) instead to register any more complex or custom block transform data for axes.
      Parameters:
      fromBlock - The block which can can be stripped.
      toBlock - The block which results from the stripping.
    • registerTilling

      public static void registerTilling(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.block.Block toBlock)
      Registers standard block transform data for tilling with a hoe, like dirt into farmland.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the tilling sound.
      Use registerHoe(BlockTransformer) instead to register any more complex or custom block transform data for hoes.
      Parameters:
      fromBlock - The block which can be tilled.
      toBlock - The block which results from the tilling.
    • registerFlattening

      public static void registerFlattening(net.minecraft.world.level.block.Block fromBlock, net.minecraft.world.level.block.Block toBlock)
      Registers standard block transform data for flattening with a shovel, like dirt into paths.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the flattening sound.
      Use registerShovel(BlockTransformer) instead to register any more complex or custom block transform data for shovels.
      Parameters:
      fromBlock - The block which can be flattened.
      toBlock - The block which results from the flattening.
    • registerStripping

      public static void registerStripping(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.block.Block toBlock)
      Registers standard block transform data for stripping with an axe, like logs into stripped logs.
      Specifically, copies any applicable block state properties to the result, and plays the stripping sound.
      Use registerAxe(BlockTransformer) instead to register any more complex or custom block transform data for axes.
      Parameters:
      fromBlocks - The blocks which can can be stripped.
      toBlock - The block which results from the stripping.
    • registerTilling

      public static void registerTilling(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.block.Block toBlock)
      Registers standard block transform data for tilling with a hoe, like dirt into farmland.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the tilling sound.
      Use registerHoe(BlockTransformer) instead to register any more complex or custom block transform data for hoes.
      Parameters:
      fromBlocks - The blocks which can be tilled.
      toBlock - The block which results from the tilling.
    • registerFlattening

      public static void registerFlattening(net.minecraft.world.level.block.Block[] fromBlocks, net.minecraft.world.level.block.Block toBlock)
      Registers standard block transform data for flattening with a shovel, like dirt into paths.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the flattening sound.
      Use registerShovel(BlockTransformer) instead to register any more complex or custom block transform data for shovels.
      Parameters:
      fromBlocks - The blocks which can be flattened.
      toBlock - The block which results from the flattening.
    • registerStripping

      public static void registerStripping(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.block.Block toBlock)
      Registers standard block transform data for stripping with an axe, like logs into stripped logs.
      Specifically, copies any applicable block state properties to the result, and plays the stripping sound.
      Use registerAxe(BlockTransformer) instead to register any more complex or custom block transform data for axes.
      Parameters:
      fromBlocks - The blocks which can can be stripped.
      toBlock - The block which results from the stripping.
    • registerTilling

      public static void registerTilling(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.block.Block toBlock)
      Registers standard block transform data for tilling with a hoe, like dirt into farmland.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the tilling sound.
      Use registerHoe(BlockTransformer) instead to register any more complex or custom block transform data for hoes.
      Parameters:
      fromBlocks - The blocks which can be tilled.
      toBlock - The block which results from the tilling.
    • registerFlattening

      public static void registerFlattening(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromBlocks, net.minecraft.world.level.block.Block toBlock)
      Registers standard block transform data for flattening with a shovel, like dirt into paths.
      Specifically, requires the block above the target to be air, disallows the interaction on the bottom face of the block, and plays the flattening sound.
      Use registerShovel(BlockTransformer) instead to register any more complex or custom block transform data for shovels.
      Parameters:
      fromBlocks - The blocks which can be flattened.
      toBlock - The block which results from the flattening.