InventoryActiveSlotRequestEvent class

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

Файл: com/hypixel/hytale/server/core/event/events/ecs/InventoryActiveSlotRequestEvent.java

extends: CancellableEcsEvent

Поля (1)

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

Методы (6)

МодификаторыВозвратСигнатура
public int getInventorySectionIdint getInventorySectionId()
public byte getNewSlotbyte getNewSlot()
public int getPreviousSlotint getPreviousSlot()
public boolean isClientRequestboolean isClientRequest()
public boolean isServerRequestboolean isServerRequest()
public void setNewSlotvoid setNewSlot(byte var1)

Исходный код

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

class="kw">import com.hypixel.hytale.component.system.CancellableEcsEvent;

class="kw">public class InventoryActiveSlotRequestEvent class="kw">extends CancellableEcsEvent {
   class="kw">private class="kw">final int previousSlot;
   class="kw">private class="kw">final int inventorySectionId;
   class="kw">private byte newSlot;
   class="kw">private class="kw">final boolean serverRequest;

   class="kw">public InventoryActiveSlotRequestEvent(int var1, int var2, byte var3, boolean var4) {
      this.inventorySectionId = var1;
      this.previousSlot = var2;
      this.newSlot = var3;
      this.serverRequest = var4;
   }

   class="kw">public int getPreviousSlot() {
      class="kw">return this.previousSlot;
   }

   class="kw">public byte getNewSlot() {
      class="kw">return this.newSlot;
   }

   class="kw">public void setNewSlot(byte var1) {
      this.newSlot = var1;
   }

   class="kw">public boolean isServerRequest() {
      class="kw">return this.serverRequest;
   }

   class="kw">public boolean isClientRequest() {
      class="kw">return !this.serverRequest;
   }

   class="kw">public int getInventorySectionId() {
      class="kw">return this.inventorySectionId;
   }
}