|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.entity.Entity
net.minecraft.entity.EntityLiving
net.minecraft.entity.EntityCreature
net.minecraft.entity.EntityAgeable
net.minecraft.entity.passive.EntityAnimal
net.minecraft.entity.passive.EntitySheep
public class EntitySheep
Field Summary | |
---|---|
static float[][] |
fleeceColorTable
Holds the RGB table of the sheep colors - in OpenGL glColor3f values - used to render the sheep colored fleece. |
Fields inherited from class net.minecraft.entity.passive.EntityAnimal |
---|
inLove |
Constructor Summary | |
---|---|
EntitySheep(World par1World)
|
Method Summary | |
---|---|
EntityAgeable |
createChild(EntityAgeable par1EntityAgeable)
|
void |
eatGrassBonus()
This function applies the benefits of growing back wool and faster growing up to the acting entity. |
float |
func_70890_k(float par1)
|
float |
func_70894_j(float par1)
|
EntitySheep |
func_90015_b(EntityAgeable par1EntityAgeable)
|
int |
getFleeceColor()
|
int |
getMaxHealth()
|
static int |
getRandomFleeceColor(Random par0Random)
This method is called when a sheep spawns in the world to select the color of sheep fleece. |
boolean |
getSheared()
returns true if a sheeps wool has been sheared |
void |
handleHealthUpdate(byte par1)
|
void |
initCreature()
Initialize this creature. |
boolean |
interact(EntityPlayer par1EntityPlayer)
Called when a player interacts with a mob. |
boolean |
isShearable(ItemStack item,
World world,
int X,
int Y,
int Z)
Checks if the object is currently shearable Example: Sheep return false when they have no wool |
void |
onLivingUpdate()
Called frequently so the entity can update its state every tick as required. |
ArrayList<ItemStack> |
onSheared(ItemStack item,
World world,
int X,
int Y,
int Z,
int fortune)
Performs the shear function on this object. |
void |
readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to read subclass entity data from NBT. |
void |
setFleeceColor(int par1)
|
void |
setSheared(boolean par1)
make a sheep sheared if set to true |
void |
writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to write subclass entity data to NBT. |
Methods inherited from class net.minecraft.entity.passive.EntityAnimal |
---|
attackEntityFrom, canMateWith, getBlockPathWeight, getCanSpawnHere, getTalkInterval, isBreedingItem, isInLove, resetInLove |
Methods inherited from class net.minecraft.entity.EntityAgeable |
---|
getGrowingAge, isChild, setGrowingAge |
Methods inherited from class net.minecraft.entity.EntityCreature |
---|
getEntityToAttack, getSpeedModifier, hasPath, setPathToEntity, setTarget |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final float[][] fleeceColorTable
Constructor Detail |
---|
public EntitySheep(World par1World)
Method Detail |
---|
public void onLivingUpdate()
onLivingUpdate
in class EntityAnimal
public int getMaxHealth()
getMaxHealth
in class EntityLiving
public void handleHealthUpdate(byte par1)
handleHealthUpdate
in class EntityLiving
public boolean interact(EntityPlayer par1EntityPlayer)
interact
in class EntityAnimal
public float func_70894_j(float par1)
public float func_70890_k(float par1)
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
writeEntityToNBT
in class EntityAnimal
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
readEntityFromNBT
in class EntityAnimal
public int getFleeceColor()
public void setFleeceColor(int par1)
public boolean getSheared()
public void setSheared(boolean par1)
public static int getRandomFleeceColor(Random par0Random)
public EntitySheep func_90015_b(EntityAgeable par1EntityAgeable)
public void eatGrassBonus()
eatGrassBonus
in class EntityLiving
public void initCreature()
initCreature
in class EntityLiving
public EntityAgeable createChild(EntityAgeable par1EntityAgeable)
createChild
in class EntityAgeable
public boolean isShearable(ItemStack item, World world, int X, int Y, int Z)
IShearable
isShearable
in interface IShearable
item
- The itemstack that is being used, Possible to be nullworld
- The current worldX
- The X PositionY
- The Y PositionZ
- The Z Position
public ArrayList<ItemStack> onSheared(ItemStack item, World world, int X, int Y, int Z, int fortune)
IShearable
onSheared
in interface IShearable
item
- The itemstack that is being used, Possible to be nullworld
- The current worldX
- The X PositionY
- The Y PositionZ
- The Z Positionfortune
- The fortune level of the shears being used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |