Class AxeItemHooks

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

public final class AxeItemHooks extends Object
  • Method Details

    • addStrippable

      public static void addStrippable(net.minecraft.world.level.block.Block input, net.minecraft.world.level.block.Block result)
      Adds a new stripping (interact with axe) interaction to the game.

      Note that both the input block and the result block must have the AXIS property, and that the value of this property will be copied from the input block to the result block when the recipe is performed.

      Parameters:
      input - input block
      result - result block
      Throws:
      IllegalArgumentException - if the input or result blocks do not have the AXIS property.