Class BlockTransformerHelper
java.lang.Object
net.fabricmc.fabric.api.item.v1.BlockTransformerHelper
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 TypeMethodDescriptionstatic voidregisterAxe(net.minecraft.core.component.BlockTransformer transformer) Registers block transform data that will be added to axes.static voidregisterAxe(net.minecraft.core.component.BlockTransformer.BlockTransformData transformData) Registers block transform data that will be added to axes.static voidregisterFlattening(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 voidregisterFlattening(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 voidregisterFlattening(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 voidregisterFlattening(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 voidregisterFlattening(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 voidregisterFlattening(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 voidregisterFlattening(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 voidregisterFlattening(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 voidregisterFlattening(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 voidregisterFlattening(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 voidregisterFlattening(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 voidregisterFlattening(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 voidregisterHoe(net.minecraft.core.component.BlockTransformer transformer) Registers block transform data that will be added to hoes.static voidregisterHoe(net.minecraft.core.component.BlockTransformer.BlockTransformData transformData) Registers block transform data that will be added to hoes.static voidregisterShovel(net.minecraft.core.component.BlockTransformer transformer) Registers block transform data that will be added to shovels.static voidregisterShovel(net.minecraft.core.component.BlockTransformer.BlockTransformData transformData) Registers block transform data that will be added to shovels.static voidregisterStripping(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 voidregisterStripping(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 voidregisterStripping(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 voidregisterStripping(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 voidregisterStripping(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 voidregisterStripping(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 voidregisterStripping(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 voidregisterStripping(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 voidregisterStripping(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 voidregisterStripping(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 voidregisterStripping(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 voidregisterStripping(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 voidregisterTilling(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 voidregisterTilling(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 voidregisterTilling(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 voidregisterTilling(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 voidregisterTilling(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 voidregisterTilling(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 voidregisterTilling(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 voidregisterTilling(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 voidregisterTilling(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 voidregisterTilling(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 voidregisterTilling(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 voidregisterTilling(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.
-
Method Details
-
registerAxe
public static void registerAxe(net.minecraft.core.component.BlockTransformer transformer) Registers block transform data that will be added to axes.
UseregisterStripping(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.
UseregisterTilling(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.
UseregisterFlattening(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.
UseregisterStripping(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.
UseregisterTilling(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.
UseregisterFlattening(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.
UseregisterAxe(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.
UseregisterHoe(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.
UseregisterShovel(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.
UseregisterAxe(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.
UseregisterHoe(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.
UseregisterShovel(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.
UseregisterAxe(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.
UseregisterHoe(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.
UseregisterShovel(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.
UseregisterAxe(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.
UseregisterHoe(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.
UseregisterShovel(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.
UseregisterAxe(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.
UseregisterHoe(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.
UseregisterShovel(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.
UseregisterAxe(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.
UseregisterHoe(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.
UseregisterShovel(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.
UseregisterAxe(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.
UseregisterHoe(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.
UseregisterShovel(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.
UseregisterAxe(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.
UseregisterHoe(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.
UseregisterShovel(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.
UseregisterAxe(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.
UseregisterHoe(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.
UseregisterShovel(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.
UseregisterAxe(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.
UseregisterHoe(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.
UseregisterShovel(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.
UseregisterAxe(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.
UseregisterHoe(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.
UseregisterShovel(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.
UseregisterAxe(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.
UseregisterHoe(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.
UseregisterShovel(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.
-