Class PlayerMouseMotionEvent
java.lang.Object
com.hypixel.hytale.server.core.event.events.player.PlayerEvent<Void>
com.hypixel.hytale.server.core.event.events.player.PlayerMouseMotionEvent
- All Implemented Interfaces:
IBaseEvent<Void>,ICancellable,IEvent<Void>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final longprivate final Itemprivate final MouseMotionEventprivate final Vector2fprivate final Vector3iprivate final Entity -
Constructor Summary
ConstructorsConstructorDescriptionPlayerMouseMotionEvent(Ref<EntityStore> ref, Player player, long clientUseTime, Item itemInHand, Vector3i targetBlock, Entity targetEntity, Vector2f screenPoint, MouseMotionEvent mouseMotion) -
Method Summary
Methods inherited from class com.hypixel.hytale.server.core.event.events.player.PlayerEvent
getPlayer, getPlayerRef
-
Field Details
-
clientUseTime
private final long clientUseTime -
itemInHand
-
targetBlock
-
targetEntity
-
screenPoint
-
mouseMotion
-
cancelled
private boolean cancelled
-
-
Constructor Details
-
PlayerMouseMotionEvent
public PlayerMouseMotionEvent(@Nonnull Ref<EntityStore> ref, @Nonnull Player player, long clientUseTime, Item itemInHand, Vector3i targetBlock, Entity targetEntity, Vector2f screenPoint, MouseMotionEvent mouseMotion)
-
-
Method Details
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceICancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceICancellable
-
getClientUseTime
public long getClientUseTime() -
getItemInHand
-
getTargetBlock
-
getTargetEntity
-
getScreenPoint
-
getMouseMotion
-
toString
- Overrides:
toStringin classPlayerEvent<Void>
-