// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.server.core.event.events.ecs;

import javax.annotation.Nonnull;
import com.hypixel.hytale.server.core.inventory.ItemStack;
import com.hypixel.hytale.component.system.CancellableEcsEvent;

public class DropItemEvent extends CancellableEcsEvent
{
    public static final class PlayerRequest extends DropItemEvent
    {
        private final int inventorySectionId;
        private final short slotId;
        
        public PlayerRequest(final int inventorySectionId, final short slotId) {
            this.inventorySectionId = inventorySectionId;
            this.slotId = slotId;
        }
        
        public int getInventorySectionId() {
            return this.inventorySectionId;
        }
        
        public short getSlotId() {
            return this.slotId;
        }
    }
    
    public static final class Drop extends DropItemEvent
    {
        @Nonnull
        private ItemStack itemStack;
        private float throwSpeed;
        
        public Drop(@Nonnull final ItemStack itemStack, final float throwSpeed) {
            this.itemStack = itemStack;
            this.throwSpeed = throwSpeed;
        }
        
        public void setThrowSpeed(final float throwSpeed) {
            this.throwSpeed = throwSpeed;
        }
        
        public float getThrowSpeed() {
            return this.throwSpeed;
        }
        
        public void setItemStack(@Nonnull final ItemStack itemStack) {
            this.itemStack = itemStack;
        }
        
        @Nonnull
        public ItemStack getItemStack() {
            return this.itemStack;
        }
    }
}
