public class TridentDroppedItem extends TridentEntity implements DroppedItem
airTicks, boundingBox, counter, displayName, executor, fallDistance, fireTicks, godMode, HANDLER, height, id, loc, nameVisible, onGround, passenger, portalCooldown, silent, ticksExisted, uniqueId, velocity, width| Constructor and Description |
|---|
TridentDroppedItem(Position spawnPosition,
Item item) |
| Modifier and Type | Method and Description |
|---|---|
int |
age()
Represents the age of this Item entity
|
boolean |
canPickupItem() |
protected void |
doTick() |
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.
|
Item |
item() |
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.
|
TridentEntity |
spawn()
Begin entity management
|
EntityType |
type()
Gets the type of entity
|
applyProperties, asNbt, boundingBox, displayName, doEncodeMeta, doLoad, doRemove, eject, encodeMetadata, entityId, isNameVisible, isSilent, load, onGround, passenger, position, remove, setDisplayName, setOnGround, setPassenger, setPosition, setSize, setVelocity, teleport, teleport, teleport, tick, uniqueId, velocity, withinRange, worldclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyProperties, boundingBox, displayName, eject, entityId, isNameVisible, isSilent, onGround, passenger, position, remove, setDisplayName, setPassenger, setSize, setVelocity, teleport, teleport, teleport, uniqueId, velocity, withinRange, worldpublic TridentDroppedItem(Position spawnPosition, Item item)
public int age()
DroppedItemage in interface DroppedItempublic void setAge(int age)
DroppedItemsetAge in interface DroppedItemage - the age to setprotected void doTick()
doTick in class TridentEntitypublic short health()
DroppedItemhealth in interface DroppedItempublic void setHealth(short health)
DroppedItemsetHealth in interface DroppedItemhealth - the value to set the health topublic String owner()
DroppedItemowner in interface DroppedItempublic void setOwner(String owner)
DroppedItemsetOwner in interface DroppedItemowner - The name of the Player to set this toopublic String dropper()
DroppedItemnull if this was spawned unnaturallydropper in interface DroppedItempublic void setDropper(String dropper)
DroppedItemsetDropper in interface DroppedItemdropper - the name of the Player who will become the dropperpublic EntityType type()
Entitytype in interface Entitytype in class TridentEntitypublic TridentEntity spawn()
TridentEntityspawn in class TridentEntitypublic boolean canPickupItem()
Copyright © 2016. All rights reserved.