Class ItemInteractEvent
java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.ItemInteractEvent
This event is fired when an interaction is taken using an
Item before
its Item.onInteractWith(IWorld, int, int, TileLayer, double, double, AbstractPlayerEntity, ItemInstance) method is called. Cancelling the event
will make the interaction not take place.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ItemInstancefinal booleanfinal AbstractPlayerEntityfinal doublefinal double -
Constructor Summary
ConstructorsConstructorDescriptionItemInteractEvent(AbstractPlayerEntity player, ItemInstance instance, double x, double y, boolean isDestroyKey) -
Method Summary
-
Field Details
-
player
-
instance
-
x
public final double x -
y
public final double y -
isDestroyKey
public final boolean isDestroyKey
-
-
Constructor Details
-
ItemInteractEvent
public ItemInteractEvent(AbstractPlayerEntity player, ItemInstance instance, double x, double y, boolean isDestroyKey)
-