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
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionEventInteract
(net.minecraft.world.entity.Entity entity, net.minecraft.world.InteractionHand hand, boolean usingSecondaryAction, EventInteract.Action action, net.minecraft.world.phys.EntityHitResult hitResult) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionHand
getHand()
net.minecraft.world.phys.EntityHitResult
org.rusherhack.core.event.stage.Stage
net.minecraft.world.entity.Entity
boolean
void
setUsingSecondaryAction
(boolean usingSecondaryAction) Methods inherited from class org.rusherhack.core.event.type.EventCancellable
isCancelled, setCancelled
Methods inherited from class org.rusherhack.core.event.type.Event
getStage, setStage
-
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
-
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 classorg.rusherhack.core.event.type.Event
-