Package dev.architectury.hooks.item.tool
Class HoeItemHooks
java.lang.Object
dev.architectury.hooks.item.tool.HoeItemHooks
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddTillable(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- 
addTillablepublic 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 block
- predicate- context predicate
- action- action to run
- newState- the new block state
 
 
-