public class EntityHorse extends EntityAnimal implements IInvBasic
Modifier and Type | Class and Description |
---|---|
static class |
EntityHorse.GroupData |
Entity.EnumEntitySize
Modifier and Type | Field and Description |
---|---|
int |
field_110278_bp |
int |
field_110279_bq |
protected boolean |
horseJumping |
protected float |
jumpPower |
protected int |
temper |
entityToAttack, field_110179_h, field_110181_i, fleeingTick, hasAttacked
defaultPitch, equipmentDropChances, experienceValue, livingSoundTime, numTicksToChaseTarget, targetTasks, tasks
arrowHitTimer, attackedAtYaw, attackingPlayer, attackTime, 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, prevHealth, prevLimbSwingAmount, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, swingProgressInt
addedToChunk, boundingBox, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, 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 and Description |
---|
EntityHorse(World p_i1685_1_) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowLeashing() |
protected void |
applyEntityAttributes() |
boolean |
attackEntityFrom(DamageSource p_70097_1_,
float p_70097_2_) |
boolean |
canBePushed() |
boolean |
canMateWith(EntityAnimal p_70878_1_) |
EntityAgeable |
createChild(EntityAgeable p_90011_1_) |
void |
dropChestItems() |
void |
dropChests() |
protected void |
entityInit() |
protected void |
fall(float p_70069_1_) |
float |
func_110201_q(float p_110201_1_) |
boolean |
func_110205_ce() |
boolean |
func_110222_cv() |
boolean |
func_110229_cs() |
boolean |
func_110239_cn() |
int |
func_110241_cb() |
void |
func_110242_l(boolean p_110242_1_) |
boolean |
func_110253_bW() |
boolean |
func_110256_cu() |
boolean |
func_110259_cr() |
protected void |
func_142017_o(float p_142017_1_) |
protected void |
func_145780_a(int p_145780_1_,
int p_145780_2_,
int p_145780_3_,
Block p_145780_4_) |
static boolean |
func_146085_a(Item p_146085_0_) |
void |
func_146086_d(ItemStack p_146086_1_) |
java.lang.String |
func_152119_ch() |
void |
func_152120_b(java.lang.String p_152120_1_) |
protected java.lang.String |
getAngrySoundName() |
boolean |
getCanSpawnHere() |
protected EntityHorse |
getClosestHorse(Entity p_110250_1_,
double p_110250_2_) |
java.lang.String |
getCommandSenderName() |
protected java.lang.String |
getDeathSound() |
protected Item |
getDropItem() |
float |
getGrassEatingAmount(float p_110258_1_) |
boolean |
getHasReproduced() |
double |
getHorseJumpStrength() |
float |
getHorseSize() |
java.lang.String |
getHorseTexture() |
int |
getHorseType() |
int |
getHorseVariant() |
protected java.lang.String |
getHurtSound() |
protected java.lang.String |
getLivingSound() |
int |
getMaxSpawnedInChunk() |
int |
getMaxTemper() |
float |
getRearingAmount(float p_110223_1_) |
protected float |
getSoundVolume() |
int |
getTalkInterval() |
int |
getTemper() |
int |
getTotalArmorValue() |
java.lang.String[] |
getVariantTexturePaths() |
void |
handleHealthUpdate(byte p_70103_1_) |
int |
increaseTemper(int p_110198_1_) |
boolean |
interact(EntityPlayer p_70085_1_) |
boolean |
isAdultHorse() |
protected boolean |
isAIEnabled() |
boolean |
isBreedingItem(ItemStack p_70877_1_) |
boolean |
isChested() |
boolean |
isEatingHaystack() |
boolean |
isHorseJumping() |
boolean |
isHorseSaddled() |
protected boolean |
isMovementBlocked() |
boolean |
isOnLadder() |
boolean |
isRearing() |
boolean |
isTame() |
void |
makeHorseRearWithSound() |
void |
moveEntityWithHeading(float p_70612_1_,
float p_70612_2_) |
void |
onDeath(DamageSource p_70645_1_) |
void |
onInventoryChanged(InventoryBasic p_76316_1_) |
void |
onLivingUpdate() |
IEntityLivingData |
onSpawnWithEgg(IEntityLivingData p_110161_1_) |
void |
onUpdate() |
void |
openGUI(EntityPlayer p_110199_1_) |
boolean |
prepareChunkForSpawn() |
void |
readEntityFromNBT(NBTTagCompound p_70037_1_) |
void |
setChested(boolean p_110207_1_) |
void |
setEating(boolean p_70019_1_) |
void |
setEatingHaystack(boolean p_110227_1_) |
void |
setHasReproduced(boolean p_110221_1_) |
void |
setHorseJumping(boolean p_110255_1_) |
void |
setHorseSaddled(boolean p_110251_1_) |
void |
setHorseTamed(boolean p_110234_1_) |
void |
setHorseType(int p_110214_1_) |
void |
setHorseVariant(int p_110235_1_) |
void |
setJumpPower(int p_110206_1_) |
void |
setRearing(boolean p_110219_1_) |
void |
setScaleForAge(boolean p_98054_1_) |
boolean |
setTamedBy(EntityPlayer p_110263_1_) |
void |
setTemper(int p_110238_1_) |
protected void |
spawnHorseParticles(boolean p_110216_1_) |
void |
updateRiderPosition() |
void |
writeEntityToNBT(NBTTagCompound p_70014_1_) |
attackEntity, canDespawn, findPlayerToAttack, func_146082_f, func_146083_cb, getBlockPathWeight, getExperiencePoints, isInLove, resetInLove, updateAITick
addGrowth, getGrowingAge, isChild, setGrowingAge, setScale, setSize
detachHome, func_110174_bM, getEntityToAttack, getHomePosition, hasHome, hasPath, isMovementCeased, isWithinHomeDistance, isWithinHomeDistanceCurrentPosition, setHomeArea, setPathToEntity, setTarget, updateEntityActionState, updateLeashedState, updateWanderPath
addRandomArmor, canAttackClass, canBeSteered, canPickUpLoot, clearLeashed, despawnEntity, dropEquipment, dropFewItems, eatGrassBonus, enchantEquipment, faceEntity, func_110146_f, func_110163_bv, func_130225_q, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCustomNameTag, getEntitySenses, getEquipmentInSlot, getHeldItem, getJumpHelper, getLastActiveItems, getLeashed, getLeashedToEntity, getLookHelper, getMaxSafePointTries, getMoveHelper, getNavigator, getRenderSizeModifier, getVerticalFaceSpeed, hasCustomNameTag, interactFirst, isNoDespawnRequired, onEntityUpdate, playLivingSound, setAIMoveSpeed, setAlwaysRenderNameTag, setAttackTarget, setCanPickUpLoot, setCurrentItemOrArmor, setCustomNameTag, setEquipmentDropChance, setLeashedToEntity, setMoveForward, spawnExplosionParticle, updateAITasks
addPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, attackEntityAsMob, canBeCollidedWith, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, dropRareDrop, func_110142_aN, func_142015_aE, func_146066_aG, func_146067_o, func_152111_bt, func_152112_bu, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getArrowCountInEntity, getAttributeMap, getCreatureAttribute, getEntityAttribute, getEyeHeight, getHealth, getItemIcon, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getPosition, getRNG, getRotationYawHead, getSoundPitch, getSwingProgress, getTeam, heal, isClientWorld, isEntityAlive, isEntityUndead, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, jump, kill, knockBack, onChangedPotionEffect, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onNewPotionEffect, performHurtAnimation, rayTrace, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setPositionAndUpdate, setRevengeTarget, setRotationYawHead, setSprinting, swingItem, updateArmSwingProgress, updateFallState, updatePotionEffects, updateRidden
addEntityCrashInfo, addToPlayerScore, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, canTriggerWalking, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doesEntityNotTriggerPressurePlate, dropItem, entityDropItem, equals, extinguish, func_145748_c_, func_145771_j, func_145772_a, func_145774_a, func_145775_I, func_145778_a, func_145781_i, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityId, getEntityString, getFlag, getMaxInPortalTime, getMountedYOffset, getParts, getPortalCooldown, getShadowSize, getSplashSound, getSwimSound, getTeleportDirection, getUniqueID, getYOffset, handleLavaMovement, handleWaterMovement, hashCode, hitByEntity, isBurning, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSneaking, isSprinting, isWet, mountEntity, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onKillEntity, onStruckByLightning, playSound, preparePlayerToSpawn, readFromNBT, setAir, setAngles, setDead, setEntityId, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSneaking, setVelocity, setWorld, shouldSetPosAfterLoading, toString, travelToDimension, writeMountToNBT, writeToNBT, writeToNBTOptional
public int field_110278_bp
public int field_110279_bq
protected boolean horseJumping
protected int temper
protected float jumpPower
public EntityHorse(World p_i1685_1_)
protected void entityInit()
entityInit
in class EntityAgeable
public void setHorseType(int p_110214_1_)
public int getHorseType()
public void setHorseVariant(int p_110235_1_)
public int getHorseVariant()
public java.lang.String getCommandSenderName()
getCommandSenderName
in class EntityLiving
public boolean isAdultHorse()
public boolean isTame()
public boolean func_110253_bW()
public java.lang.String func_152119_ch()
public void func_152120_b(java.lang.String p_152120_1_)
public float getHorseSize()
public void setScaleForAge(boolean p_98054_1_)
setScaleForAge
in class EntityAgeable
public boolean isHorseJumping()
public void setHorseTamed(boolean p_110234_1_)
public void setHorseJumping(boolean p_110255_1_)
public boolean allowLeashing()
allowLeashing
in class EntityLiving
protected void func_142017_o(float p_142017_1_)
func_142017_o
in class EntityCreature
public boolean isChested()
public int func_110241_cb()
public boolean isEatingHaystack()
public boolean isRearing()
public boolean func_110205_ce()
public boolean getHasReproduced()
public void func_146086_d(ItemStack p_146086_1_)
public void func_110242_l(boolean p_110242_1_)
public void setChested(boolean p_110207_1_)
public void setHasReproduced(boolean p_110221_1_)
public void setHorseSaddled(boolean p_110251_1_)
public int getTemper()
public void setTemper(int p_110238_1_)
public int increaseTemper(int p_110198_1_)
public boolean attackEntityFrom(DamageSource p_70097_1_, float p_70097_2_)
attackEntityFrom
in class EntityAnimal
public int getTotalArmorValue()
getTotalArmorValue
in class EntityLivingBase
public boolean canBePushed()
canBePushed
in class EntityLivingBase
public boolean prepareChunkForSpawn()
public void dropChests()
protected void fall(float p_70069_1_)
fall
in class EntityLivingBase
public void onInventoryChanged(InventoryBasic p_76316_1_)
onInventoryChanged
in interface IInvBasic
public boolean getCanSpawnHere()
getCanSpawnHere
in class EntityAnimal
protected EntityHorse getClosestHorse(Entity p_110250_1_, double p_110250_2_)
public double getHorseJumpStrength()
protected java.lang.String getDeathSound()
getDeathSound
in class EntityLivingBase
protected Item getDropItem()
getDropItem
in class EntityLiving
protected java.lang.String getHurtSound()
getHurtSound
in class EntityLivingBase
public boolean isHorseSaddled()
protected java.lang.String getLivingSound()
getLivingSound
in class EntityLiving
protected java.lang.String getAngrySoundName()
protected void func_145780_a(int p_145780_1_, int p_145780_2_, int p_145780_3_, Block p_145780_4_)
func_145780_a
in class Entity
protected void applyEntityAttributes()
applyEntityAttributes
in class EntityLiving
public int getMaxSpawnedInChunk()
getMaxSpawnedInChunk
in class EntityLiving
public int getMaxTemper()
protected float getSoundVolume()
getSoundVolume
in class EntityLivingBase
public int getTalkInterval()
getTalkInterval
in class EntityAnimal
public boolean func_110239_cn()
public java.lang.String getHorseTexture()
public java.lang.String[] getVariantTexturePaths()
public void openGUI(EntityPlayer p_110199_1_)
public boolean interact(EntityPlayer p_70085_1_)
interact
in class EntityAnimal
public boolean func_110259_cr()
public boolean func_110229_cs()
protected boolean isMovementBlocked()
isMovementBlocked
in class EntityLivingBase
public boolean func_110256_cu()
public boolean func_110222_cv()
public boolean isBreedingItem(ItemStack p_70877_1_)
isBreedingItem
in class EntityAnimal
public void onDeath(DamageSource p_70645_1_)
onDeath
in class EntityLivingBase
public void onLivingUpdate()
onLivingUpdate
in class EntityAnimal
public void onUpdate()
onUpdate
in class EntityLiving
public void setEatingHaystack(boolean p_110227_1_)
public void setRearing(boolean p_110219_1_)
public void makeHorseRearWithSound()
public void dropChestItems()
public boolean setTamedBy(EntityPlayer p_110263_1_)
public void moveEntityWithHeading(float p_70612_1_, float p_70612_2_)
moveEntityWithHeading
in class EntityLivingBase
public void writeEntityToNBT(NBTTagCompound p_70014_1_)
writeEntityToNBT
in class EntityAnimal
public void readEntityFromNBT(NBTTagCompound p_70037_1_)
readEntityFromNBT
in class EntityAnimal
public boolean canMateWith(EntityAnimal p_70878_1_)
canMateWith
in class EntityAnimal
public EntityAgeable createChild(EntityAgeable p_90011_1_)
createChild
in class EntityAgeable
public IEntityLivingData onSpawnWithEgg(IEntityLivingData p_110161_1_)
onSpawnWithEgg
in class EntityLiving
public float getGrassEatingAmount(float p_110258_1_)
public float getRearingAmount(float p_110223_1_)
public float func_110201_q(float p_110201_1_)
protected boolean isAIEnabled()
isAIEnabled
in class EntityLiving
public void setJumpPower(int p_110206_1_)
protected void spawnHorseParticles(boolean p_110216_1_)
public void handleHealthUpdate(byte p_70103_1_)
handleHealthUpdate
in class EntityAnimal
public void updateRiderPosition()
updateRiderPosition
in class Entity
public static boolean func_146085_a(Item p_146085_0_)
public boolean isOnLadder()
isOnLadder
in class EntityLivingBase