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, world
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyProperties, boundingBox, displayName, eject, entityId, isNameVisible, isSilent, onGround, passenger, position, remove, setDisplayName, setPassenger, setSize, setVelocity, teleport, teleport, teleport, uniqueId, velocity, withinRange, world
public TridentDroppedItem(Position spawnPosition, Item item)
public int age()
DroppedItem
age
in interface DroppedItem
public void setAge(int age)
DroppedItem
setAge
in interface DroppedItem
age
- the age to setprotected void doTick()
doTick
in class TridentEntity
public short health()
DroppedItem
health
in interface DroppedItem
public void setHealth(short health)
DroppedItem
setHealth
in interface DroppedItem
health
- the value to set the health topublic String owner()
DroppedItem
owner
in interface DroppedItem
public void setOwner(String owner)
DroppedItem
setOwner
in interface DroppedItem
owner
- The name of the Player to set this toopublic String dropper()
DroppedItem
null
if this was spawned unnaturallydropper
in interface DroppedItem
public void setDropper(String dropper)
DroppedItem
setDropper
in interface DroppedItem
dropper
- the name of the Player who will become the dropperpublic EntityType type()
Entity
type
in interface Entity
type
in class TridentEntity
public TridentEntity spawn()
TridentEntity
spawn
in class TridentEntity
public boolean canPickupItem()
Copyright © 2016. All rights reserved.