public class ScriptableEntityLiving extends ScriptableEntity
| Constructor and Description |
|---|
ScriptableEntityLiving(net.minecraft.src.EntityLiving entity,
net.minecraft.src.customstuff2.engine.Mod mod,
org.mozilla.javascript.ScriptableObject scope) |
| Modifier and Type | Method and Description |
|---|---|
void |
attack(int damage)
Damages the entity
|
boolean |
colorSheep(int color)
Colors a sheep.
|
int |
getHealth() |
int |
getLookingSide() |
int |
getMaxHealth() |
boolean |
growSheepWool()
Grows the wool of a sheep
|
void |
setHealth(int health)
Sets the living's health
|
addVelocity, addVelocityToLookingDirection, dropItem, extinguish, getName, getPosX, getPosY, getPosZ, move, move, sePosition, setAir, setFire, setPosition, setPosX, setPosY, setPosZ, setVelocity, setVelocityToLookingDirection, shearpublic ScriptableEntityLiving(net.minecraft.src.EntityLiving entity,
net.minecraft.src.customstuff2.engine.Mod mod,
org.mozilla.javascript.ScriptableObject scope)
public int getMaxHealth()
public void setHealth(int health)
health - public void attack(int damage)
damage - The damage to add to the entitypublic int getHealth()
public int getLookingSide()
public boolean colorSheep(int color)
color - The metadata of the dye you want its color. So if you want to color the sheep red you have to set this to 1.public boolean growSheepWool()