net.minecraft.entity.living.mob.passive.animal

public class HorseBaseEntity

extends AnimalEntity implements InventoryListener, JumpingMount

All mapped superinterfaces:

CommandSource, SpawnableEntity, InventoryListener, JumpingMount

wr
net.minecraft.class_1712
net.minecraft.entity.living.mob.passive.animal.HorseBaseEntity
net.minecraft.entity.passive.EntityHorse

Field summary

Modifier and TypeField
private static final com.google.common.base.Predicate<Entity>
bD
field_11975
BREED_FILTER
IS_HORSE_BREEDING
private static final EntityAttribute
bE
field_6903
JUMP_STRENGTH_ATTRIBUTE
JUMP_STRENGTH
private static final UUID
bF
field_14628
HORSE_ARMOR_BONUS_MODIFIER_ID
ARMOR_MODIFIER_UUID
private static final DataAttribute<Byte>
bG
field_14629
HORSE_FLAGS
STATUS
private static final DataAttribute<Integer>
bH
field_14630
TYPE
HORSE_TYPE
private static final DataAttribute<Integer>
bI
field_14631
VARIANT
HORSE_VARIANT
private static final DataAttribute<com.google.common.base.Optional<UUID>>
bJ
field_14632
OWNER
OWNER_UNIQUE_ID
private static final DataAttribute<Integer>
bK
field_14633
ARMOR_TIER
HORSE_ARMOR
private static final String[]
bL
field_6907
HORSE_VARIANT_TEXTURE_PATHS
HORSE_TEXTURES
private static final String[]
bM
field_6879
HORSE_VARIANT_HASHES
HORSE_TEXTURES_ABBR
private static final String[]
bN
field_6880
HORSE_MARKINGS_TEXTURE_PATHS
HORSE_MARKING_TEXTURES
private static final String[]
bO
field_6881
HORSE_MARKINGS_HASHES
HORSE_MARKING_TEXTURES_ABBR
private final SkeletonTrapGoal
bP
field_14634
skeletonTrapGoal
skeletonTrapAI
private int
bQ
field_6882
eatingGrassTicks
eatingHaystackCounter
private int
bR
field_6883
eatingTicks
openMouthCounter
private int
bS
field_6884
angryTicks
jumpRearingCounter
public int
bx
field_6897
type
tailCounter
public int
by
field_6898
cooldown
sprintCounter
protected boolean
bz
field_6899
inAir
horseJumping
private AnimalInventory
bT
field_6885
inventory
horseChest
private boolean
bU
field_6886
hasBred
hasReproduced
protected int
bB
field_6900
temper
temper
protected float
bC
field_6901
jumpStrength
jumpPower
private boolean
bV
field_6887
jumping
allowStandSliding
private boolean
bW
field_14635
skeletonTrap
skeletonTrap
private int
bX
field_14636
getSkeletonTrapTicks
skeletonTrapTime
private float
bY
field_6888
eatingGrassAnimationProgress
headLean
private float
bZ
field_6889
lastEatingGrassAnimationProgress
prevHeadLean
private float
ca
field_6890
angryAnimationProgress
rearingAmount
private float
cb
field_6891
lastAngryAnimationProgress
prevRearingAmount
private float
cc
field_6892
eatingAnimationProgress
mouthOpenness
private float
cd
field_6893
lastEatingAnimationProgress
prevMouthOpenness
private int
ce
field_6894
soundTicks
gallopTime
private String
cf
field_6895
baseTexturePath
texturePrefix
private final String[]
cg
field_6896
armoredTexturePaths
horseTexturesArray
private boolean
ch
field_11974
hasArmoredTexture
hasTexture

Constructor summary

ModifierConstructor
public (World arg0)

Method summary

