Package net.minecraft.src
Class EntityAnimal
- All Implemented Interfaces:
IAnimals
- Direct Known Subclasses:
EntityChicken,EntityPig,EntitySheep,EntityTameable,KickingAnimal
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected intThis is representation of a counter for reproduction progress.static final intintprotected static final UUIDprotected static final AttributeModifierstatic final intintintprotected static final intintprotected static final intstatic final intstatic final intstatic final intprotected static final UUIDprotected static final AttributeModifierprotected intprotected static final intFields inherited from class net.minecraft.src.EntityCreature
entityToAttack, field_110179_h, field_110181_i, fleeingTick, hasAttacked, homeDimension, maximumHomeDistance, pathToEntity, possessionTimerFields inherited from class net.minecraft.src.EntityLiving
defaultPitch, equipmentDropChances, experienceValue, HAS_ATTACK_TARGET_DATA_WATCHER_ID, livingSoundTime, numTicksToChaseTarget, targetTasks, tasksFields inherited from class net.minecraft.src.EntityLivingBase
arrowHitTimer, attackedAtYaw, attackingPlayer, attackTime, cameraPitch, dead, deathTime, entityAge, entityLivingToAttack, field_110154_aX, field_70741_aB, field_70763_ax, field_70764_aw, field_70768_au, field_70769_ao, field_70770_ap, hurtTime, isJumping, isLivingDead, isSwingInProgress, jumpMovementFactor, landMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, onChoppingBlockMaxCountdown, prevCameraPitch, prevHealth, prevLimbSwingAmount, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, recentlyOnChoppingBlockCountdown, renderYawOffset, revengeCountdown, revengeTimer, rotationYawHead, scoreValue, swingProgress, swingProgressIntFields inherited from class net.minecraft.src.Entity
addedToChunk, boundingBox, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastGroundPosX, lastGroundPosY, lastGroundPosZ, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, nextBlockCheckDistance, 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, yOffset, ySize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToHungerCount(int iAddedHunger) protected voidattackEntity(Entity par1Entity, float par2) Basic mob attack.booleanattackEntityFrom(DamageSource par1DamageSource, float par2) // +++START EDIT+++ // ---END EDIT--- Called when the entity is attacked.booleanattemptToBeHandFedItem(ItemStack stack) booleanattemptToEatItem(ItemStack stack) booleanbooleanattemptToEatLooseItem(ItemStack stack) protected voidvoidbooleanprotected booleanDetermines if an entity can be despawned, used on idle far away entitiesbooleanbooleancanGrazeOnBlock(int i, int j, int k) booleanbooleanbooleancanMateWith(EntityAnimal par1EntityAnimal) Returns true if the mob is currently able to mate with the specified mob.voidvoidvoidbooleanentityAnimalInteract(EntityPlayer player) protected voidprotected Entity// +++START EDIT+++ // ---END EDIT--- Finds the closest player within 16 blocks to attack, or null if this Entity isn't interested in attacking (Animals, Spiders at day, peaceful PigZombies).voidfloatgetBlockPathWeight(int i, int j, int k) Takes a coordinate in and returns a weight to determine how likely this creature will try to path to the block.booleanChecks if the entity's current position is a valid location to spawn this entity.booleanprotected intgetExperiencePoints(EntityPlayer par1EntityPlayer) Get the experience points the entity currently has.intReturns null if no valid graze block exists at locationintfloatgetGrazeHeadRotation(float fPartialTick) floatfloatfloatgetGrazeHeadVerticalOffset(float fPartialTick) intintintintgetItemFoodValue(ItemStack stack) intprotected floatGets the pitch of living sounds in living entities.intGet number of ticks, at least during which the living entity will be silent.intintbooleanprotected voidgiveBirthAtTargetLocation(EntityAnimal targetMate, double dChildX, double dChildY, double dChildZ) voidhandleHealthUpdate(byte bUpdateType) voidbooleaninteract(EntityPlayer player) Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.booleanisBreedingItem(ItemStack par1ItemStack) Checks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)booleanisEdibleItem(ItemStack stack) booleanbooleanbooleanbooleanbooleanbooleanisInLove()// +++START EDIT+++ Returns if the entity is currently in 'love mode'. // ---END EDIT---booleanbooleanbooleanisReadyToEatLooseItem(ItemStack stack) booleanbooleanbooleanbooleanisTemptingItem(ItemStack stack) booleanbooleanvoidjump()Causes this entity to do an upwards motion (jumping).protected voidvoidvoidvoidonDeath(DamageSource damageSource) Called when the mob's health reaches 0.voidvoidvoidonGrazeBlock(int i, int j, int k) voidvoidCalled frequently so the entity can update its state every tick as required.voidonNearbyAnimalAttacked(EntityAnimal attackedAnimal, EntityLivingBase attackSource) voidonNearbyFireStartAttempt(EntityPlayer player) voidprotected voidonNearbyPlayerStartles(EntityPlayer player) onSpawnWithEgg(EntityLivingData par1EntityLivingData) voidvoidpanicNearbyAnimals(DamageSource damageSource) voidplayGrazeFX(int i, int j, int k, int iBlockID) protected voidprocreate(EntityAnimal targetMate) void(abstract) Protected helper method to read subclass entity data from NBT.voidvoidvoidprotected voidresetMatingStateOfBothParents(EntityAnimal targetMate) voidsetHungerLevel(int iHungerLevel) voidsetInLove(int iInLove) voidsetRevengeTarget(EntityLivingBase targetEntity) voidsetWearingBreedingHarness(boolean bWearingHarness) booleanbooleanprotected voidprotected voidmain AI tick function, replaces updateEntityActionStateprotected voidvoidprotected voidvoidvoid(abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class net.minecraft.src.EntityAgeable
addGrowth, adjustSizeForAge, createChild, entityAgeableInteract, getGrowingAge, isChild, setGrowingAge, setScale, setScaleForAge, setSizeMethods inherited from class net.minecraft.src.EntityCreature
attemptToPossessCreaturesAroundBlock, attemptToPossessNearbyCreature, canSoulAffectEntity, detachHome, entityCreatureEntityInit, func_110159_bB, func_110173_bK, func_110174_bM, func_110176_b, func_142017_o, getCanCreatureBePossessedFromDistance, getCanCreatureTypeBePossessed, getEntityToAttack, getHomePosition, getInitialPossessionChance, getPossessionLevel, getTimeToFullPossession, handlePossession, hasHome, hasPath, initiatePossession, isFullyPossessed, isMovementCeased, isPossessed, onFullPossession, onInitialPossession, playFullPossessionSound, setHomeArea, setHomeArea, setPathToEntity, setPossessionLevel, setTarget, shouldContinueAttacking, transmitAttackTargetToClients, updateWanderPathMethods inherited from class net.minecraft.src.EntityLiving
addRandomArmor, allowLeashing, applyEntityAttributes, attackEntityAsMob, attractsLightning, canAttackClass, canBeSteered, canEntityCenterOfMassBeSeen, canPickUpLoot, clearLeashed, despawnEntity, doesEntityApplyToSpawnCap, dropEquipment, dropFewItems, eatGrassBonus, enchantEquipment, entityLivingAddRandomArmor, entityLivingDropFewItems, entityLivingOnLivingUpdate, entityLivingOnSpawnWithEgg, entityLivingSetAttackTarget, entityLivingUpdateAITasks, faceEntity, func_110146_f, func_110163_bv, func_130225_q, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCurrentArmorBTW, getCurrentItemOrArmor, getCustomNameTag, getDropItemId, getEntityName, getEntitySenses, getHeldItem, getJumpHelper, getLastActiveItems, getLeashed, getLeashedToEntity, getLivingSound, getLookHelper, getMaxSafePointTries, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getRenderSizeModifier, getVerticalFaceSpeed, hasAttackTarget, hasCustomNameTag, installationIntegrityTest, interactFirst, isAIEnabled, isInsideSpawnAreaAroundChunk, isInsideSpawnAreaAroundOriginalSpawn, isInsideSpawnAreaAroundPlayer, isNoDespawnRequired, meleeAttack, minDistFromPlayerForDespawn, onClimbWhileSwimming, onEntityUpdate, onUpdate, outOfUpdateRangeUpdate, playLivingSound, preInitCreature, setAIMoveSpeed, setAlwaysRenderNameTag, setAttackTarget, setCanPickUpLoot, setCurrentItemOrArmor, setCustomNameTag, setEquipmentDropChance, setLeashedToEntity, setMoveForward, setPersistent, spawnerInitCreature, spawnExplosionParticle, updateAITasksMethods inherited from class net.minecraft.src.EntityLivingBase
addPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, canJump, canJumpMidWater, canSwim, checkForHeadDrop, checkForRareDrop, clearActivePotions, collideWithEntity, collideWithNearbyEntities, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, dropHead, dropRareDrop, entityLivingBaseFall, entityLivingOnDeath, fall, func_110142_aN, func_142015_aE, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAmbientLootingModifier, getArrowCountInEntity, getAttributeMap, getCreatureAttribute, getDeathSound, getDefaultSlipperinessOnGround, getEntityAttribute, getEyeHeight, getHealth, getHealthAndExhaustionModifier, getHurtSound, getItemIcon, getLadderVerticalMovementModifier, getLandMovementModifier, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getMeleeAttackStrength, getPosition, getRNG, getRotationYawHead, getSlipperinessRelativeToBlock, getSoundVolume, getSpeedModifier, getSwimmingHorizontalModifier, getSwingProgress, getTeam, getTotalArmorValue, heal, isClientWorld, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, isWeighted, isWeightedByHeadCrab, kill, knockBack, knockbackMagnitude, mouseOverCustomRayTrace, moveEntityWithHeading, onChangedPotionEffect, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onNewPotionEffect, performHurtAnimation, rayTrace, recoverAirSupply, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setPositionAndUpdate, setRotationYawHead, setSprinting, swingItem, updateArmSwingProgress, updateFallState, updatePotionEffects, updateRiddenMethods inherited from class net.minecraft.src.Entity
addComponent, addEntityCrashInfo, addToPlayerScore, addVelocity, appliesConstantForceWhenRidingBoat, applyEntityCollision, canAttackWithItem, canCollideWithEntity, canEntityTriggerTripwire, canRenderOnFire, canTriggerWalking, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doBlockCollisions, doesEntityApplyToSquidPossessionCap, doesEntityNotTriggerPressurePlate, doesNotDismountInWater, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, flagAllWatchedObjectsDirty, flingAwayFromEntity, getAir, getAnimalKickMovementMultiplier, getBlockExplosionResistance, getBoundingBox, getBrightness, getBrightnessForRender, getCanBeHeadCrabbed, getCollisionBorderSize, getCollisionBox, getComponent, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityString, getFlag, getHeadCrabSharedAttackTarget, getMaxInPortalTime, getMountedYOffset, getParts, getPortalCooldown, getShadowSize, getTeleportDirection, getTranslatedEntityName, getUniqueID, getVisualBoundingBox, getXZDistanceSqToEntity, getYOffset, handleLavaMovement, handleWaterMovement, hasComponent, hashCode, hasHeadCrabbedSquid, hitByEntity, initComponents, isAffectedByMovementModifiers, isBeingRainedOn, isBurning, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInsideOpaqueBlock, isEntityInsideSuffocatingBlock, isEntityInsideSuffocatingBlock, isEntityInvulnerable, isImmuneToFire, isImmuneToHeadCrabDamage, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isItemEntity, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSneaking, isSprinting, isUsingSpecialKey, isValidOngoingAttackTargetForSquid, isValidZombieSecondaryTarget, isWet, mountEntity, mountEntityRemote, moveEntity, moveFlying, movementModifierWhenRidingBoat, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onBlockDispenserConsume, onChunkLoad, onCollideWithPlayer, onKickedByAnimal, onKillEntity, onPossessedRidingEntityDeath, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, setDead, setEating, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSneaking, setVelocity, setWorld, shouldExplodeBlock, shouldSetPosAfterLoading, shouldSetPositionOnLoad, toString, travelToDimension, tryToSetFireToBlocksInContact, updateCloak, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Field Details
-
STARVING_SPEED_MODIFIER_UUID
-
FAMISHED_SPEED_MODIFIER_UUID
-
starvingSpeedModifier
-
famishedSpeedModifier
-
breeding
protected int breedingThis is representation of a counter for reproduction progress. (Note that this is different from the inLove which represent being in Love-Mode) -
uncomfortableTick
protected int uncomfortableTick -
HUNGER_LEVEL_DATA_WATCHER_ID
protected static final int HUNGER_LEVEL_DATA_WATCHER_ID- See Also:
-
IN_LOVE_DATA_WATCHER_ID
protected static final int IN_LOVE_DATA_WATCHER_ID- See Also:
-
WEARING_BREEDING_HARNESS_DATA_WATCHER_ID
protected static final int WEARING_BREEDING_HARNESS_DATA_WATCHER_ID- See Also:
-
FULL_HUNGER_COUNT
public static final int FULL_HUNGER_COUNT- See Also:
-
LEVEL_UP_HUNGER_COUNT
public static final int LEVEL_UP_HUNGER_COUNT- See Also:
-
MAX_HEALING_COUNT
public static final int MAX_HEALING_COUNT- See Also:
-
hungerCountdown
public int hungerCountdown -
healingCountdown
public int healingCountdown -
BASE_GRAZE_FOOD_VALUE
public static final int BASE_GRAZE_FOOD_VALUE- See Also:
-
m_iDelayBetweenEatLoose
public static final int m_iDelayBetweenEatLoose- See Also:
-
DELAY_BETWEEN_EAT_LOOSE_VARIANCE
public static final int DELAY_BETWEEN_EAT_LOOSE_VARIANCE- See Also:
-
eatLooseCooldownCounter
public int eatLooseCooldownCounter -
grazeProgressCounter
public int grazeProgressCounter
-
-
Constructor Details
-
EntityAnimal
-
-
Method Details
-
updateAITick
protected void updateAITick()main AI tick function, replaces updateEntityActionState- Overrides:
updateAITickin classEntityLivingBase
-
onLivingUpdate
public void onLivingUpdate()Called frequently so the entity can update its state every tick as required. For example, zombies and skeletons use this to react to sunlight and start to burn.- Overrides:
onLivingUpdatein classEntityAgeable
-
attackEntity
Basic mob attack. Default to touch of death in EntityCreature. Overridden by each mob to define their attack.- Overrides:
attackEntityin classEntityCreature
-
attackEntityFrom
// +++START EDIT+++ // ---END EDIT--- Called when the entity is attacked.- Overrides:
attackEntityFromin classEntityLivingBase
-
findPlayerToAttack
// +++START EDIT+++ // ---END EDIT--- Finds the closest player within 16 blocks to attack, or null if this Entity isn't interested in attacking (Animals, Spiders at day, peaceful PigZombies).- Overrides:
findPlayerToAttackin classEntityCreature
-
getCanSpawnHere
public boolean getCanSpawnHere()Checks if the entity's current position is a valid location to spawn this entity.- Overrides:
getCanSpawnHerein classEntityCreature
-
getTalkInterval
public int getTalkInterval()Get number of ticks, at least during which the living entity will be silent.- Overrides:
getTalkIntervalin classEntityLiving
-
canDespawn
protected boolean canDespawn()Determines if an entity can be despawned, used on idle far away entities- Overrides:
canDespawnin classEntityLiving
-
getExperiencePoints
Get the experience points the entity currently has.- Overrides:
getExperiencePointsin classEntityLiving
-
isBreedingItem
Checks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type) -
isInLove
public boolean isInLove()// +++START EDIT+++ Returns if the entity is currently in 'love mode'. // ---END EDIT--- -
resetInLove
public void resetInLove() -
canMateWith
Returns true if the mob is currently able to mate with the specified mob. -
interact
Description copied from class:EntityAgeableCalled when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.- Overrides:
interactin classEntityAgeable
-
entityInit
protected void entityInit()- Overrides:
entityInitin classEntityAgeable
-
writeEntityToNBT
Description copied from class:EntityAgeable(abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBTin classEntityAgeable
-
readEntityFromNBT
Description copied from class:EntityAgeable(abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBTin classEntityAgeable
-
modSpecificOnLivingUpdate
protected void modSpecificOnLivingUpdate()- Overrides:
modSpecificOnLivingUpdatein classEntityCreature
-
handleHealthUpdate
@Environment(CLIENT) public void handleHealthUpdate(byte bUpdateType) - Overrides:
handleHealthUpdatein classEntityLivingBase
-
jump
public void jump()Description copied from class:EntityLivingBaseCauses this entity to do an upwards motion (jumping).- Overrides:
jumpin classEntityLivingBase
-
onDeath
Description copied from class:EntityLivingBaseCalled when the mob's health reaches 0.- Overrides:
onDeathin classEntityCreature
-
updateEntityActionState
protected void updateEntityActionState()- Overrides:
updateEntityActionStatein classEntityCreature
-
checkForScrollDrop
public void checkForScrollDrop()- Overrides:
checkForScrollDropin classEntityLivingBase
-
func_110196_bT
public void func_110196_bT() -
getSoundPitch
protected float getSoundPitch()Description copied from class:EntityLivingBaseGets the pitch of living sounds in living entities.- Overrides:
getSoundPitchin classEntityLivingBase
-
setRevengeTarget
- Overrides:
setRevengeTargetin classEntityLivingBase
-
getBlockPathWeight
public float getBlockPathWeight(int i, int j, int k) Description copied from class:EntityCreatureTakes a coordinate in and returns a weight to determine how likely this creature will try to path to the block. Args: x, y, z- Overrides:
getBlockPathWeightin classEntityCreature
-
isSecondaryTargetForSquid
public boolean isSecondaryTargetForSquid()- Overrides:
isSecondaryTargetForSquidin classEntity
-
onFlungBySquidTentacle
- Overrides:
onFlungBySquidTentaclein classEntityLiving
-
onHeadCrabbedBySquid
- Overrides:
onHeadCrabbedBySquidin classEntityLiving
-
attemptToPossessNearbyCreatureOnDeath
protected void attemptToPossessNearbyCreatureOnDeath()- Overrides:
attemptToPossessNearbyCreatureOnDeathin classEntityCreature
-
canChildGrow
public boolean canChildGrow()- Overrides:
canChildGrowin classEntityAgeable
-
canLoveJuiceRegenerate
public boolean canLoveJuiceRegenerate()- Overrides:
canLoveJuiceRegeneratein classEntityAgeable
-
getTicksForChildToGrow
public int getTicksForChildToGrow()- Overrides:
getTicksForChildToGrowin classEntityAgeable
-
onSpawnWithEgg
- Overrides:
onSpawnWithEggin classEntityLiving
-
getInLove
public int getInLove() -
setInLove
public void setInLove(int iInLove) -
getWearingBreedingHarness
public boolean getWearingBreedingHarness() -
setWearingBreedingHarness
public void setWearingBreedingHarness(boolean bWearingHarness) -
checkForIntersectingBreedingHarnesses
public void checkForIntersectingBreedingHarnesses() -
panicNearbyAnimals
-
onNearbyAnimalAttacked
-
onNearbyFireStartAttempt
-
onNearbyPlayerBlockAddOrRemove
-
onNearbyPlayerStartles
-
procreate
-
getNestSize
public int getNestSize() -
giveBirthAtTargetLocation
protected void giveBirthAtTargetLocation(EntityAnimal targetMate, double dChildX, double dChildY, double dChildZ) -
resetMatingStateOfBothParents
-
spawnBirthHeartParticles
protected void spawnBirthHeartParticles() -
initHungerWithVariance
public void initHungerWithVariance() -
getHungerLevel
public int getHungerLevel() -
setHungerLevel
public void setHungerLevel(int iHungerLevel) -
isFullyFed
public boolean isFullyFed() -
isFamished
public boolean isFamished() -
isStarving
public boolean isStarving() -
onBecomeFamished
public void onBecomeFamished() -
onBecomeStarving
public void onBecomeStarving() -
onStarvingCountExpired
public void onStarvingCountExpired() -
isSubjectToHunger
public boolean isSubjectToHunger() -
updateHungerState
public void updateHungerState() -
resetHungerCountdown
public void resetHungerCountdown() -
addToHungerCount
public void addToHungerCount(int iAddedHunger) -
getGrazeHungerGain
public int getGrazeHungerGain() -
getFoodValueMultiplier
public int getFoodValueMultiplier() -
onGrazeBlock
public void onGrazeBlock(int i, int j, int k) -
shouldNotifyBlockOnGraze
public boolean shouldNotifyBlockOnGraze() -
playGrazeFX
public void playGrazeFX(int i, int j, int k, int iBlockID) -
getGrazeDuration
public int getGrazeDuration() -
isHungryEnoughToGraze
public boolean isHungryEnoughToGraze() -
isHungryEnoughToForceMoveToGraze
public boolean isHungryEnoughToForceMoveToGraze() -
isTooHungryToGrow
public boolean isTooHungryToGrow() -
isTooHungryToHeal
public boolean isTooHungryToHeal() -
canGrazeMycelium
public boolean canGrazeMycelium() -
getDisruptsEarthOnGraze
public boolean getDisruptsEarthOnGraze() -
canGrazeOnRoughVegetation
public boolean canGrazeOnRoughVegetation() -
getGrazeBlockForPos
Returns null if no valid graze block exists at location -
shouldStayInPlaceToGraze
public boolean shouldStayInPlaceToGraze() -
canGrazeOnBlock
public boolean canGrazeOnBlock(int i, int j, int k) -
getHungerSpeedModifier
-
updateHungerSpeedModifier
protected void updateHungerSpeedModifier() -
isTemptingItem
- Overrides:
isTemptingItemin classEntityAgeable
-
isEdibleItem
-
isHungryEnoughToEatLooseFood
public boolean isHungryEnoughToEatLooseFood() -
isReadyToEatBreedingItem
public boolean isReadyToEatBreedingItem() -
getItemFoodValue
-
attemptToEatItemForBreeding
-
onEatBreedingItem
public void onEatBreedingItem() -
attemptToEatItem
-
attemptToBeHandFedItem
-
attemptToEatLooseItem
-
isReadyToEatLooseFood
public boolean isReadyToEatLooseFood() -
isReadyToEatLooseItem
-
checkForLooseFood
public void checkForLooseFood() -
entityAnimalInteract
-
getTicksToRegenerateLoveJuice
public int getTicksToRegenerateLoveJuice() -
getGrazeHeadVerticalOffset
public float getGrazeHeadVerticalOffset(float fPartialTick) -
getGrazeHeadRotation
public float getGrazeHeadRotation(float fPartialTick) -
getGrazeHeadRotationMagnitudeDivisor
public float getGrazeHeadRotationMagnitudeDivisor() -
getGrazeHeadRotationRateMultiplier
public float getGrazeHeadRotationRateMultiplier() -
updateHealing
public void updateHealing() -
resetHealingCountdown
public void resetHealingCountdown() -
breakLeash
public void breakLeash()
-