DropItemEvent class

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

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

extends: CancellableEcsEvent

Поля (4)

МодификаторыТипИмя
private final int inventorySectionId
private ItemStack itemStack
private final short slotId
private float throwSpeed

Методы (8)

МодификаторыВозвратСигнатура
public Droppublic Drop(@Nonnull ItemStack var1, float var2)
public PlayerRequestpublic PlayerRequest(int var1, short var2)
public int getInventorySectionIdpublic int getInventorySectionId()
public ItemStack getItemStackpublic ItemStack getItemStack()
public short getSlotIdpublic short getSlotId()
public float getThrowSpeedpublic float getThrowSpeed()
public void setItemStackpublic void setItemStack(@Nonnull ItemStack var1)
public void setThrowSpeedpublic void setThrowSpeed(float var1)

Исходный код

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

class="kw">import com.hypixel.hytale.component.system.CancellableEcsEvent;
class="kw">import com.hypixel.hytale.server.core.inventory.ItemStack;
class="kw">import javax.annotation.Nonnull;

class="kw">public class DropItemEvent class="kw">extends CancellableEcsEvent {
   class="kw">public DropItemEvent() {
   }

   class="kw">public class="kw">static class="kw">final class Drop class="kw">extends DropItemEvent {
      @Nonnull
      class="kw">private ItemStack itemStack;
      class="kw">private float throwSpeed;

      class="kw">public Drop(@Nonnull ItemStack var1, float var2) {
         this.itemStack = var1;
         this.throwSpeed = var2;
      }

      class="kw">public void setThrowSpeed(float var1) {
         this.throwSpeed = var1;
      }

      class="kw">public float getThrowSpeed() {
         class="kw">return this.throwSpeed;
      }

      class="kw">public void setItemStack(@Nonnull ItemStack var1) {
         this.itemStack = var1;
      }

      @Nonnull
      class="kw">public ItemStack getItemStack() {
         class="kw">return this.itemStack;
      }
   }

   class="kw">public class="kw">static class="kw">final class PlayerRequest class="kw">extends DropItemEvent {
      class="kw">private class="kw">final int inventorySectionId;
      class="kw">private class="kw">final short slotId;

      class="kw">public PlayerRequest(int var1, short var2) {
         this.inventorySectionId = var1;
         this.slotId = var2;
      }

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

      class="kw">public short getSlotId() {
         class="kw">return this.slotId;
      }
   }
}