public class PlayerItemHeldEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerItemHeldEvent(Player player,
Item item,
int hotbarSlot) |
| Modifier and Type | Method and Description |
|---|---|
int |
getInventorySlot()
Deprecated.
|
Item |
getItem() |
int |
getSlot() |
getPlayerisCancelled, setCancelled, setCancelledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCancelled, setCancelled, setCancelledpublic int getSlot()
@Deprecated public int getInventorySlot()
public Item getItem()
Copyright © 2020. All rights reserved.