Class UseHoeEvent


@Deprecated(forRemoval=true, since="1.18.2") public class UseHoeEvent extends PlayerEvent
Deprecated, for removal: This API element is subject to removal in a future version.
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();
  • Field Details

    • context

      private final UseOnContext context
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • UseHoeEvent

      public UseHoeEvent(UseOnContext context)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getContext

      @Nonnull public UseOnContext getContext()
      Deprecated, for removal: This API element is subject to removal in a future version.