Package dev.architectury.hooks.item.tool
Class AxeItemHooks
java.lang.Object
dev.architectury.hooks.item.tool.AxeItemHooks
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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 blockresult
- result block- Throws:
IllegalArgumentException
- if the input or result blocks do not have theAXIS
property.
-