Class ItemInteractEvent

java.lang.Object
dev.ultreon.mods.xinexlib.event.interact.ItemInteractEvent
All Implemented Interfaces:
CancelableValue<net.minecraft.world.ItemInteractionResult>

public abstract class ItemInteractEvent extends Object implements CancelableValue<net.minecraft.world.ItemInteractionResult>
  • Field Details

    • canceled

      protected boolean canceled
    • interactionResult

      protected net.minecraft.world.ItemInteractionResult interactionResult
  • Constructor Details

    • ItemInteractEvent

      public ItemInteractEvent()
  • Method Details

    • isCanceled

      public boolean isCanceled()
      Specified by:
      isCanceled in interface CancelableValue<net.minecraft.world.ItemInteractionResult>
    • get

      @NotNull public @NotNull net.minecraft.world.ItemInteractionResult get()
      Specified by:
      get in interface CancelableValue<net.minecraft.world.ItemInteractionResult>
    • cancel

      public void cancel(@Nullable @Nullable net.minecraft.world.ItemInteractionResult value)
      Specified by:
      cancel in interface CancelableValue<net.minecraft.world.ItemInteractionResult>