PlayerMouseButtonEvent

public class PlayerMouseButtonEvent extends PlayerEvent

Event fired when playermousebutton occurs. Listen for this event using EventBus.register.

java.lang.Object > PlayerEvent > PlayerMouseButtonEvent

Field Summary

cancelled

private boolean cancelled

Field cancelled.

Method Detail

PlayerMouseButtonEvent

public public PlayerMouseButtonEvent (@Nonnull final Ref ref, @Nonnull final Player player, @Nonnull final PlayerRef playerRefComponent, final long clientUseTime, @Nonnull final Item itemInHand, @Nonnull final Vector3i targetBlock, @Nonnull final Entity targetEntity, @Nonnull final Vector2f screenPoint, @Nonnull final MouseButtonEvent mouseButton)

Method PlayerMouseButtonEvent.

Parameters:
@Nonnull final Ref ref
@Nonnull final Player player
@Nonnull final PlayerRef playerRefComponent
final long clientUseTime
@Nonnull final Item itemInHand
@Nonnull final Vector3i targetBlock
@Nonnull final Entity targetEntity
@Nonnull final Vector2f screenPoint
@Nonnull final MouseButtonEvent mouseButton

getPlayerRefComponent

public PlayerRef getPlayerRefComponent ()

Method getPlayerRefComponent.

isCancelled

public boolean isCancelled ()

Method isCancelled.

setCancelled

public void setCancelled (final boolean cancelled)

Method setCancelled.

Parameters:
final boolean cancelled

getClientUseTime

public long getClientUseTime ()

Method getClientUseTime.

getItemInHand

public Item getItemInHand ()

Method getItemInHand.

getTargetBlock

public Vector3i getTargetBlock ()

Method getTargetBlock.

getTargetEntity

public Entity getTargetEntity ()

Method getTargetEntity.

getScreenPoint

public Vector2f getScreenPoint ()

Method getScreenPoint.

getMouseButton

public MouseButtonEvent getMouseButton ()

Method getMouseButton.

toString

public String toString ()

Method toString.