PlayerMouseMotionEvent

public class PlayerMouseMotionEvent extends PlayerEvent

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

java.lang.Object > PlayerEvent > PlayerMouseMotionEvent

Field Summary

cancelled

private boolean cancelled

Field cancelled.

Method Detail

PlayerMouseMotionEvent

public public PlayerMouseMotionEvent (@Nonnull final Ref ref, @Nonnull final Player player, final long clientUseTime, final Item itemInHand, final Vector3i targetBlock, final Entity targetEntity, final Vector2f screenPoint, final MouseMotionEvent mouseMotion)

Method PlayerMouseMotionEvent.

Parameters:
@Nonnull final Ref ref
@Nonnull final Player player
final long clientUseTime
final Item itemInHand
final Vector3i targetBlock
final Entity targetEntity
final Vector2f screenPoint
final MouseMotionEvent mouseMotion

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.

getMouseMotion

public MouseMotionEvent getMouseMotion ()

Method getMouseMotion.

toString

public String toString ()

Method toString.