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
    • Constructor Detail

      • UseHoeEvent

        public UseHoeEvent​(ItemUseContext context)
        Deprecated.
    • Method Detail

      • getContext

        @Nonnull
        public ItemUseContext getContext()
        Deprecated.