Class ShovelItemHooks

java.lang.Object
dev.architectury.hooks.item.tool.ShovelItemHooks

public final class ShovelItemHooks extends Object
  • Method Details

    • addFlattenable

      public static void addFlattenable(net.minecraft.world.level.block.Block input, net.minecraft.world.level.block.state.BlockState result)
      Adds a new flattening (interact with shovel) interaction to the game.

      Notes:

      • Blocks can only be flattened if they have no block above them.
      • Campfires have a special case for being extinguished by a shovel, though you can override that using this method due to the check order.
      Parameters:
      input - input block
      result - result block state