|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.src.Entity
net.minecraft.src.EntityLiving
net.minecraft.src.EntityCreature
net.minecraft.src.EntityAgeable
net.minecraft.src.EntityAnimal
net.minecraft.src.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.src.EntityAnimal |
---|
inLove |
Fields inherited from class net.minecraft.src.EntityLiving |
---|
arrowHitTempCounter, arrowHitTimer, attackedAtYaw, attackTime, cameraPitch, carryoverDamage, deathTime, field_70730_aX, field_70731_aW, field_70754_ba, field_70769_ao, field_70770_ap, hurtTime, isJumping, jumpMovementFactor, landMovementFactor, legYaw, maxHurtResistantTime, maxHurtTime, prevCameraPitch, prevHealth, prevLegYaw, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, renderYawOffset, rotationYawHead, swingProgress, tasks |
Constructor Summary | |
---|---|
EntitySheep(World par1World)
|
Method Summary | |
---|---|
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)
|
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)
|
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 |
EntityAnimal |
spawnBabyAnimal(EntityAnimal par1EntityAnimal)
This function is used when two same-species animals in 'love mode' breed to generate the new baby animal. |
void |
writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to write subclass entity data to NBT. |
Methods inherited from class net.minecraft.src.EntityAnimal |
---|
attackEntityFrom, canMateWith, getBlockPathWeight, getCanSpawnHere, getTalkInterval, isInLove, isWheat, resetInLove |
Methods inherited from class net.minecraft.src.EntityAgeable |
---|
getGrowingAge, isChild, setGrowingAge |
Methods inherited from class net.minecraft.src.EntityCreature |
---|
getEntityToAttack, 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 float func_70894_j(float par1)
public float func_70890_k(float par1)
public boolean interact(EntityPlayer par1EntityPlayer)
interact
in class EntityAnimal
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 EntityAnimal spawnBabyAnimal(EntityAnimal par1EntityAnimal)
spawnBabyAnimal
in class EntityAnimal
public void eatGrassBonus()
eatGrassBonus
in class EntityLiving
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 |