Class HoeItemHooks

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

public final class HoeItemHooks extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 block
      predicate - context predicate
      action - action to run
      newState - the new block state