Package net.minecraft.src
Class EntityHorse
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintprotected booleanprotected floatprotected int"The higher this value, the more likely the horse is to be tamed next time a player rides it."Fields inherited from class api.entity.mob.KickingAnimal
KICK_ATTACK_DURATION, KICK_ATTACK_RANGE, KICK_ATTACK_TICKS_TO_COOLDOWN, KICK_ATTACK_TIP_COLLISION_HALF_HEIGHT, KICK_ATTACK_TIP_COLLISION_HALF_WIDTH, KICK_ATTACK_TIP_COLLISION_HEIGHT, KICK_ATTACK_TIP_COLLISION_WIDTH, kickAttackCooldownTimer, kickAttackInProgressCounter, kickAttackLegUsedFields 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 TypeMethodDescriptionbooleanprotected voidbooleanattackEntityFrom(DamageSource par1DamageSource, float par2) Called when the entity is attacked.booleanReturns true if this entity should push and be pushed by other entities when colliding.booleancanMateWith(EntityAnimal par1EntityAnimal) Returns true if the mob is currently able to mate with the specified mob.createChild(EntityAgeable par1EntityAgeable) voidvoidprotected voiddropFewItems(boolean killedByPlayer, int lootingModifier) Drop 0-2 items of this living's type.protected voidprotected voidfall(float par1) Called when the mob is falling.floatfunc_110201_q(float par1) booleanstatic booleanfunc_110211_v(int par0) booleanbooleanvoidfunc_110236_r(int par1) booleanintvoidfunc_110242_l(boolean par1) booleanbooleanbooleanprotected voidfunc_142017_o(float par1) protected StringbooleanbooleanChecks if the entity's current position is a valid location to spawn this entity.protected EntityHorsegetClosestHorse(Entity par1Entity, double par2) protected StringReturns the sound this mob makes on death.protected intReturns the item ID for the item the mob drops on death.Gets the username of the entity.floatgetGrassEatingAmount(float par1) booleanintgetHorseArmorIndex(ItemStack par1ItemStack) 0 = iron, 1 = gold, 2 = diamonddoublefloatintreturns the horse typeintprotected StringReturns the sound this mob makes when it is hurt.protected StringReturns the sound this mob makes while it's alive.intWill return how many at most can spawn in a chunk at once.intfloatgetRearingAmount(float par1) protected floatReturns the volume for the sounds this mob makes.intGet number of ticks, at least during which the living entity will be silent.intintReturns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValueString[]protected voidgiveBirthAtTargetLocation(EntityAnimal targetMate, double dChildX, double dChildY, double dChildZ) voidhandleHealthUpdate(byte par1) intincreaseTemper(int par1) booleaninteract(EntityPlayer player) Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.booleanprotected booleanReturns true if the newer Entity AI code should be runbooleanisBreedingItem(ItemStack item) 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)booleanbooleanbooleanbooleanprotected booleanDead and sleeping entities cannot movebooleanreturns true if this entity is by a ladder, false otherwisebooleanbooleanbooleanisTame()booleanvoidvoidmoveEntityWithHeading(float par1, float par2) Moves the entity based on the specified heading.voidonDeath(DamageSource par1DamageSource) Called when the mob's health reaches 0.voidonInventoryChanged(InventoryBasic par1InventoryBasic) Called by InventoryBasic.onInventoryChanged() on a array that is never filled.voidCalled frequently so the entity can update its state every tick as required.onSpawnWithEgg(EntityLivingData par1EntityLivingData) voidonUpdate()Called to update the entity's position/logic.voidopenGUI(EntityPlayer par1EntityPlayer) protected voidplayStepSound(int par1, int par2, int par3, int par4) Plays step sound at given x, y, z for the entitybooleanvoidreadEntityFromNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidsetChested(boolean par1) voidsetEating(boolean par1) voidsetEatingHaystack(boolean par1) voidsetHasReproduced(boolean par1) voidsetHorseJumping(boolean par1) voidsetHorseSaddled(boolean par1) voidsetHorseTamed(boolean par1) voidsetHorseType(int par1) voidsetHorseVariant(int par1) voidsetJumpPower(int par1) voidsetOwnerName(String par1Str) voidsetRearing(boolean par1) voidsetScaleForAge(boolean par1) "Sets the scale for an ageable entity according to the boolean parameter, which says if it's a child."booleansetTamedBy(EntityPlayer par1EntityPlayer) voidsetTemper(int par1) protected voidspawnHorseParticles(boolean par1) "Spawns particles for the horse entity. par1 tells whether to spawn hearts.protected voidstillBirth(EntityAnimal targetMate, double dChildX, double dChildY, double dChildZ) voidvoidwriteEntityToNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class api.entity.mob.KickingAnimal
canEntityBeSeenForAttackToCenterOfMass, computeKickAttackCenter, onClientNotifiedOfKickAttack, updateKickAttackMethods inherited from class net.minecraft.src.EntityAnimal
addToHungerCount, attackEntity, attemptToBeHandFedItem, attemptToEatItem, attemptToEatItemForBreeding, attemptToEatLooseItem, attemptToPossessNearbyCreatureOnDeath, breakLeash, canChildGrow, canDespawn, canGrazeMycelium, canGrazeOnBlock, canGrazeOnRoughVegetation, canLoveJuiceRegenerate, checkForIntersectingBreedingHarnesses, checkForLooseFood, checkForScrollDrop, entityAnimalInteract, findPlayerToAttack, func_110196_bT, getBlockPathWeight, getDisruptsEarthOnGraze, getExperiencePoints, getFoodValueMultiplier, getGrazeBlockForPos, getGrazeDuration, getGrazeHeadRotation, getGrazeHeadRotationMagnitudeDivisor, getGrazeHeadRotationRateMultiplier, getGrazeHeadVerticalOffset, getGrazeHungerGain, getHungerLevel, getHungerSpeedModifier, getInLove, getItemFoodValue, getNestSize, getSoundPitch, getTicksForChildToGrow, getTicksToRegenerateLoveJuice, getWearingBreedingHarness, initHungerWithVariance, isEdibleItem, isFamished, isFullyFed, isHungryEnoughToEatLooseFood, isHungryEnoughToForceMoveToGraze, isHungryEnoughToGraze, isInLove, isReadyToEatBreedingItem, isReadyToEatLooseFood, isReadyToEatLooseItem, isSecondaryTargetForSquid, isStarving, isTemptingItem, isTooHungryToGrow, isTooHungryToHeal, jump, modSpecificOnLivingUpdate, onBecomeFamished, onBecomeStarving, onEatBreedingItem, onFlungBySquidTentacle, onGrazeBlock, onHeadCrabbedBySquid, onNearbyAnimalAttacked, onNearbyFireStartAttempt, onNearbyPlayerBlockAddOrRemove, onNearbyPlayerStartles, onStarvingCountExpired, panicNearbyAnimals, playGrazeFX, procreate, resetHealingCountdown, resetHungerCountdown, resetInLove, resetMatingStateOfBothParents, setHungerLevel, setInLove, setRevengeTarget, setWearingBreedingHarness, shouldNotifyBlockOnGraze, shouldStayInPlaceToGraze, spawnBirthHeartParticles, updateAITick, updateEntityActionState, updateHealing, updateHungerSpeedModifier, updateHungerStateMethods inherited from class net.minecraft.src.EntityAgeable
addGrowth, adjustSizeForAge, entityAgeableInteract, getGrowingAge, isChild, setGrowingAge, setScale, 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, getCanCreatureBePossessedFromDistance, 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, attackEntityAsMob, attractsLightning, canAttackClass, canBeSteered, canEntityCenterOfMassBeSeen, canPickUpLoot, clearLeashed, despawnEntity, doesEntityApplyToSpawnCap, dropEquipment, 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, getEntitySenses, getHeldItem, getJumpHelper, getLastActiveItems, getLeashed, getLeashedToEntity, getLookHelper, getMaxSafePointTries, getMoveHelper, getNavigator, getRenderSizeModifier, getVerticalFaceSpeed, 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, canBreatheUnderwater, canEntityBeSeen, canJump, canJumpMidWater, canSwim, checkForHeadDrop, checkForRareDrop, clearActivePotions, collideWithEntity, collideWithNearbyEntities, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, dropHead, dropRareDrop, entityLivingBaseFall, entityLivingOnDeath, func_110142_aN, func_142015_aE, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAmbientLootingModifier, getArrowCountInEntity, getAttributeMap, getCreatureAttribute, getDefaultSlipperinessOnGround, getEntityAttribute, getEyeHeight, getHealth, getHealthAndExhaustionModifier, getItemIcon, getLadderVerticalMovementModifier, getLandMovementModifier, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getMeleeAttackStrength, getPosition, getRNG, getRotationYawHead, getSlipperinessRelativeToBlock, getSpeedModifier, getSwimmingHorizontalModifier, getSwingProgress, getTeam, heal, isClientWorld, isEntityAlive, isEntityUndead, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, isWeighted, isWeightedByHeadCrab, kill, knockBack, knockbackMagnitude, mouseOverCustomRayTrace, 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, isWet, mountEntity, mountEntityRemote, moveEntity, moveFlying, movementModifierWhenRidingBoat, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onBlockDispenserConsume, onChunkLoad, onCollideWithPlayer, onKickedByAnimal, onKillEntity, onPossessedRidingEntityDeath, onStruckByLightning, playSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, setDead, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSneaking, setVelocity, setWorld, shouldExplodeBlock, shouldSetPosAfterLoading, shouldSetPositionOnLoad, toString, travelToDimension, tryToSetFireToBlocksInContact, updateCloak, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Field Details
-
field_110278_bp
public int field_110278_bp -
field_110279_bq
public int field_110279_bq -
horseJumping
protected boolean horseJumping -
temper
protected int temper"The higher this value, the more likely the horse is to be tamed next time a player rides it." -
jumpPower
protected float jumpPower
-
-
Constructor Details
-
EntityHorse
-
-
Method Details
-
entityInit
protected void entityInit()- Overrides:
entityInitin classEntityAnimal
-
setHorseType
public void setHorseType(int par1) -
getHorseType
public int getHorseType()returns the horse type -
setHorseVariant
public void setHorseVariant(int par1) -
getHorseVariant
public int getHorseVariant() -
getEntityName
Gets the username of the entity.- Overrides:
getEntityNamein classEntityLiving
-
isAdultHorse
public boolean isAdultHorse() -
isTame
public boolean isTame() -
func_110253_bW
public boolean func_110253_bW() -
getOwnerName
-
setOwnerName
-
getHorseSize
public float getHorseSize() -
setScaleForAge
public void setScaleForAge(boolean par1) "Sets the scale for an ageable entity according to the boolean parameter, which says if it's a child."- Overrides:
setScaleForAgein classEntityAgeable
-
isHorseJumping
public boolean isHorseJumping() -
setHorseTamed
public void setHorseTamed(boolean par1) -
setHorseJumping
public void setHorseJumping(boolean par1) -
allowLeashing
public boolean allowLeashing()- Overrides:
allowLeashingin classEntityLiving
-
func_142017_o
protected void func_142017_o(float par1) - Overrides:
func_142017_oin classEntityCreature
-
isChested
public boolean isChested() -
func_110241_cb
public int func_110241_cb() -
getHorseArmorIndex
0 = iron, 1 = gold, 2 = diamond -
isEatingHaystack
public boolean isEatingHaystack() -
isRearing
public boolean isRearing() -
func_110205_ce
public boolean func_110205_ce() -
getHasReproduced
public boolean getHasReproduced() -
func_110236_r
public void func_110236_r(int par1) -
func_110242_l
public void func_110242_l(boolean par1) -
setChested
public void setChested(boolean par1) -
setHasReproduced
public void setHasReproduced(boolean par1) -
setHorseSaddled
public void setHorseSaddled(boolean par1) -
getTemper
public int getTemper() -
setTemper
public void setTemper(int par1) -
increaseTemper
public int increaseTemper(int par1) -
attackEntityFrom
Called when the entity is attacked.- Overrides:
attackEntityFromin classEntityAnimal
-
getTotalArmorValue
public int getTotalArmorValue()Returns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValue- Overrides:
getTotalArmorValuein classEntityLivingBase
-
canBePushed
public boolean canBePushed()Returns true if this entity should push and be pushed by other entities when colliding.- Overrides:
canBePushedin classEntityLivingBase
-
prepareChunkForSpawn
public boolean prepareChunkForSpawn() -
dropChests
public void dropChests() -
fall
protected void fall(float par1) Called when the mob is falling. Calculates and applies fall damage.- Overrides:
fallin classEntityLivingBase
-
onInventoryChanged
Called by InventoryBasic.onInventoryChanged() on a array that is never filled.- Specified by:
onInventoryChangedin interfaceIInvBasic
-
getCanSpawnHere
public boolean getCanSpawnHere()Checks if the entity's current position is a valid location to spawn this entity.- Overrides:
getCanSpawnHerein classEntityAnimal
-
getClosestHorse
-
getHorseJumpStrength
public double getHorseJumpStrength() -
getDeathSound
Returns the sound this mob makes on death.- Overrides:
getDeathSoundin classEntityLivingBase
-
getDropItemId
protected int getDropItemId()Returns the item ID for the item the mob drops on death.- Overrides:
getDropItemIdin classEntityLiving
-
getHurtSound
Returns the sound this mob makes when it is hurt.- Overrides:
getHurtSoundin classEntityLivingBase
-
isHorseSaddled
public boolean isHorseSaddled() -
getLivingSound
Returns the sound this mob makes while it's alive.- Overrides:
getLivingSoundin classEntityLiving
-
getAngrySoundName
-
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
-
applyEntityAttributes
protected void applyEntityAttributes()- Overrides:
applyEntityAttributesin classEntityLiving
-
getMaxSpawnedInChunk
public int getMaxSpawnedInChunk()Will return how many at most can spawn in a chunk at once.- Overrides:
getMaxSpawnedInChunkin classEntityLiving
-
getMaxTemper
public int getMaxTemper() -
getSoundVolume
protected float getSoundVolume()Returns the volume for the sounds this mob makes.- Overrides:
getSoundVolumein classEntityLivingBase
-
getTalkInterval
public int getTalkInterval()Get number of ticks, at least during which the living entity will be silent.- Overrides:
getTalkIntervalin classEntityAnimal
-
func_110239_cn
public boolean func_110239_cn() -
getHorseTexture
-
getVariantTexturePaths
-
openGUI
-
interact
Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.- Overrides:
interactin classEntityAnimal
-
giveBirthAtTargetLocation
protected void giveBirthAtTargetLocation(EntityAnimal targetMate, double dChildX, double dChildY, double dChildZ) - Overrides:
giveBirthAtTargetLocationin classEntityAnimal
-
stillBirth
-
func_110259_cr
public boolean func_110259_cr() -
func_110229_cs
public boolean func_110229_cs() -
isMovementBlocked
protected boolean isMovementBlocked()Dead and sleeping entities cannot move- Overrides:
isMovementBlockedin classEntityLivingBase
-
func_110256_cu
public boolean func_110256_cu() -
func_110222_cv
public boolean func_110222_cv() -
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)- Overrides:
isBreedingItemin classEntityAnimal
-
onDeath
Called when the mob's health reaches 0.- Overrides:
onDeathin classEntityAnimal
-
dropFewItems
protected void dropFewItems(boolean killedByPlayer, int lootingModifier) Description copied from class:EntityLivingDrop 0-2 items of this living's type. @param par1 - Whether this entity has recently been hit by a player. @param par2 - Level of Looting used to kill this mob.- Overrides:
dropFewItemsin classEntityLiving
-
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 classKickingAnimal
-
onUpdate
public void onUpdate()Called to update the entity's position/logic.- Overrides:
onUpdatein classEntityLiving
-
setEating
public void setEating(boolean par1) -
setEatingHaystack
public void setEatingHaystack(boolean par1) -
setRearing
public void setRearing(boolean par1) -
makeHorseRearWithSound
public void makeHorseRearWithSound() -
dropChestItems
public void dropChestItems() -
setTamedBy
-
moveEntityWithHeading
public void moveEntityWithHeading(float par1, float par2) Moves the entity based on the specified heading. Args: strafe, forward- Overrides:
moveEntityWithHeadingin classEntityLivingBase
-
writeEntityToNBT
(abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBTin classEntityAnimal
-
readEntityFromNBT
(abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBTin classEntityAnimal
-
canMateWith
Returns true if the mob is currently able to mate with the specified mob.- Overrides:
canMateWithin classEntityAnimal
-
createChild
- Specified by:
createChildin classEntityAgeable
-
onSpawnWithEgg
- Overrides:
onSpawnWithEggin classEntityAnimal
-
getGrassEatingAmount
public float getGrassEatingAmount(float par1) -
getRearingAmount
public float getRearingAmount(float par1) -
func_110201_q
public float func_110201_q(float par1) -
isAIEnabled
protected boolean isAIEnabled()Returns true if the newer Entity AI code should be run- Overrides:
isAIEnabledin classEntityLiving
-
setJumpPower
public void setJumpPower(int par1) -
spawnHorseParticles
protected void spawnHorseParticles(boolean par1) "Spawns particles for the horse entity. par1 tells whether to spawn hearts. If it is false, it spawns smoke." -
handleHealthUpdate
public void handleHealthUpdate(byte par1) - Overrides:
handleHealthUpdatein classEntityAnimal
-
updateRiderPosition
public void updateRiderPosition()- Overrides:
updateRiderPositionin classEntity
-
func_110211_v
public static boolean func_110211_v(int par0) -
isOnLadder
public boolean isOnLadder()returns true if this entity is by a ladder, false otherwise- Overrides:
isOnLadderin classEntityLivingBase
-
isValidZombieSecondaryTarget
- Overrides:
isValidZombieSecondaryTargetin classEntity
-
isSubjectToHunger
public boolean isSubjectToHunger()- Overrides:
isSubjectToHungerin classEntityAnimal
-
getCanCreatureTypeBePossessed
public boolean getCanCreatureTypeBePossessed()- Overrides:
getCanCreatureTypeBePossessedin classEntityCreature
-