Modifier and TypeMethod
protected void
r()
method_13087()
initGoals()
initEntityAI()
protected void
i()
method_2484()
registerSyncedData()
entityInit()
public void
a(wt arg0)
method_13126(class_2977 arg0)
setType(HorseType type)
setType(HorseType armorType)
public HorseType
de()
method_13129()
getType()
getType()
public void
g(int arg0)
method_6293(int arg0)
setVariant(int variant)
setHorseVariant(int variant)
public int
df()
method_6236()
getVariant()
getHorseVariant()
public String
h_()
method_2518()
getName()
getName()
private boolean
o(int arg0)
method_6301(int arg0)
getHorseFlag(int flag)
getHorseWatchableBoolean(int arg0)
private void
c(int arg0, boolean arg1)
method_6233(int arg0, boolean arg1)
setHorseFlag(int flag, boolean value)
setHorseWatchableBoolean(int arg0, boolean arg1)
public boolean
dg()
method_6237()
isOldEnoughForBreeding()
isAdultHorse()
public boolean
dh()
method_6238()
isTame()
isTame()
public boolean
di()
method_6254()
acceptsFoodFromPassenger()
isRidable()
public UUID
dm()
method_13130()
getOwnerUuid()
getOwnerUniqueId()
public void
b(UUID arg0)
method_13127(UUID arg0)
setOwnerName(UUID ownerUuid)
setOwnerUniqueId(UUID uniqueId)
public float
dn()
method_6256()
getSize()
getHorseSize()
public void
a(boolean arg0)
method_5377(boolean arg0)
setAgeSize(boolean arg0)
setScaleForAge(boolean arg0)
public boolean
do()
method_6257()
isInAir()
isHorseJumping()
public void
p(boolean arg0)
method_6282(boolean arg0)
setTame(boolean tame)
setHorseTamed(boolean tamed)
public void
q(boolean arg0)
method_6283(boolean arg0)
setInAir(boolean inAir)
setHorseJumping(boolean jumping)
public boolean
a(zs arg0)
method_2537(class_988 arg0)
isTameable(PlayerEntity arg0)
canBeLeashedTo(EntityPlayer arg0)
protected void
q(float arg0)
method_6175(float arg0)
updateForLeashLength(float arg0)
onLeashDistance(float arg0)
public boolean
dp()
method_6258()
hasChest()
isChested()
public HorseArmorTier
dq()
method_13131()
getArmorTier()
getHorseArmorType()
public boolean
dr()
method_6260()
isEatingHay()
isEatingHaystack()
public boolean
ds()
method_6261()
isAngry()
isRearing()
public boolean
dt()
method_6262()
isBred()
isBreeding()
public boolean
du()
method_6263()
hasBred()
getHasReproduced()
public void
f(adz arg0)
method_8390(class_1071 arg0)
setArmor(ItemStack item)
setHorseArmorStack(ItemStack itemStackIn)
public void
r(boolean arg0)
method_6284(boolean arg0)
setBred(boolean bred)
setBreeding(boolean breeding)
public void
s(boolean arg0)
method_6285(boolean arg0)
setHasChest(boolean hasChest)
setChested(boolean chested)
public void
t(boolean arg0)
method_6286(boolean arg0)
setHasBred(boolean hasBred)
setHasReproduced(boolean hasReproducedIn)
public void
u(boolean arg0)
method_6287(boolean arg0)
setSaddled(boolean saddled)
setHorseSaddled(boolean saddled)
public int
dv()
method_6264()
getTemper()
getTemper()
public void
m(int arg0)
method_6297(int arg0)
setTemper(int temper)
setTemper(int temperIn)
public int
n(int arg0)
method_6298(int arg0)
addTemper(int amount)
increaseTemper(int arg0)
public boolean
a(rh arg0, float arg1)
method_2499(class_856 arg0, float arg1)
takeDamage(DamageSource arg0, float arg1)
attackEntityFrom(DamageSource arg0, float arg1)
public boolean
ar()
method_2472()
isPushable()
canBePushed()
public boolean
dw()
method_6265()
getSpawnBiome()
prepareChunkForSpawn()
public void
dx()
method_6266()
dropChest()
dropChests()
private void
dM()
method_6241()
playEatingAnimation()
eatingHorse()
public void
e(float arg0, float arg1)
method_2490(float arg0, float arg1)
takeFallDamage(float arg0, float arg1)
fall(float arg0, float arg1)
private int
dN()
method_6242()
getInventorySize()
getChestSize()
private void
dO()
method_6243()
updateInventory()
initHorseChest()
private void
dP()
method_6244()
updateSaddle()
updateHorseSlots()
public void
a(ra arg0)
method_2391(class_852 arg0)
onInventoryChanged(SimpleInventory arg0)
onInventoryChanged(InventoryBasic arg0)
public boolean
cK()
method_2637()
canSpawn()
getCanSpawnHere()
protected HorseBaseEntity
a(rw arg0, double arg1)
method_6231(class_864 arg0, double arg1)
findNearestEntity(Entity entity, double stretch)
getClosestHorse(Entity entityIn, double distance)
public double
dy()
method_6267()
getCustomJumpStrength()
getHorseJumpStrength()
protected SoundEvent
bW()
method_13049()
getDeathSound()
getDeathSound()
protected SoundEvent
bV()
method_13048()
getHurtSound()
getHurtSound()
public boolean
dz()
method_6268()
isSaddled()
isHorseSaddled()
protected SoundEvent
G()
method_2603()
getAmbientSound()
getAmbientSound()
protected SoundEvent
dA()
method_13132()
getAngrySound()
getAngrySound()
protected void
a(cm arg0, akf arg1)
method_10936(class_2552 arg0, class_197 arg1)
playStepSound(BlockPos arg0, Block arg1)
playStepSound(BlockPos arg0, Block arg1)
protected void
bD()
method_6129()
initAttributes()
applyEntityAttributes()
public int
cO()
method_2639()
getLimitPerChunk()
getMaxSpawnedInChunk()
public int
dB()
method_6270()
getMaxTemper()
getMaxTemper()
protected float
ch()
method_2602()
getSoundVolume()
getSoundVolume()
public int
C()
method_2594()
getAmbientSoundInterval()
getTalkInterval()
private void
dQ()
method_6245()
deleteName()
resetTexturePrefix()
public void
f(zs arg0)
method_6279(class_988 arg0)
openInventory(PlayerEntity player)
openGUI(EntityPlayer playerEntity)
public boolean
a(zs arg0, qr arg1, adz arg2)
method_13079(class_988 arg0, class_2961 arg1, class_1071 arg2)
interactMob(PlayerEntity arg0, InteractionHand arg1, ItemStack arg2)
processInteract(EntityPlayer arg0, EnumHand arg1, ItemStack arg2)
private void
h(zs arg0)
method_6281(class_988 arg0)
putPlayerOnBack(PlayerEntity player)
mountTo(EntityPlayer player)
protected boolean
cj()
method_2610()
isDead()
isMovementBlocked()
public boolean
e(adz arg0)
method_2853(class_1071 arg0)
isBreedingItem(ItemStack arg0)
isBreedingItem(ItemStack arg0)
private void
dS()
method_6247()
setType()
moveTail()
public void
a(rh arg0)
method_2580(class_856 arg0)
die(DamageSource arg0)
onDeath(DamageSource arg0)
public void
n()
method_2651()
mobTick()
onLivingUpdate()
public void
m()
method_2558()
tick()
onUpdate()
private void
dT()
method_6248()
setEating()
openHorseMouth()
private boolean
dU()
method_6249()
canBreed()
canMate()
public void
v(boolean arg0)
method_6288(boolean arg0)
setEatingHay(boolean eatingHay)
setEatingHaystack(boolean arg0)
public void
w(boolean arg0)
method_6291(boolean arg0)
setAngry(boolean angry)
setRearing(boolean rearing)
private void
dV()
method_6250()
updateAnger()
makeHorseRear()
public void
dJ()
method_6239()
playAngrySound()
makeHorseRearWithSound()
public void
dK()
method_6240()
dropInventoryAndChest()
dropChestItems()
private void
a(rw arg0, abe arg1)
method_6232(class_864 arg0, class_1719 arg1)
dropInventory(Entity entity, AnimalInventory inventory)
dropItemsInChest(Entity entityIn, AnimalChest animalChestIn)
public boolean
g(zs arg0)
method_6280(class_988 arg0)
bondWithPlayer(PlayerEntity player)
setTamedBy(EntityPlayer player)
public void
g(float arg0, float arg1)
method_2657(float arg0, float arg1)
moveRelative(float arg0, float arg1)
moveEntityWithHeading(float arg0, float arg1)
public static void
b(pd arg0)
method_13515(class_2934 arg0)
registerSchema(DataFixerUpper dfu)
registerFixesHorse(DataFixer fixer)
public void
b(dr arg0)
method_2528(class_322 arg0)
writeCustomNbt(NbtCompound arg0)
writeEntityToNBT(NBTTagCompound arg0)
public void
a(dr arg0)
method_2498(class_322 arg0)
readCustomNbt(NbtCompound arg0)
readEntityFromNBT(NBTTagCompound arg0)
public boolean
a(wc arg0)
method_2852(class_942 arg0)
canBreedWith(AnimalEntity arg0)
canMateWith(EntityAnimal arg0)
public PassiveEntity
a(rt arg0)
method_4440(class_862 arg0)
makeChild(PassiveEntity arg0)
createChild(EntityAgeable arg0)
public EntityData
a(qq arg0, si arg1)
method_6156(class_2607 arg0, class_1700 arg1)
initialize(LocalDifficulty arg0, EntityData arg1)
onInitialSpawn(DifficultyInstance arg0, IEntityLivingData arg1)
public boolean
cP()
method_4476()
canBeControlledByRider()
canBeSteered()
public boolean
b()
method_13089()
canJump()
canJump()
public void
b(int arg0)
method_13090(int arg0)
startJumping(int arg0)
handleStartJump(int arg0)
public void
r_()
method_13091()
stopJumping()
handleStopJump()
public void
k(rw arg0)
method_13009(class_864 arg0)
updateRiderPositon(Entity arg0)
updatePassenger(Entity arg0)
public double
ay()
method_2481()
getMountHeight()
getMountedYOffset()
private float
dW()
method_6251()
getChildHealthBonus()
getModifiedMaxHealth()
private double
dX()
method_6252()
getChildJumpStrengthBonus()
getModifiedJumpStrength()
private double
dY()
method_6253()
getMovementSpeedBonus()
getModifiedMovementSpeed()
public boolean
dL()
method_13128()
isSkeletonTrap()
isSkeletonTrap()
public void
y(boolean arg0)
method_13133(boolean arg0)
setSkeletonTrap(boolean skeletonTrap)
setSkeletonTrap(boolean skeletonTrapIn)
public boolean
m_()
method_2660()
isClimbing()
isOnLadder()
public float
bq()
method_2544()
getEyeHeight()
getEyeHeight()
public boolean
c(int arg0, adz arg1)
method_10956(int arg0, class_1071 arg1)
replaceItem(int arg0, ItemStack arg1)
replaceItemInInventory(int arg0, ItemStack arg1)
public Entity
bw()
method_12999()
getControllingPassenger()
getControllingPassenger()
public MobType
ce()
method_2647()
getMobType()
getCreatureAttribute()
protected Identifier
J()
method_13074()
getDefaultLootTable()
getLootTable()
public boolean
dC()
method_6271()
hasArmor()
hasLayeredTextures()
public boolean
dD()
method_11071()
hasArmoredTexture()
hasTexture()
private void
dR()
method_6246()
updateTexturePaths()
setHorseTexturePaths()
public String
dE()
method_6272()
getBaseTexturePath()
getHorseTexture()
public String[]
dF()
method_6273()
getArmoredTexturePaths()
getVariantTexturePaths()
public float
r(float arg0)
method_6289(float arg0)
getGrassAnimationProgress(float tickDelta)
getGrassEatingAmount(float arg0)
public float
s(float arg0)
method_6292(float arg0)
getAngryAnimationProgress(float tickDelta)
getRearingAmount(float arg0)
public float
t(float arg0)
method_6295(float arg0)
getEatingAnimationProgress(float tickDelta)
getMouthOpennessAngle(float arg0)
public void
a_(int arg0)
method_6299(int arg0)
setJumpStrength(int arg0)
setJumpPower(int arg0)
protected void
x(boolean arg0)
method_6294(boolean arg0)
addTamingParticles(boolean success)
spawnHorseParticles(boolean arg0)
public void
a(byte arg0)
method_2485(byte arg0)
doEvent(byte arg0)
handleStatusUpdate(byte arg0)