PlayerMouseMotionEvent class

Пакет: com.hypixel.hytale.server.core.event.events.player

Файл: com/hypixel/hytale/server/core/event/events/player/PlayerMouseMotionEvent.java

extends: PlayerEvent<Void>

implements: ICancellable

Поля (1)

МодификаторыТипИмя
final long clientUseTime

Методы (7)

МодификаторыВозвратСигнатура
public long getClientUseTimelong getClientUseTime()
public Item getItemInHandItem getItemInHand()
public MouseMotionEvent getMouseMotionMouseMotionEvent getMouseMotion()
public Vector2fc getScreenPointVector2fc getScreenPoint()
public Vector3i getTargetBlockVector3i getTargetBlock()
public Ref<EntityStore> getTargetEntityRefRef<EntityStore> getTargetEntityRef()
abstract super super(var1, var2)

Исходный код

Показать/скрыть
class="kw">package com.hypixel.hytale.server.core.event.events.player;

class="kw">import com.hypixel.hytale.component.Ref;
class="kw">import com.hypixel.hytale.event.ICancellable;
class="kw">import com.hypixel.hytale.protocol.MouseMotionEvent;
class="kw">import com.hypixel.hytale.server.core.asset.type.item.config.Item;
class="kw">import com.hypixel.hytale.server.core.entity.entities.Player;
class="kw">import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
class="kw">import javax.annotation.Nonnull;
class="kw">import org.joml.Vector2fc;
class="kw">import org.joml.Vector3i;

class="kw">public class PlayerMouseMotionEvent class="kw">extends PlayerEvent<Void> class="kw">implements ICancellable {
   class="kw">private class="kw">final long clientUseTime;
   class="kw">private class="kw">final Item itemInHand;
   class="kw">private class="kw">final Vector3i targetBlock;
   class="kw">private class="kw">final Ref<EntityStore> targetEntityRef;
   class="kw">private class="kw">final Vector2fc screenPoint;
   class="kw">private class="kw">final MouseMotionEvent mouseMotion;
   class="kw">private boolean cancelled;

   class="kw">public PlayerMouseMotionEvent(
      @Nonnull Ref<EntityStore> var1, @Nonnull Player var2, long var3, Item var5, Vector3i var6, Ref<EntityStore> var7, Vector2fc var8, MouseMotionEvent var9
   ) {
      super(var1, var2);
      this.clientUseTime = var3;
      this.itemInHand = var5;
      this.targetBlock = var6;
      this.targetEntityRef = var7;
      this.screenPoint = var8;
      this.mouseMotion = var9;
   }

   @Override
   class="kw">public boolean isCancelled() {
      class="kw">return this.cancelled;
   }

   @Override
   class="kw">public void setCancelled(boolean var1) {
      this.cancelled = var1;
   }

   class="kw">public long getClientUseTime() {
      class="kw">return this.clientUseTime;
   }

   class="kw">public Item getItemInHand() {
      class="kw">return this.itemInHand;
   }

   class="kw">public Vector3i getTargetBlock() {
      class="kw">return this.targetBlock;
   }

   class="kw">public Ref<EntityStore> getTargetEntityRef() {
      class="kw">return this.targetEntityRef;
   }

   class="kw">public Vector2fc getScreenPoint() {
      class="kw">return this.screenPoint;
   }

   class="kw">public MouseMotionEvent getMouseMotion() {
      class="kw">return this.mouseMotion;
   }

   @Nonnull
   @Override
   class="kw">public String toString() {
      class="kw">return "PlayerMouseMotionEvent{clientUseTime="
         + this.clientUseTime
         + ", itemInHand="
         + this.itemInHand
         + ", targetBlock="
         + this.targetBlock
         + ", targetEntityRef="
         + this.targetEntityRef
         + ", screenPoint="
         + this.screenPoint
         + ", mouseMotion="
         + this.mouseMotion
         + ", cancelled="
         + this.cancelled
         + "} "
         + super.toString();
   }
}