Class InteractEvent

java.lang.Object
dev.ultreon.mods.xinexlib.event.interact.InteractEvent
All Implemented Interfaces:
CancelableValue<net.minecraft.world.InteractionResult>
Direct Known Subclasses:
UseBlockEvent, UseEntityEvent, UseItemEvent

public abstract class InteractEvent extends Object implements CancelableValue<net.minecraft.world.InteractionResult>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected final net.minecraft.world.InteractionHand
     
    protected net.minecraft.world.InteractionResult
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    InteractEvent(net.minecraft.world.InteractionHand hand)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cancel(@Nullable net.minecraft.world.InteractionResult value)
     
    boolean
     
    net.minecraft.world.InteractionResult
    get()
     
    net.minecraft.world.InteractionHand
     
    int
     
    boolean
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • hand

      protected final net.minecraft.world.InteractionHand hand
    • canceled

      protected boolean canceled
    • interactionResult

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

    • InteractEvent

      public InteractEvent(net.minecraft.world.InteractionHand hand)
  • Method Details

    • isCanceled

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

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

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

      public net.minecraft.world.InteractionHand getHand()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object