Package net.minecraft.src
Class EntityWolf
- All Implemented Interfaces:
EntityOwnable,IAnimals
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintprotected static final intintFields inherited from class net.minecraft.src.EntityTameable
aiSitFields inherited from class net.minecraft.src.EntityAnimal
BASE_GRAZE_FOOD_VALUE, breeding, DELAY_BETWEEN_EAT_LOOSE_VARIANCE, eatLooseCooldownCounter, FAMISHED_SPEED_MODIFIER_UUID, famishedSpeedModifier, FULL_HUNGER_COUNT, grazeProgressCounter, healingCountdown, HUNGER_LEVEL_DATA_WATCHER_ID, hungerCountdown, IN_LOVE_DATA_WATCHER_ID, LEVEL_UP_HUNGER_COUNT, m_iDelayBetweenEatLoose, MAX_HEALING_COUNT, STARVING_SPEED_MODIFIER_UUID, starvingSpeedModifier, uncomfortableTick, WEARING_BREEDING_HARNESS_DATA_WATCHER_IDFields 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 TypeMethodDescriptionprotected voidbooleanbooleanattackEntityAsMob(Entity target) booleanattackEntityFrom(DamageSource par1DamageSource, float par2) Called when the entity is attacked.booleanattemptToBeHandFedItem(ItemStack stack) booleanattemptToEatLooseItem(ItemStack stack) booleanprotected booleanDetermines if an entity can be despawned, used on idle far away entitiesbooleancanMateWith(EntityAnimal par1EntityAnimal) Returns true if the mob is currently able to mate with the specified mob.createChild(EntityAgeable par1EntityAgeable) protected voidbooleanfunc_142018_a(EntityLivingBase par1EntityLivingBase, EntityLivingBase par2EntityLivingBase) voidfunc_70918_i(boolean par1) booleanbooleangetCanBeHeadCrabbed(boolean bSquidInWater) booleanintReturn this wolf's collar color.protected StringReturns the sound this mob makes on death.protected intReturns the item ID for the item the mob drops on death.floatfloatgetGrazeHeadRotation(float par1) floatgetGrazeHeadVerticalOffset(float par1) protected StringReturns the sound this mob makes when it is hurt.floatgetInterestedAngle(float par1) intgetItemFoodValue(ItemStack stack) protected StringReturns the sound this mob makes while it's alive.intWill return how many at most can spawn in a chunk at once.intgetMeleeAttackStrength(Entity target) doubleReturns the Y offset from the entity's position for any entity riding this one.floatfloatgetShadingWhileShaking(float par1) Used when calculating the amount of shading to apply while the wolf is shaking.floatgetShakeAngle(float par1, float par2) protected floatReturns the volume for the sounds this mob makes.floatintThe speed it takes to move the entityliving's rotationPitch through the faceEntity method.booleanvoidhandleHealthUpdate(byte bUpdateType) protected 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.booleanReturns true if the newer Entity AI code should be runbooleanisAngry()Determines whether this wolf is angry or not.booleanisBreedingItem(ItemStack stack) 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)booleanbooleanisEdibleItem(ItemStack stack) booleanbooleanbooleanbooleanisReadyToEatLooseItem(ItemStack stack) booleanbooleanbooleanbooleanbooleanbooleanvoidnotifyOfWolfHowl(Entity sourceEntity) booleanonBlockDispenserConsume(BlockDispenserBlock blockDispenser, BlockDispenserTileEntity tileEntity) Called when block dispenser tries to eat this entity, return true if the Dispenser should stop looking for more stuff to consumevoidvoidonKillEntity(EntityLivingBase entityKilled) This method gets called when the entity kills another one.voidCalled frequently so the entity can update its state every tick as required.voidonNearbyAnimalAttacked(EntityAnimal attackedAnimal, EntityLivingBase attackSource) voidprotected voidonNearbyPlayerStartles(EntityPlayer player) voidvoidonUpdate()Called to update the entity's position/logic.protected voidplayStepSound(int par1, int par2, int par3, int par4) Plays step sound at given x, y, z for the entityvoidreadEntityFromNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidvoidsetAngry(boolean par1) Sets whether this wolf is angry or not.voidsetCollarColor(int par1) Set this wolf's collar color.voidsetEngagedInPossessionAttempt(boolean bIsEngaged) voidsetRevengeTarget(EntityLivingBase target) voidsetTamed(boolean par1) spawnBabyAnimal(EntityAgeable parent) protected voidmain AI tick function, replaces updateEntityActionStatevoidvoidwriteEntityToNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class net.minecraft.src.EntityTameable
func_130012_q, func_70907_r, getOwner, getOwnerName, getTeam, isAITryingToSit, isOnSameTeam, isSecondaryTargetForSquid, isSitting, isTamed, playTameEffect, setOwner, setSittingMethods inherited from class net.minecraft.src.EntityAnimal
addToHungerCount, attackEntity, attemptToEatItem, attemptToEatItemForBreeding, attemptToPossessNearbyCreatureOnDeath, breakLeash, canChildGrow, canGrazeMycelium, canGrazeOnBlock, canGrazeOnRoughVegetation, canLoveJuiceRegenerate, checkForIntersectingBreedingHarnesses, checkForLooseFood, checkForScrollDrop, entityAnimalInteract, findPlayerToAttack, func_110196_bT, getBlockPathWeight, getCanSpawnHere, getDisruptsEarthOnGraze, getExperiencePoints, getFoodValueMultiplier, getGrazeBlockForPos, getGrazeDuration, getGrazeHeadRotationMagnitudeDivisor, getGrazeHeadRotationRateMultiplier, getGrazeHungerGain, getHungerLevel, getInLove, getNestSize, getSoundPitch, getTalkInterval, getTicksForChildToGrow, getTicksToRegenerateLoveJuice, getWearingBreedingHarness, giveBirthAtTargetLocation, initHungerWithVariance, isFamished, isFullyFed, isHungryEnoughToForceMoveToGraze, isHungryEnoughToGraze, isInLove, isReadyToEatBreedingItem, isReadyToEatLooseFood, isStarving, isTemptingItem, jump, modSpecificOnLivingUpdate, onBecomeFamished, onBecomeStarving, onDeath, onFlungBySquidTentacle, onGrazeBlock, onHeadCrabbedBySquid, onNearbyFireStartAttempt, onSpawnWithEgg, panicNearbyAnimals, playGrazeFX, procreate, resetHealingCountdown, resetInLove, resetMatingStateOfBothParents, setHungerLevel, setInLove, setWearingBreedingHarness, shouldNotifyBlockOnGraze, shouldStayInPlaceToGraze, spawnBirthHeartParticles, updateEntityActionState, updateHealing, updateHungerSpeedModifierMethods inherited from class net.minecraft.src.EntityAgeable
addGrowth, adjustSizeForAge, 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, getEntityToAttack, getHomePosition, getInitialPossessionChance, getPossessionLevel, getTimeToFullPossession, 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, 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, getEntityName, getEntitySenses, getHeldItem, getJumpHelper, getLastActiveItems, getLeashed, getLeashedToEntity, getLookHelper, getMaxSafePointTries, getMoveHelper, getNavigator, getRenderSizeModifier, hasAttackTarget, hasCustomNameTag, installationIntegrityTest, interactFirst, isInsideSpawnAreaAroundChunk, isInsideSpawnAreaAroundOriginalSpawn, isInsideSpawnAreaAroundPlayer, isNoDespawnRequired, meleeAttack, minDistFromPlayerForDespawn, onClimbWhileSwimming, onEntityUpdate, 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, getDefaultSlipperinessOnGround, getEntityAttribute, getHealth, getHealthAndExhaustionModifier, getItemIcon, getLadderVerticalMovementModifier, getLandMovementModifier, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getPosition, getRNG, getRotationYawHead, getSlipperinessRelativeToBlock, getSpeedModifier, getSwimmingHorizontalModifier, getSwingProgress, getTotalArmorValue, heal, isClientWorld, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, 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, getCollisionBorderSize, getCollisionBox, getComponent, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityString, getFlag, getHeadCrabSharedAttackTarget, getMaxInPortalTime, 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, onChunkLoad, onCollideWithPlayer, onKickedByAnimal, onPossessedRidingEntityDeath, onStruckByLightning, playSound, 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
-
howlingCountdown
public int howlingCountdown -
heardHowlCountdown
public int heardHowlCountdown -
infectionCountdown
public int infectionCountdown -
HUNGER_COUNT_VARIANCE
protected static final int HUNGER_COUNT_VARIANCE- See Also:
-
-
Constructor Details
-
EntityWolf
-
-
Method Details
-
applyEntityAttributes
protected void applyEntityAttributes()- Overrides:
applyEntityAttributesin classEntityLiving
-
isAIEnabled
public boolean isAIEnabled()Returns true if the newer Entity AI code should be run- Overrides:
isAIEnabledin classEntityLiving
-
updateAITick
protected void updateAITick()main AI tick function, replaces updateEntityActionState- Overrides:
updateAITickin classEntityAnimal
-
entityInit
protected void entityInit()- Overrides:
entityInitin classEntityTameable
-
playStepSound
protected void playStepSound(int par1, int par2, int par3, int par4) Plays step sound at given x, y, z for the entity- Overrides:
playStepSoundin classEntity
-
writeEntityToNBT
(abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBTin classEntityTameable
-
readEntityFromNBT
(abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBTin classEntityTameable
-
getHurtSound
Returns the sound this mob makes when it is hurt.- Overrides:
getHurtSoundin classEntityLivingBase
-
getDeathSound
Returns the sound this mob makes on death.- Overrides:
getDeathSoundin classEntityLivingBase
-
getSoundVolume
protected float getSoundVolume()Returns the volume for the sounds this mob makes.- Overrides:
getSoundVolumein 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 classEntityAnimal
-
onUpdate
public void onUpdate()Called to update the entity's position/logic.- Overrides:
onUpdatein classEntityLiving
-
getWolfShaking
public boolean getWolfShaking() -
getShadingWhileShaking
public float getShadingWhileShaking(float par1) Used when calculating the amount of shading to apply while the wolf is shaking. -
getShakeAngle
public float getShakeAngle(float par1, float par2) -
getInterestedAngle
public float getInterestedAngle(float par1) -
getEyeHeight
public float getEyeHeight()- Overrides:
getEyeHeightin classEntityLivingBase
-
getVerticalFaceSpeed
public int getVerticalFaceSpeed()The speed it takes to move the entityliving's rotationPitch through the faceEntity method. This is only currently use in wolves.- Overrides:
getVerticalFaceSpeedin classEntityLiving
-
attackEntityFrom
Called when the entity is attacked.- Overrides:
attackEntityFromin classEntityAnimal
-
setTamed
public void setTamed(boolean par1) - Overrides:
setTamedin classEntityTameable
-
getMaxSpawnedInChunk
public int getMaxSpawnedInChunk()Will return how many at most can spawn in a chunk at once.- Overrides:
getMaxSpawnedInChunkin classEntityLiving
-
isAngry
public boolean isAngry()Determines whether this wolf is angry or not. -
setAngry
public void setAngry(boolean par1) Sets whether this wolf is angry or not. -
getCollarColor
public int getCollarColor()Return this wolf's collar color. -
setCollarColor
public void setCollarColor(int par1) Set this wolf's collar color. -
func_70918_i
public void func_70918_i(boolean par1) -
func_70922_bv
public boolean func_70922_bv() -
func_142018_a
public boolean func_142018_a(EntityLivingBase par1EntityLivingBase, EntityLivingBase par2EntityLivingBase) - Overrides:
func_142018_ain classEntityTameable
-
createChild
- Specified by:
createChildin classEntityAgeable
-
setRevengeTarget
- Overrides:
setRevengeTargetin classEntityAnimal
-
onKillEntity
Description copied from class:EntityThis method gets called when the entity kills another one.- Overrides:
onKillEntityin classEntity
-
canDespawn
protected boolean canDespawn()Description copied from class:EntityAnimalDetermines if an entity can be despawned, used on idle far away entities- Overrides:
canDespawnin classEntityAnimal
-
getLivingSound
Description copied from class:EntityLivingReturns the sound this mob makes while it's alive.- Overrides:
getLivingSoundin classEntityLiving
-
getDropItemId
protected int getDropItemId()Description copied from class:EntityLivingReturns the item ID for the item the mob drops on death.- Overrides:
getDropItemIdin classEntityLiving
-
getMeleeAttackStrength
- Overrides:
getMeleeAttackStrengthin classEntityLivingBase
-
attackEntityAsMob
- Overrides:
attackEntityAsMobin classEntityLiving
-
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 classEntityAnimal
-
getCanBeHeadCrabbed
public boolean getCanBeHeadCrabbed(boolean bSquidInWater) - Overrides:
getCanBeHeadCrabbedin classEntity
-
getMountedYOffset
public double getMountedYOffset()Description copied from class:EntityReturns the Y offset from the entity's position for any entity riding this one.- Overrides:
getMountedYOffsetin classEntity
-
isBreedingItem
Description copied from class:EntityAnimalChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)- Overrides:
isBreedingItemin classEntityAnimal
-
isHungryEnoughToEatFood
public boolean isHungryEnoughToEatFood() -
isHungryEnoughToEatLooseFood
public boolean isHungryEnoughToEatLooseFood()- Overrides:
isHungryEnoughToEatLooseFoodin classEntityAnimal
-
isReadyToEatLooseItem
- Overrides:
isReadyToEatLooseItemin classEntityAnimal
-
attemptToEatLooseItem
- Overrides:
attemptToEatLooseItemin classEntityAnimal
-
isEdibleItem
- Overrides:
isEdibleItemin classEntityAnimal
-
attemptToBeHandFedItem
- Overrides:
attemptToBeHandFedItemin classEntityAnimal
-
onNearbyPlayerBlockAddOrRemove
- Overrides:
onNearbyPlayerBlockAddOrRemovein classEntityAnimal
-
onNearbyPlayerStartles
- Overrides:
onNearbyPlayerStartlesin classEntityAnimal
-
getCanCreatureTypeBePossessed
public boolean getCanCreatureTypeBePossessed()- Overrides:
getCanCreatureTypeBePossessedin classEntityCreature
-
handlePossession
protected void handlePossession()- Overrides:
handlePossessionin classEntityCreature
-
onNearbyAnimalAttacked
- Overrides:
onNearbyAnimalAttackedin classEntityAnimal
-
notifyOfWolfHowl
- Overrides:
notifyOfWolfHowlin classEntity
-
spawnBabyAnimal
-
isSubjectToHunger
public boolean isSubjectToHunger()- Overrides:
isSubjectToHungerin classEntityAnimal
-
updateHungerState
public void updateHungerState()- Overrides:
updateHungerStatein classEntityAnimal
-
onStarvingCountExpired
public void onStarvingCountExpired()- Overrides:
onStarvingCountExpiredin classEntityAnimal
-
resetHungerCountdown
public void resetHungerCountdown()- Overrides:
resetHungerCountdownin classEntityAnimal
-
getHungerSpeedModifier
- Overrides:
getHungerSpeedModifierin classEntityAnimal
-
isTooHungryToGrow
public boolean isTooHungryToGrow()- Overrides:
isTooHungryToGrowin classEntityAnimal
-
isTooHungryToHeal
public boolean isTooHungryToHeal()- Overrides:
isTooHungryToHealin classEntityAnimal
-
getItemFoodValue
- Overrides:
getItemFoodValuein classEntityAnimal
-
canMateWith
Description copied from class:EntityAnimalReturns true if the mob is currently able to mate with the specified mob.- Overrides:
canMateWithin classEntityAnimal
-
isEngagedInPossessionAttempt
public boolean isEngagedInPossessionAttempt() -
setEngagedInPossessionAttempt
public void setEngagedInPossessionAttempt(boolean bIsEngaged) -
onEatBreedingItem
public void onEatBreedingItem()- Overrides:
onEatBreedingItemin classEntityAnimal
-
isDarkEnoughToAffectShitting
public boolean isDarkEnoughToAffectShitting() -
attemptToShit
public boolean attemptToShit() -
isWildAndHostile
public boolean isWildAndHostile() -
isWildAndHungry
public boolean isWildAndHungry() -
isWildAndStarving
public boolean isWildAndStarving() -
getGrazeHeadVerticalOffset
public float getGrazeHeadVerticalOffset(float par1) - Overrides:
getGrazeHeadVerticalOffsetin classEntityAnimal
-
getGrazeHeadRotation
public float getGrazeHeadRotation(float par1) - Overrides:
getGrazeHeadRotationin classEntityAnimal
-
areEyesGlowing
public boolean areEyesGlowing() -
getPossessionHeadRotation
public float getPossessionHeadRotation() -
handleHealthUpdate
@Environment(CLIENT) public void handleHealthUpdate(byte bUpdateType) - Overrides:
handleHealthUpdatein classEntityTameable
-
getTailRotation
@Environment(CLIENT) public float getTailRotation() -
onBlockDispenserConsume
public boolean onBlockDispenserConsume(BlockDispenserBlock blockDispenser, BlockDispenserTileEntity tileEntity) Description copied from class:EntityCalled when block dispenser tries to eat this entity, return true if the Dispenser should stop looking for more stuff to consume- Overrides:
onBlockDispenserConsumein classEntity
-