Class EventInteract

java.lang.Object
org.rusherhack.core.event.type.Event
org.rusherhack.core.event.type.EventCancellable
org.rusherhack.client.api.events.player.EventInteract
All Implemented Interfaces:
org.rusherhack.core.event.stage.IStageable

public class EventInteract extends org.rusherhack.core.event.type.EventCancellable
  • Constructor Details

    • EventInteract

      public EventInteract(net.minecraft.world.entity.Entity entity, net.minecraft.world.InteractionHand hand, boolean usingSecondaryAction, EventInteract.Action action, net.minecraft.world.phys.EntityHitResult hitResult)
  • Method Details

    • getTargetEntity

      public net.minecraft.world.entity.Entity getTargetEntity()
    • getHand

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

      public EventInteract.Action getAction()
    • getHitResult

      public net.minecraft.world.phys.EntityHitResult getHitResult()
    • isUsingSecondaryAction

      public boolean isUsingSecondaryAction()
    • setUsingSecondaryAction

      public void setUsingSecondaryAction(boolean usingSecondaryAction)
    • getPreferredStage

      public org.rusherhack.core.event.stage.Stage getPreferredStage()
      Overrides:
      getPreferredStage in class org.rusherhack.core.event.type.Event