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>

public class PlayerMouseMotionEvent extends PlayerEvent<Void> implements ICancellable
  • Constructor Details

    • PlayerMouseMotionEvent

      public PlayerMouseMotionEvent(@Nonnull Ref<EntityStore> ref, @Nonnull Player player, long clientUseTime, Item itemInHand, org.joml.Vector3i targetBlock, Ref<EntityStore> targetEntityRef, org.joml.Vector2fc screenPoint, MouseMotionEvent mouseMotion)
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Description copied from interface: ICancellable
      Determines whether this event has been cancelled.
      Specified by:
      isCancelled in interface ICancellable
      Returns:
      true if the event has been cancelled, false otherwise.
    • setCancelled

      public void setCancelled(boolean cancelled)
      Description copied from interface: ICancellable
      Called to set whether this event is cancelled.
      Specified by:
      setCancelled in interface ICancellable
      Parameters:
      cancelled - true to cancel the event, false to uncancel it.
    • getClientUseTime

      public long getClientUseTime()
    • getItemInHand

      public Item getItemInHand()
    • getTargetBlock

      public org.joml.Vector3i getTargetBlock()
    • getTargetEntityRef

      public Ref<EntityStore> getTargetEntityRef()
    • getScreenPoint

      public org.joml.Vector2fc getScreenPoint()
    • getMouseMotion

      public MouseMotionEvent getMouseMotion()
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class PlayerEvent<Void>