public interface DroppedItem extends Entity
Modifier and Type | Method and Description |
---|---|
int |
age()
Represents the age of this Item entity
|
String |
dropper()
Gets the name of the Player that dropped this Will return
null if this was spawned unnaturally |
short |
health()
Represents the health of this Item entity.
|
String |
owner()
Represents the owner of this Item entity
|
void |
setAge(int age)
Sets the age of this Item entity
|
void |
setDropper(String dropper)
Sets the Player who dropped this Item
|
void |
setHealth(short health)
Sets the health for this Item entity
|
void |
setOwner(String owner)
Sets the owner of this Item entity.
|
applyProperties, boundingBox, displayName, eject, entityId, isNameVisible, isSilent, onGround, passenger, position, remove, setDisplayName, setPassenger, setSize, setVelocity, teleport, teleport, teleport, type, uniqueId, velocity, withinRange, world
int age()
void setAge(int age)
age
- the age to setshort health()
void setHealth(short health)
health
- the value to set the health tovoid setOwner(String owner)
owner
- The name of the Player to set this tooString dropper()
null
if this was spawned unnaturallyvoid setDropper(String dropper)
dropper
- the name of the Player who will become the dropperCopyright © 2016. All rights reserved.