1.8 KiB
IScriptEntity.dropItem
Parça 1/3 · sonraki
dropItem()
ScriptEntityItem Drop one item of what the entity is holding.
dropItem(int amount)
ScriptEntityItem Drop the item an entity is holding.
dropItem(IScriptItemStack itemStack)
ScriptEntityItem Drop an item of the entity even if it is not holding it.
void executeCommand(java.lang.String command) Executes a command as a entity.
void executeRepeatingCommand(java.lang.String command, int frequency) Executes a command at a specific frequency on an entity.
void executeScript(java.lang.String scriptName) Execute for the entity a script with a given script name and the default function "main".
void executeScript(java.lang.String scriptName, java.lang.String function) Execute for the entity a script with a given script name.
void executeScript(java.lang.String scriptName, java.lang.String function, java.lang.Object... args) Execute for the entity a script with a given script name and arguments.
IScriptItemStack getBoots() Return the entity's boots' item stack.
ScriptBox getBoundingBox() Returns the bounding box of this entity.
IScriptItemStack getChestplate() Return the entity's chestplate's item stack.
int getCombinedLight() Get combined light value of where the entity is currently standing.
int getDimension() Returns the dimension of the entity.
INBTCompound getEntityData() Get Forge's custom tag compound in which you can story any data you want.
java.lang.String getEntityId() Get entity's resource location ID, like minecraft:pig or minecraft:zombie.
float getEyeHeight() Returns the eye height of the entity.
float getFallDistance() Get entity's fall distance.
INBTCompound getFullData() Get entity's full (copy of its) NBT data.