77 lines
1.9 KiB
Markdown
77 lines
1.9 KiB
Markdown
# IScriptEntity.dropItem
|
|
|
|
[← IScriptEntity](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 2/3 · [önceki](dropItem.md) · [sonraki](dropItem-3.md)
|
|
|
|
float getHeight()
|
|
Get entity's current hitbox height.
|
|
|
|
IScriptItemStack getHelmet()
|
|
Return the entity's helmet's item stack.
|
|
|
|
float getHp()
|
|
Get health points of this entity (20 is the max default for players).
|
|
|
|
java.util.List<IScriptEntity> getLeashedEntities()
|
|
Returns leashed entities by this entity.
|
|
|
|
IScriptEntity getLeashHolder()
|
|
Returns the leash holder of this entity.
|
|
|
|
IScriptItemStack getLeggings()
|
|
Return the entity's leggings' item stack.
|
|
|
|
ScriptVector getLook()
|
|
Get a vector in which direction entity looks.
|
|
|
|
IScriptItemStack getMainItem()
|
|
Get item held in main hand.
|
|
|
|
float getMaxHp()
|
|
Get maximum health points this entity can have.
|
|
|
|
Entity getMinecraftEntity()
|
|
Get Minecraft entity instance.
|
|
|
|
double getModifier(java.lang.String modifierName)
|
|
Return an entity's modifier.
|
|
|
|
AbstractMorph getMorph()
|
|
Get entity's morph (works with player and NPCs).
|
|
|
|
ScriptVector getMotion()
|
|
Get entity's motion.
|
|
|
|
IScriptEntity getMount()
|
|
Returns the entity that this entity rides on.
|
|
|
|
java.lang.String getName()
|
|
Get entity name.
|
|
|
|
IScriptItemStack getOffItem()
|
|
Get item held in off hand.
|
|
|
|
float getPitch()
|
|
Get entity's pitch (vertical rotation).
|
|
|
|
ScriptVector getPosition()
|
|
Get entity's position.
|
|
|
|
ScriptVector getRotations()
|
|
Get entity's rotation (x is pitch, y is yaw, and z is yaw head, if entity is living base).
|
|
|
|
IMappetStates getStates()
|
|
Get entity's states (if it has some, only players and NPCs have states).
|
|
|
|
IScriptEntity getTarget()
|
|
Get this entity's attack target.
|
|
|
|
int getTicks()
|
|
Get how many ticks did this entity existed.
|
|
|
|
java.lang.String getUniqueId()
|
|
Get unique ID of this entity, which can be used, if needed, in commands as a target selector.
|
|
|
|
float getWidth()
|