public class EntitySheep extends EntityAnimal implements IShearable
EntityLiving.SpawnPlacementTypefield_175506_blfield_175502_b, field_175503_c, field_175504_afield_110179_h, field_110181_iequipmentDropChances, experienceValue, jumpHelper, livingSoundTime, moveHelper, navigator, targetTasks, tasksarrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, entityAge, field_110154_aX, field_70741_aB, field_70763_ax, field_70764_aw, field_70768_au, field_70769_ao, field_70770_ap, hurtTime, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, prevCameraPitch, prevLimbSwingAmount, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, swingProgressIntaddedToChunk, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, fireResistance, firstUpdate, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj| Constructor and Description |
|---|
EntitySheep(World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyEntityAttributes() |
EntityAgeable |
createChild(EntityAgeable ageable) |
protected void |
dropFewItems(boolean p_70628_1_,
int p_70628_2_) |
void |
eatGrassBonus() |
protected void |
entityInit() |
static EnumDyeColor |
func_175510_a(java.util.Random p_175510_0_) |
static float[] |
func_175513_a(EnumDyeColor p_175513_0_) |
IEntityLivingData |
func_180482_a(DifficultyInstance p_180482_1_,
IEntityLivingData p_180482_2_) |
EntitySheep |
func_180491_b(EntityAgeable p_180491_1_) |
protected java.lang.String |
getDeathSound() |
protected Item |
getDropItem() |
float |
getEyeHeight() |
EnumDyeColor |
getFleeceColor() |
float |
getHeadRotationAngleX(float p_70890_1_) |
float |
getHeadRotationPointY(float p_70894_1_) |
protected java.lang.String |
getHurtSound() |
protected java.lang.String |
getLivingSound() |
boolean |
getSheared() |
void |
handleHealthUpdate(byte p_70103_1_) |
boolean |
interact(EntityPlayer player) |
boolean |
isShearable(ItemStack item,
IBlockAccess world,
BlockPos pos)
Checks if the object is currently shearable
Example: Sheep return false when they have no wool
|
void |
onLivingUpdate() |
java.util.List<ItemStack> |
onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune)
Performs the shear function on this object.
|
protected void |
playStepSound(BlockPos p_180429_1_,
Block p_180429_2_) |
void |
readEntityFromNBT(NBTTagCompound tagCompund) |
void |
setFleeceColor(EnumDyeColor color) |
void |
setSheared(boolean p_70893_1_) |
protected void |
updateAITasks() |
void |
writeEntityToNBT(NBTTagCompound tagCompound) |
attackEntityFrom, canDespawn, canMateWith, func_146083_cb, func_175505_a, func_180484_a, getCanSpawnHere, getExperiencePoints, getTalkInterval, isBreedingItem, isInLove, resetInLove, setInLoveaddGrowth, func_175500_n, func_175501_a, getGrowingAge, isChild, setGrowingAge, setScale, setScaleForAge, setSizedetachHome, func_142017_o, func_175449_a, func_180485_d, func_180486_cf, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, updateLeashedStateallowLeashing, canAttackClass, canBeSteered, canPickUpLoot, clearLeashed, despawnEntity, dropEquipment, enablePersistence, faceEntity, func_110146_f, func_175445_a, func_175447_b, func_175448_a, func_180481_a, func_180483_b, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCurrentArmor, getEntitySenses, getEquipmentInSlot, getHeldItem, getInventory, getJumpHelper, getLeashed, getLeashedToEntity, getLookHelper, getMaxFallHeight, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getRenderSizeModifier, getVerticalFaceSpeed, handleLavaMovement, interactFirst, isNoDespawnRequired, isServerWorld, onEntityUpdate, onUpdate, playLivingSound, replaceItemInInventory, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setCurrentItemOrArmor, setEquipmentDropChance, setLeashedToEntity, setMoveForward, setNoAI, spawnExplosionParticle, updateEntityActionStateaddPotionEffect, addRandomArmor, applyArmorCalculations, applyPotionDamageCalculations, attackEntityAsMob, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, fall, func_146066_aG, func_152111_bt, func_152112_bu, func_175133_bi, func_175134_bD, func_175135_B, func_175136_bO, func_180426_a, func_180433_a, func_180466_bG, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttributeMap, getCombatTracker, getCreatureAttribute, getEntityAttribute, getFallSoundString, getHealth, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTeam, getTotalArmorValue, heal, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, jump, kill, knockBack, mountEntity, moveEntityWithHeading, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onKillCommand, onNewPotionEffect, performHurtAnimation, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, swingItem, updateAITick, updateArmSwingProgress, updatePotionEffects, updateRiddenaddChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, canRiderInteract, canTriggerWalking, canUseCommand, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_145781_i, func_174807_aT, func_174815_a, func_174816_a, func_174817_o, func_174819_aU, func_174823_aP, func_174825_a, func_174827_a, func_174834_g, func_180427_aV, getAir, getAlwaysRenderNameTag, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getCommandSenderEntity, getCustomNameTag, getDataWatcher, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getExtendedProperties, getFlag, getHorizontalFacing, getMaxInPortalTime, getMountedYOffset, getName, getParts, getPersistentID, getPickedResult, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getSplashSound, getSwimSound, getTeleportDirection, getUniqueID, getVectorForRotation, getYOffset, handleWaterMovement, hasCustomName, hashCode, hitByEntity, isBurning, isCreatureType, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isPushedByWater, isRiding, isSilent, isSneaking, isSprinting, isWet, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onKillEntity, onStruckByLightning, playSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, registerExtendedProperties, resetEntityId, resetHeight, sendCommandFeedback, setAir, setAlwaysRenderNameTag, setAngles, setCommandStat, setCustomNameTag, setDead, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setSilent, setSneaking, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, toString, travelToDimension, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptionalpublic EntitySheep(World worldIn)
public static float[] func_175513_a(EnumDyeColor p_175513_0_)
protected void updateAITasks()
updateAITasks in class EntityAnimalpublic void onLivingUpdate()
onLivingUpdate in class EntityAnimalprotected void applyEntityAttributes()
applyEntityAttributes in class EntityLivingprotected void entityInit()
entityInit in class EntityAgeableprotected void dropFewItems(boolean p_70628_1_,
int p_70628_2_)
dropFewItems in class EntityLivingprotected Item getDropItem()
getDropItem in class EntityLivingpublic void handleHealthUpdate(byte p_70103_1_)
handleHealthUpdate in class EntityAnimalpublic boolean interact(EntityPlayer player)
interact in class EntityAnimalpublic float getHeadRotationPointY(float p_70894_1_)
public float getHeadRotationAngleX(float p_70890_1_)
public void writeEntityToNBT(NBTTagCompound tagCompound)
writeEntityToNBT in class EntityAnimalpublic void readEntityFromNBT(NBTTagCompound tagCompund)
readEntityFromNBT in class EntityAnimalprotected java.lang.String getLivingSound()
getLivingSound in class EntityLivingprotected java.lang.String getHurtSound()
getHurtSound in class EntityLivingBaseprotected java.lang.String getDeathSound()
getDeathSound in class EntityLivingBaseprotected void playStepSound(BlockPos p_180429_1_, Block p_180429_2_)
playStepSound in class Entitypublic EnumDyeColor getFleeceColor()
public void setFleeceColor(EnumDyeColor color)
public boolean getSheared()
public void setSheared(boolean p_70893_1_)
public static EnumDyeColor func_175510_a(java.util.Random p_175510_0_)
public EntitySheep func_180491_b(EntityAgeable p_180491_1_)
public void eatGrassBonus()
eatGrassBonus in class EntityLivingpublic IEntityLivingData func_180482_a(DifficultyInstance p_180482_1_, IEntityLivingData p_180482_2_)
func_180482_a in class EntityLivingpublic float getEyeHeight()
getEyeHeight in class Entitypublic EntityAgeable createChild(EntityAgeable ageable)
createChild in class EntityAgeablepublic boolean isShearable(ItemStack item, IBlockAccess world, BlockPos pos)
IShearableisShearable in interface IShearableitem - The itemstack that is being used, Possible to be nullworld - The current worldpos - Block's position in world.public java.util.List<ItemStack> onSheared(ItemStack item, IBlockAccess world, BlockPos pos, int fortune)
IShearableonSheared in interface IShearableitem - The itemstack that is being used, Possible to be nullworld - The current worldpos - If this is a block, the block's position in world.fortune - The fortune level of the shears being used