public class PlayerInteractEvent extends PlayerEvent
Event fired when playerinteract occurs. Listen for this event using EventBus.register.
java.lang.Object > PlayerEvent > PlayerInteractEvent
Field Summary
cancelled
private
boolean
cancelled
Field cancelled.
Method Detail
PlayerInteractEvent
public
public
PlayerInteractEvent
(@Nonnull final Ref ref, @Nonnull final Player player, final long clientUseTime, final InteractionType actionType, final ItemStack itemInHand, final Vector3i targetBlock, final Ref targetRef, final Entity targetEntity)
Method PlayerInteractEvent.
- Parameters:
@Nonnull final Refref@Nonnull final Playerplayerfinal longclientUseTimefinal InteractionTypeactionTypefinal ItemStackitemInHandfinal Vector3itargetBlockfinal ReftargetReffinal EntitytargetEntity
isCancelled
public
boolean
isCancelled
()
Method isCancelled.
setCancelled
public
void
setCancelled
(final boolean cancelled)
Method setCancelled.
- Parameters:
final booleancancelled
getClientUseTime
public
long
getClientUseTime
()
Method getClientUseTime.
toString
public
String
toString
()
Method toString.