public interface WindowHolder extends Entity
Modifier and Type | Method and Description |
---|---|
Item |
heldItem()
Returns the ItemStack in the Player's hand
|
void |
setHeldItem(Item item)
Sets the item held in the selected slot
|
Inventory |
window()
The Inventory that this entity holds
|
applyProperties, boundingBox, displayName, eject, entityId, isNameVisible, isSilent, onGround, passenger, position, remove, setDisplayName, setPassenger, setSize, setVelocity, teleport, teleport, teleport, type, uniqueId, velocity, withinRange, world
Inventory window()
Item heldItem()
void setHeldItem(Item item)
item
- the item to setCopyright © 2016. All rights reserved.