public class ScriptableEntityLiving extends ScriptableEntity
Constructor and Description |
---|
ScriptableEntityLiving(net.minecraft.entity.EntityLiving entity) |
Modifier and Type | Method and Description |
---|---|
void |
addPotionEffect(java.lang.String type,
int duration,
int amplifier)
Adds a potion effect to the living
|
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, getFallDistance, getName, getPosX, getPosY, getPosZ, getVelocityX, getVelocityY, getVelocityZ, isItem, isLiving, isPlayer, move, move, setAir, setFallDistance, setFire, setMod, setPosition, setPosition, setPosX, setPosY, setPosZ, setVelocity, setVelocityToLookingDirection, setVelocityX, setVelocityY, setVelocityZ, shear
public ScriptableEntityLiving(net.minecraft.entity.EntityLiving entity)
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()
public void addPotionEffect(java.lang.String type, int duration, int amplifier)
type
- The potion typeduration
- The duration in ticks (1/20 second)amplifier
- The amplifier