public class EntityHorse extends EntityAnimal implements IInvBasic
Modifier and Type | Field and Description |
---|---|
int |
field_110278_bp |
int |
field_110279_bq |
inLove
field_110179_h, field_110181_i
experienceValue, livingSoundTime, targetTasks, tasks
arrowHitTimer, attackedAtYaw, attackTime, cameraPitch, deathTime, field_70769_ao, field_70770_ap, hurtTime, isSwingInProgress, jumpMovementFactor, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, prevCameraPitch, prevHealth, prevLimbSwingAmount, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, renderYawOffset, rotationYawHead, swingProgress, swingProgressInt
addedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize
Constructor and Description |
---|
EntityHorse(World par1World) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowLeashing() |
boolean |
attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
canBePushed()
Returns true if this entity should push and be pushed by other entities when colliding.
|
boolean |
canMateWith(EntityAnimal par1EntityAnimal)
Returns true if the mob is currently able to mate with the specified mob.
|
EntityAgeable |
createChild(EntityAgeable par1EntityAgeable) |
void |
dropChestItems() |
void |
dropChests() |
float |
func_110201_q(float par1) |
boolean |
func_110205_ce() |
static boolean |
func_110211_v(int par0) |
boolean |
func_110222_cv() |
boolean |
func_110229_cs() |
void |
func_110236_r(int par1) |
boolean |
func_110239_cn() |
int |
func_110241_cb() |
void |
func_110242_l(boolean par1) |
boolean |
func_110253_bW() |
boolean |
func_110256_cu() |
boolean |
func_110259_cr() |
boolean |
getCanSpawnHere()
Checks if the entity's current position is a valid location to spawn this entity.
|
String |
getEntityName()
Gets the username of the entity.
|
float |
getGrassEatingAmount(float par1) |
boolean |
getHasReproduced() |
int |
getHorseArmorIndex(ItemStack par1ItemStack)
0 = iron, 1 = gold, 2 = diamond
|
double |
getHorseJumpStrength() |
float |
getHorseSize() |
String |
getHorseTexture() |
int |
getHorseType()
returns the horse type
|
int |
getHorseVariant() |
int |
getMaxSpawnedInChunk()
Will return how many at most can spawn in a chunk at once.
|
int |
getMaxTemper() |
String |
getOwnerName() |
float |
getRearingAmount(float par1) |
int |
getTalkInterval()
Get number of ticks, at least during which the living entity will be silent.
|
int |
getTemper() |
int |
getTotalArmorValue()
Returns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValue
|
String[] |
getVariantTexturePaths() |
void |
handleHealthUpdate(byte par1) |
int |
increaseTemper(int par1) |
boolean |
interact(EntityPlayer par1EntityPlayer)
Called when a player interacts with a mob.
|
boolean |
isAdultHorse() |
boolean |
isBreedingItem(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)
|
boolean |
isChested() |
boolean |
isEatingHaystack() |
boolean |
isHorseJumping() |
boolean |
isHorseSaddled() |
boolean |
isOnLadder()
returns true if this entity is by a ladder, false otherwise
|
boolean |
isRearing() |
boolean |
isTame() |
void |
makeHorseRearWithSound() |
void |
moveEntityWithHeading(float par1,
float par2)
Moves the entity based on the specified heading.
|
void |
onDeath(DamageSource par1DamageSource)
Called when the mob's health reaches 0.
|
void |
onInventoryChanged(InventoryBasic par1InventoryBasic)
Called by InventoryBasic.onInventoryChanged() on a array that is never filled.
|
void |
onLivingUpdate()
Called frequently so the entity can update its state every tick as required.
|
EntityLivingData |
onSpawnWithEgg(EntityLivingData par1EntityLivingData) |
void |
onUpdate()
Called to update the entity's position/logic.
|
void |
openGUI(EntityPlayer par1EntityPlayer) |
boolean |
prepareChunkForSpawn() |
void |
readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
setChested(boolean par1) |
void |
setEating(boolean par1) |
void |
setEatingHaystack(boolean par1) |
void |
setHasReproduced(boolean par1) |
void |
setHorseJumping(boolean par1) |
void |
setHorseSaddled(boolean par1) |
void |
setHorseTamed(boolean par1) |
void |
setHorseType(int par1) |
void |
setHorseVariant(int par1) |
void |
setJumpPower(int par1) |
void |
setOwnerName(String par1Str) |
void |
setRearing(boolean par1) |
void |
setScaleForAge(boolean par1)
"Sets the scale for an ageable entity according to the boolean parameter, which says if it's a child."
|
boolean |
setTamedBy(EntityPlayer par1EntityPlayer) |
void |
setTemper(int par1) |
void |
updateRiderPosition() |
void |
writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
func_110196_bT, getBlockPathWeight, isInLove, resetInLove
addGrowth, getGrowingAge, isChild, setGrowingAge
detachHome, func_110173_bK, func_110174_bM, func_110176_b, getEntityToAttack, getHomePosition, hasHome, hasPath, setHomeArea, setPathToEntity, setTarget
canAttackClass, canBeSteered, canPickUpLoot, clearLeashed, eatGrassBonus, faceEntity, func_110163_bv, func_130225_q, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCurrentItemOrArmor, getCustomNameTag, getEntitySenses, 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
addPotionEffect, attackEntityAsMob, canBeCollidedWith, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, curePotionEffects, dismountEntity, func_110142_aN, func_142015_aE, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getArrowCountInEntity, getAttributeMap, getCreatureAttribute, getEntityAttribute, getEyeHeight, getHealth, getItemIcon, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getPosition, getRNG, getRotationYawHead, getSwingProgress, getTeam, heal, isClientWorld, isEntityAlive, isEntityUndead, isOnSameTeam, isOnTeam, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, knockBack, onItemPickup, performHurtAnimation, rayTrace, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAbsorptionAmount, setArrowCountInEntity, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setPositionAndUpdate, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, swingItem, updateRidden
addEntityCrashInfo, addToPlayerScore, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, canRiderInteract, copyDataFrom, copyLocationAndAnglesFrom, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAir, getBlockExplosionResistance, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getExtendedProperties, getMaxInPortalTime, getMountedYOffset, getParts, getPersistentID, getPickedResult, getPortalCooldown, getShadowSize, getTeleportDirection, getTranslatedEntityName, getUniqueID, getYOffset, handleLavaMovement, handleWaterMovement, hashCode, hitByEntity, isBurning, isCreatureType, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSneaking, isSprinting, isWet, mountEntity, moveEntity, moveFlying, onChunkLoad, onCollideWithPlayer, onKillEntity, onStruckByLightning, playSound, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setDead, setFire, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setPosition, setPositionAndRotation, setSneaking, setVelocity, setWorld, shouldDismountInWater, shouldExplodeBlock, shouldRenderInPass, shouldRiderSit, toString, travelToDimension, writeMountToNBT, writeToNBT, writeToNBTOptional
public EntityHorse(World par1World)
public void setHorseType(int par1)
public int getHorseType()
public void setHorseVariant(int par1)
public int getHorseVariant()
public String getEntityName()
getEntityName
in class EntityLiving
public boolean isAdultHorse()
public boolean isTame()
public boolean func_110253_bW()
public String getOwnerName()
public void setOwnerName(String par1Str)
public float getHorseSize()
public void setScaleForAge(boolean par1)
setScaleForAge
in class EntityAgeable
public boolean isHorseJumping()
public void setHorseTamed(boolean par1)
public void setHorseJumping(boolean par1)
public boolean allowLeashing()
allowLeashing
in class EntityLiving
public boolean isChested()
public int func_110241_cb()
public int getHorseArmorIndex(ItemStack par1ItemStack)
public boolean isEatingHaystack()
public boolean isRearing()
public boolean func_110205_ce()
public boolean getHasReproduced()
public void func_110236_r(int par1)
public void func_110242_l(boolean par1)
public void setChested(boolean par1)
public void setHasReproduced(boolean par1)
public void setHorseSaddled(boolean par1)
public int getTemper()
public void setTemper(int par1)
public int increaseTemper(int par1)
public boolean attackEntityFrom(DamageSource par1DamageSource, float par2)
attackEntityFrom
in class EntityAnimal
public int getTotalArmorValue()
getTotalArmorValue
in class EntityLivingBase
public boolean canBePushed()
canBePushed
in class EntityLivingBase
public boolean prepareChunkForSpawn()
public void dropChests()
public void onInventoryChanged(InventoryBasic par1InventoryBasic)
onInventoryChanged
in interface IInvBasic
public boolean getCanSpawnHere()
getCanSpawnHere
in class EntityAnimal
public double getHorseJumpStrength()
public boolean isHorseSaddled()
public int getMaxSpawnedInChunk()
getMaxSpawnedInChunk
in class EntityLiving
public int getMaxTemper()
public int getTalkInterval()
getTalkInterval
in class EntityAnimal
public boolean func_110239_cn()
public String getHorseTexture()
public String[] getVariantTexturePaths()
public void openGUI(EntityPlayer par1EntityPlayer)
public boolean interact(EntityPlayer par1EntityPlayer)
interact
in class EntityAnimal
public boolean func_110259_cr()
public boolean func_110229_cs()
public boolean func_110256_cu()
public boolean func_110222_cv()
public boolean isBreedingItem(ItemStack par1ItemStack)
isBreedingItem
in class EntityAnimal
public void onDeath(DamageSource par1DamageSource)
onDeath
in class EntityLivingBase
public void onLivingUpdate()
onLivingUpdate
in class EntityAnimal
public void onUpdate()
onUpdate
in class EntityLiving
public void setEatingHaystack(boolean par1)
public void setRearing(boolean par1)
public void makeHorseRearWithSound()
public void dropChestItems()
public boolean setTamedBy(EntityPlayer par1EntityPlayer)
public void moveEntityWithHeading(float par1, float par2)
moveEntityWithHeading
in class EntityLivingBase
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
writeEntityToNBT
in class EntityAnimal
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
readEntityFromNBT
in class EntityAnimal
public boolean canMateWith(EntityAnimal par1EntityAnimal)
canMateWith
in class EntityAnimal
public EntityAgeable createChild(EntityAgeable par1EntityAgeable)
createChild
in class EntityAgeable
public EntityLivingData onSpawnWithEgg(EntityLivingData par1EntityLivingData)
onSpawnWithEgg
in class EntityLiving
public float getGrassEatingAmount(float par1)
public float getRearingAmount(float par1)
public float func_110201_q(float par1)
public void setJumpPower(int par1)
public void handleHealthUpdate(byte par1)
handleHealthUpdate
in class EntityAnimal
public void updateRiderPosition()
updateRiderPosition
in class Entity
public static boolean func_110211_v(int par0)
public boolean isOnLadder()
isOnLadder
in class EntityLivingBase