Package dev.architectury.hooks.item.tool
Class HoeItemHooks
java.lang.Object
dev.architectury.hooks.item.tool.HoeItemHooks
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addTillable
(net.minecraft.world.level.block.Block input, Predicate<net.minecraft.world.item.context.UseOnContext> predicate, Consumer<net.minecraft.world.item.context.UseOnContext> action, Function<net.minecraft.world.item.context.UseOnContext, net.minecraft.world.level.block.state.BlockState> newState) Adds a new tilling action.
-
Method Details
-
addTillable
public static void addTillable(net.minecraft.world.level.block.Block input, Predicate<net.minecraft.world.item.context.UseOnContext> predicate, Consumer<net.minecraft.world.item.context.UseOnContext> action, Function<net.minecraft.world.item.context.UseOnContext, net.minecraft.world.level.block.state.BlockState> newState) Adds a new tilling action.- Parameters:
input
- input blockpredicate
- context predicateaction
- action to runnewState
- the new block state
-