Class UseHoeEvent


@Deprecated public class UseHoeEvent extends PlayerEvent
Deprecated.
This event is fired when a player attempts to use a Hoe on a block, it can be canceled to completely prevent any further processing. You can also set the result to ALLOW to mark the event as processed and damage the hoe. setResult(ALLOW) is the same as the old setHandled(); TODO: 1.17 Remove
  • Field Details

  • Constructor Details

    • UseHoeEvent

      public UseHoeEvent(ItemUseContext context)
      Deprecated.
  • Method Details

    • getContext

      @Nonnull public ItemUseContext getContext()
      Deprecated.