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
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final net.minecraft.world.InteractionHandprotected net.minecraft.world.InteractionResult -
Constructor Summary
Constructors -
Method Summary
-
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:
isCanceledin interfaceCancelableValue<net.minecraft.world.InteractionResult>
-
get
public net.minecraft.world.InteractionResult get()- Specified by:
getin interfaceCancelableValue<net.minecraft.world.InteractionResult>
-
cancel
public void cancel(@Nullable @Nullable net.minecraft.world.InteractionResult value) - Specified by:
cancelin interfaceCancelableValue<net.minecraft.world.InteractionResult>
-
getHand
public net.minecraft.world.InteractionHand getHand() -
equals
-
hashCode
public int hashCode()
-