public interface Human extends Living, ProjectileSource, ArmorEquipable, Tamer, Carrier
Player
.UNKNOWN
Modifier and Type | Method and Description |
---|---|
void |
closeInventory()
Closes the currently viewed entity of this human entity, if it is
currently viewing one.
|
FoodData |
getFoodData()
|
Optional<Inventory> |
getOpenInventory()
Gets the currently viewed inventory of this human entity, if it is
currently viewing one.
|
boolean |
isViewingInventory()
Returns whether this human entity has an open inventory at the moment
or not.
|
void |
openInventory(Inventory inventory)
Opens the given Inventory for the player to view.
|
getHealthData, getMortalData
createSnapshot, damage, getLocation, getRotation, getScale, getTransform, getType, getWorld, isLoaded, isOnGround, isRemoved, remove, setLocation, setLocationAndRotation, setLocationAndRotation, setLocationAndRotationSafely, setLocationAndRotationSafely, setLocationSafely, setRotation, setScale, setTransform, transferToWorld, transferToWorld
getProperties, getProperty, setRawData, validateRawData
toContainer
copyFrom, copyFrom, get, getContainers, getOrCreate, offer, offer, offer, offer, offer, offer, remove, remove, remove, supports, transform, undo
copy, get, getKeys, getOrElse, getOrNull, getValue, getValues, supports, supports
getTeamRepresentation
launchProjectile, launchProjectile
getBoots, getChestplate, getHelmet, getItemInHand, getLeggings, setBoots, setChestplate, setHelmet, setItemInHand, setLeggings
canEquip, canEquip, equip, getEquipped
getUniqueId
getInventory
boolean isViewingInventory()
Optional<Inventory> getOpenInventory()
Optional.absent()
void openInventory(Inventory inventory)
inventory
- The inventory to viewvoid closeInventory()
FoodData getFoodData()