public class EntitySheep extends EntityAnimal
Modifier and Type | Field and Description |
---|---|
static float[][] |
fleeceColorTable |
hasAttacked, playerToAttack
attackedAtYaw, attackTime, cameraPitch, deathTime, defaultPitch, entityAge, field_703_S, field_704_R, field_705_Q, field_9325_U, field_9326_T, field_9328_R, field_9345_F, field_9346_af, field_9349_D, field_9351_C, field_9353_B, field_9355_A, field_9358_y, field_9359_x, field_9360_w, field_9361_v, field_9362_u, field_9363_r, field_9365_p, health, heartsHalvesLife, hurtTime, isJumping, isMultiplayerEntity, maxHurtTime, moveForward, moveSpeed, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, numTicksToChaseTarget, prevHealth, prevRenderYawOffset, prevSwingProgress, randomYawVelocity, renderYawOffset, scoreValue, swingProgress, texture, unused_flag
addedToChunk, air, beenAttacked, boundingBox, chunkCoordX, chunkCoordY, chunkCoordZ, cloakUrl, dataWatcher, distanceWalkedModified, entityBrightness, entityCollisionReduction, entityId, fallDistance, field_9293_aM, fire, fireResistance, heartsLife, height, ignoreFrustumCheck, inWater, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, maxAir, motionX, motionY, motionZ, noClip, onGround, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, skinUrl, stepHeight, ticksExisted, width, worldObj, yOffset, ySize
Constructor and Description |
---|
EntitySheep(World world) |
Modifier and Type | Method and Description |
---|---|
boolean |
attackEntityFrom(Entity entity,
int i) |
protected void |
dropFewItems() |
protected void |
entityInit() |
protected java.lang.String |
getDeathSound() |
protected int |
getDropItemId() |
int |
getFleeceColor() |
protected java.lang.String |
getHurtSound() |
protected java.lang.String |
getLivingSound() |
static int |
getRandomFleeceColor(java.util.Random random) |
boolean |
getSheared() |
boolean |
interact(EntityPlayer entityplayer) |
void |
readEntityFromNBT(NBTTagCompound nbttagcompound) |
void |
setFleeceColor(int i) |
void |
setSheared(boolean flag) |
void |
writeEntityToNBT(NBTTagCompound nbttagcompound) |
getBlockPathWeight, getCanSpawnHere, getTalkInterval
attackBlockedEntity, attackEntity, findPlayerToAttack, func_31026_E, getTarget, hasPath, isMovementCeased, setPathToEntity, setTarget, updatePlayerActionState
canBeCollidedWith, canBePushed, canBreatheUnderwater, canDespawn, canEntityBeSeen, damageEntity, faceEntity, fall, func_25026_x, func_27021_X, getCurrentTarget, getEntityTexture, getEyeHeight, getHeldItem, getItemIcon, getLook, getLookVec, getMaxSpawnedInChunk, getPosition, getSoundVolume, getSwingProgress, handleHealthUpdate, hasCurrentTarget, heal, isEntityAlive, isMovementBlocked, isOnLadder, isPlayerSleeping, jump, kill, knockBack, moveEntityWithHeading, onDeath, onEntityDeath, onEntityUpdate, onLivingUpdate, onUpdate, performHurtAnimation, playLivingSound, rayTrace, setPositionAndRotation2, setSize, spawnExplosionParticle, updateRidden
addEntityID, addToPlayerScore, addVelocity, applyEntityCollision, canTriggerWalking, dealFireDamage, dropItem, dropItemWithOffset, entityDropItem, equals, func_346_d, getBoundingBox, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityBrightness, getEntityFlag, getEntityString, getMountedYOffset, getShadowSize, getYOffset, handleLavaMovement, handleWaterMovement, hashCode, isBurning, isEntityInsideOpaqueBlock, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInWater, isOffsetPositionInLiquid, isRiding, isSneaking, isWet, mountEntity, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onCollideWithPlayer, onKillEntity, onStruckByLightning, outfitWithItem, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setBeenAttacked, setEntityDead, setEntityFlag, setInPortal, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setVelocity, setWorld, updateCloak, updateFallState, updateRiderPosition, writeToNBT
public EntitySheep(World world)
protected void entityInit()
entityInit
in class EntityLiving
public boolean attackEntityFrom(Entity entity, int i)
attackEntityFrom
in class EntityLiving
protected void dropFewItems()
dropFewItems
in class EntityLiving
protected int getDropItemId()
getDropItemId
in class EntityLiving
public boolean interact(EntityPlayer entityplayer)
public void writeEntityToNBT(NBTTagCompound nbttagcompound)
writeEntityToNBT
in class EntityAnimal
public void readEntityFromNBT(NBTTagCompound nbttagcompound)
readEntityFromNBT
in class EntityAnimal
protected java.lang.String getLivingSound()
getLivingSound
in class EntityLiving
protected java.lang.String getHurtSound()
getHurtSound
in class EntityLiving
protected java.lang.String getDeathSound()
getDeathSound
in class EntityLiving
public int getFleeceColor()
public void setFleeceColor(int i)
public boolean getSheared()
public void setSheared(boolean flag)
public static int getRandomFleeceColor(java.util.Random random)