DropItemEvent

public class DropItemEvent extends CancellableEcsEvent

Event fired when dropitem occurs. Listen for this event using EventBus.register.

java.lang.Object > CancellableEcsEvent > DropItemEvent

Field Summary

itemStack

private ItemStack itemStack

Field itemStack.

throwSpeed

private float throwSpeed

Field throwSpeed.

Method Detail

PlayerRequest

public public PlayerRequest (final int inventorySectionId, final short slotId)

Method PlayerRequest.

Parameters:
final int inventorySectionId
final short slotId

getInventorySectionId

public int getInventorySectionId ()

Method getInventorySectionId.

getSlotId

public short getSlotId ()

Method getSlotId.

Drop

public public Drop (@Nonnull final ItemStack itemStack, final float throwSpeed)

Method Drop.

Parameters:
@Nonnull final ItemStack itemStack
final float throwSpeed

setThrowSpeed

public void setThrowSpeed (final float throwSpeed)

Method setThrowSpeed.

Parameters:
final float throwSpeed

getThrowSpeed

public float getThrowSpeed ()

Method getThrowSpeed.

setItemStack

public void setItemStack (@Nonnull final ItemStack itemStack)

Method setItemStack.

Parameters:
@Nonnull final ItemStack itemStack

getItemStack

public ItemStack getItemStack ()

Method getItemStack.