net.minecraft.world.entity.animal.horse

public abstract class AbstractHorse

extends Animal implements ContainerListener, HasCustomInventoryScreen, PlayerRideableJumping, Saddleable

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource, ContainerListener, HasCustomInventoryScreen, PlayerRideableJumping, PlayerRideable, Saddleable

brn
net.minecraft.world.entity.animal.horse.AbstractHorse
net.minecraft.class_1496
net.minecraft.entity.passive.AbstractHorseEntity
net.minecraft.src.C_926_
net.minecraft.world.entity.animal.horse.EntityHorseAbstract

Field summary

Modifier and TypeField
public static final int
ci
EQUIPMENT_SLOT_OFFSET
field_30413
field_30413
f_149486_
public static final int
cj
CHEST_SLOT_OFFSET
field_30414
field_30414
f_149487_
public static final int
ck
INVENTORY_SLOT_OFFSET
field_30415
field_30415
f_149488_
private static final Predicate<LivingEntity>
bX
PARENT_HORSE_SELECTOR
field_6956
IS_BRED_HORSE
f_30525_
private static final TargetingConditions
bY
MOMMY_TARGETING
field_18118
PARENT_HORSE_PREDICATE
f_30526_
private static final Ingredient
ca
FOOD_ITEMS
field_25374
BREEDING_INGREDIENT
f_30527_
private static final EntityDataAccessor<Byte>
cb
DATA_ID_FLAGS
field_6959
HORSE_FLAGS
f_30528_
private static final EntityDataAccessor<Optional<UUID>>
cc
DATA_ID_OWNER_UUID
field_6972
OWNER_UUID
f_30506_
private static final int
cd
FLAG_TAME
field_30419
TAMED_FLAG
f_149492_
private static final int
ce
FLAG_SADDLE
field_30420
SADDLED_FLAG
f_149493_
private static final int
cf
FLAG_BRED
field_30421
BRED_FLAG
f_149494_
private static final int
cg
FLAG_EATING
field_30422
EATING_GRASS_FLAG
f_149495_
private static final int
ch
FLAG_STANDING
field_30423
ANGRY_FLAG
f_149496_
private static final int
cx
FLAG_OPEN_MOUTH
field_30424
EATING_FLAG
f_149497_
public static final int
cl
INV_SLOT_SADDLE
field_30416
field_30416
f_149489_
public static final int
cm
INV_SLOT_ARMOR
field_30417
field_30417
f_149490_
public static final int
cn
INV_BASE_COUNT
field_30418
field_30418
f_149491_
private int
cy
eatingCounter
field_6971
eatingGrassTicks
f_30507_
private int
cz
mouthCounter
field_6973
eatingTicks
f_30508_
private int
cA
standCounter
field_6970
angryTicks
f_30509_
public int
co
tailCounter
field_6957
tailWagTicks
f_30517_
public int
cp
sprintCounter
field_6958
field_6958
f_30518_
protected boolean
cq
isJumping
field_6968
inAir
f_30519_
protected SimpleContainer
cr
inventory
field_6962
items
f_30520_
protected int
cs
temper
field_6955
temper
f_30521_
protected float
ct
playerJumpPendingScale
field_6976
jumpStrength
f_30522_
protected boolean
cu
allowStandSliding
field_6960
jumping
f_30510_
private float
cB
eatAnim
field_6969
eatingGrassAnimationProgress
f_30511_
private float
cC
eatAnimO
field_6966
lastEatingGrassAnimationProgress
f_30512_
private float
cD
standAnim
field_6967
angryAnimationProgress
f_30513_
private float
cE
standAnimO
field_6963
lastAngryAnimationProgress
f_30514_
private float
cF
mouthAnim
field_6965
eatingAnimationProgress
f_30515_
private float
cG
mouthAnimO
field_6961
lastEatingAnimationProgress
f_30516_
protected boolean
cv
canGallop
field_6964
playExtraHorseSounds
f_30523_
protected int
cw
gallopSoundCounter
field_6975
soundTicks
f_30524_

Constructor summary

ModifierConstructor
protected (EntityType<? extends AbstractHorse> p_30532_, Level arg1)

Method summary

Modifier and TypeMethod
protected void
u()
registerGoals()
method_5959()
initGoals()
m_8099_()
protected void
gd()
addBehaviourGoals()
method_6764()
initCustomGoals()
m_7509_()
protected void
a_()
defineSynchedData()
method_5693()
initDataTracker()
m_8097_()
protected boolean
t(int arg0)
getFlag(int arg0)
method_6730(int arg0)
getHorseFlag(int bitmask)
m_30647_(int arg0)
protected void
d(int arg0, boolean arg1)
setFlag(int arg0, boolean arg1)
method_6769(int arg0, boolean arg1)
setHorseFlag(int bitmask, boolean flag)
m_30597_(int p_30599_, boolean arg1)
public boolean
gc()
isTamed()
method_6727()
isTame()
m_30614_()
public UUID
ge()
getOwnerUUID()
method_6768()
getOwnerUuid()
m_30615_()
public void
b(UUID arg0)
setOwnerUUID(UUID arg0)
method_6732(UUID arg0)
setOwnerUuid(UUID uuid)
m_30586_(UUID arg0)
public boolean
gf()
isJumping()
method_6763()
isInAir()
m_30616_()
public void
w(boolean arg0)
setTamed(boolean arg0)
method_6766(boolean arg0)
setTame(boolean tame)
m_30651_(boolean arg0)
public void
x(boolean arg0)
setIsJumping(boolean arg0)
method_6758(boolean arg0)
setInAir(boolean inAir)
m_30655_(boolean arg0)
protected void
y(float arg0)
onLeashDistance(float arg0)
method_6142(float arg0)
updateForLeashLength(float arg0)
m_7880_(float arg0)
public boolean
gg()
isEating()
method_6724()
isEatingGrass()
m_30617_()
public boolean
gh()
isStanding()
method_6736()
isAngry()
m_30622_()
public boolean
gi()
isBred()
method_6744()
isBred()
m_30623_()
public void
y(boolean arg0)
setBred(boolean arg0)
method_6751(boolean arg0)
setBred(boolean bred)
m_30657_(boolean arg0)
public boolean
d()
isSaddleable()
method_6765()
canBeSaddled()
m_6741_()
public void
a(alp arg0)
equipSaddle(SoundSource arg0)
method_6576(class_3419 arg0)
saddle(SoundCategory arg0)
m_5853_(C_125_ arg0)
public void
b(bwp arg0, cdt arg1)
equipArmor(Player arg0, ItemStack arg1)
method_45375(class_1657 arg0, class_1799 arg1)
equipHorseArmor(PlayerEntity player, ItemStack stack)
m_246861_(C_1141_ p_248855_, C_1391_ arg1)
public boolean
g()
isSaddled()
method_6725()
isSaddled()
m_6254_()
public int
gj()
getTemper()
method_6729()
getTemper()
m_30624_()
public void
u(int arg0)
setTemper(int arg0)
method_6749(int arg0)
setTemper(int temper)
m_30649_(int arg0)
public int
v(int arg0)
modifyTemper(int arg0)
method_6745(int arg0)
addTemper(int difference)
m_30653_(int arg0)
public boolean
bo()
isPushable()
method_5810()
isPushable()
m_6094_()
private void
p()
eating()
method_6733()
playEatingAnimation()
m_30610_()
public boolean
a(float arg0, float arg1, bcz arg2)
causeFallDamage(float arg0, float arg1, DamageSource arg2)
method_5747(float arg0, float arg1, class_1282 arg2)
handleFallDamage(float arg0, float arg1, DamageSource arg2)
m_142535_(float p_149500_, float p_149501_, C_489_ arg2)
protected int
d(float arg0, float arg1)
calculateFallDamage(float arg0, float arg1)
method_23329(float arg0, float arg1)
computeFallDamage(float arg0, float arg1)
m_5639_(float p_30607_, float arg1)
protected int
L_()
getInventorySize()
method_6750()
getInventorySize()
m_7506_()
protected void
gk()
createInventory()
method_6721()
onChestedStatusChanged()
m_30625_()
protected void
gl()
updateContainerEquipment()
method_6731()
updateSaddle()
m_7493_()
public void
a(bcf arg0)
containerChanged(Container arg0)
method_5453(class_1263 arg0)
onInventoryChanged(Inventory arg0)
m_5757_(C_464_ arg0)
public double
gm()
getCustomJump()
method_6771()
getJumpStrength()
m_30626_()
public boolean
a(bcz arg0, float arg1)
hurt(DamageSource arg0, float arg1)
method_5643(class_1282 arg0, float arg1)
damage(DamageSource arg0, float arg1)
m_6469_(C_489_ p_250984_, float arg1)
protected boolean
fO()
canPerformRearing()
method_45349()
shouldAmbientStand()
m_245259_()
protected SoundEvent
fU()
getEatingSound()
method_28368()
getEatSound()
m_7872_()
protected SoundEvent
gn()
getAngrySound()
method_6747()
getAngrySound()
m_7871_()
protected void
b(gp arg0, cyt arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
m_7355_(C_4675_ p_30585_, C_2064_ arg1)
protected void
a(ctz arg0)
playGallopSound(SoundType arg0)
method_6761(class_2498 arg0)
playWalkSound(BlockSoundGroup group)
m_5877_(C_1914_ arg0)
public static AttributeSupplier$Builder
go()
createBaseHorseAttributes()
method_26899()
createBaseHorseAttributes()
m_30627_()
public int
Y()
getMaxSpawnClusterSize()
method_5945()
getLimitPerChunk()
m_5792_()
public int
gp()
getMaxTemper()
method_6755()
getMaxTemper()
m_7555_()
protected float
eI()
getSoundVolume()
method_6107()
getSoundVolume()
m_6121_()
public int
K()
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
m_8100_()
public void
b(bwp arg0)
openCustomInventoryScreen(Player arg0)
method_6722(class_1657 arg0)
openInventory(PlayerEntity arg0)
m_213583_(C_1141_ arg0)
public InteractionResult
c(bwp arg0, cdt arg1)
fedFood(Player arg0, ItemStack arg1)
method_30009(class_1657 arg0, class_1799 arg1)
interactHorse(PlayerEntity player, ItemStack stack)
m_30580_(C_1141_ p_30582_, C_1391_ arg1)
protected boolean
a(bwp arg0, cdt arg1)
handleEating(Player arg0, ItemStack arg1)
method_6742(class_1657 arg0, class_1799 arg1)
receiveFood(PlayerEntity player, ItemStack item)
m_5994_(C_1141_ p_30594_, C_1391_ arg1)
protected void
e(bwp arg0)
doPlayerRide(Player arg0)
method_6726(class_1657 arg0)
putPlayerOnBack(PlayerEntity player)
m_6835_(C_1141_ arg0)
public boolean
eK()
isImmobile()
method_6062()
isImmobile()
m_6107_()
public boolean
n(cdt arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
private void
t()
moveTail()
method_6759()
wagTail()
m_30611_()
protected void
en()
dropEquipment()
method_16078()
dropInventory()
m_5907_()
public void
b_()
aiStep()
method_6007()
tickMovement()
m_8107_()
protected void
gq()
followMommy()
method_6746()
walkToParent()
m_7567_()
public boolean
gr()
canEatGrass()
method_6762()
eatsGrass()
m_7559_()
public void
l()
tick()
method_5773()
tick()
m_8119_()
public InteractionResult
b(bwp arg0, bcl arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
m_6071_(C_1141_ p_248927_, C_470_ arg1)
private void
fN()
openMouth()
method_6738()
setEating()
m_30612_()
public void
z(boolean arg0)
setEating(boolean arg0)
method_6740(boolean arg0)
setEatingGrass(boolean eatingGrass)
m_30661_(boolean arg0)
public void
A(boolean arg0)
setStanding(boolean arg0)
method_6737(boolean arg0)
setAngry(boolean angry)
m_30665_(boolean arg0)
public SoundEvent
gs()
getAmbientStandSound()
method_45376()
getAmbientStandSound()
m_247131_()
public void
gt()
standIfPossible()
method_6748()
updateAnger()
m_247525_()
public void
gu()
makeMad()
method_6757()
playAngrySound()
m_7564_()
public boolean
g(bwp arg0)
tameWithName(Player arg0)
method_6752(class_1657 arg0)
bondWithPlayer(PlayerEntity player)
m_30637_(C_1141_ arg0)
public void
h(eae arg0)
travel(Vec3 arg0)
method_6091(class_243 arg0)
travel(Vec3d arg0)
m_7023_(C_3046_ arg0)
protected float
l(beg arg0)
getDrivenMovementSpeed(LivingEntity arg0)
method_45358(class_1309 arg0)
getHorsebackMovementSpeed(LivingEntity passenger)
m_245547_(C_524_ arg0)
protected boolean
m(beg arg0)
mountIgnoresControllerInput(LivingEntity arg0)
method_45359(class_1309 arg0)
ignoresMovementInput(LivingEntity passenger)
m_245701_(C_524_ arg0)
protected void
a(float arg0, float arg1, float arg2)
executeRidersJump(float arg0, float arg1, float arg2)
method_45343(float arg0, float arg1, float arg2)
jump(float strength, float sidewaysSpeed, float forwardSpeed)
m_245980_(float p_249281_, float p_251655_, float arg2)
protected void
gv()
playJumpSound()
method_6723()
playJumpSound()
m_7486_()
public void
b(qp arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(qp arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public boolean
a(bpo arg0)
canMate(Animal arg0)
method_6474(class_1429 arg0)
canBreedWith(AnimalEntity arg0)
m_7848_(C_801_ arg0)
protected boolean
gw()
canParent()
method_6734()
canBreed()
m_30628_()
public AgeableMob
a(ahm arg0, bdo arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
m_142606_(C_12_ p_149507_, C_141062_ arg1)
protected void
a(bdo arg0, brn arg1)
setOffspringAttributes(AgeableMob arg0, AbstractHorse arg1)
method_6743(class_1296 arg0, class_1496 arg1)
setChildAttributes(PassiveEntity mate, AbstractHorseEntity child)
m_149508_(C_141062_ p_149510_, C_926_ arg1)
public float
z(float arg0)
getEatAnim(float arg0)
method_6739(float arg0)
getEatingGrassAnimationProgress(float tickDelta)
m_30663_(float arg0)
public float
A(float arg0)
getStandAnim(float arg0)
method_6767(float arg0)
getAngryAnimationProgress(float tickDelta)
m_30667_(float arg0)
public float
B(float arg0)
getMouthAnim(float arg0)
method_6772(float arg0)
getEatingAnimationProgress(float tickDelta)
m_30533_(float arg0)
public void
a(int arg0)
onPlayerJump(int arg0)
method_6154(int arg0)
setJumpStrength(int arg0)
m_7888_(int arg0)
public boolean
a(bwp arg0)
canJump(Player arg0)
method_6153(class_1657 arg0)
canJump(PlayerEntity arg0)
m_7132_(C_1141_ arg0)
public void
b(int arg0)
handleStartJump(int arg0)
method_6155(int arg0)
startJumping(int arg0)
m_7199_(int arg0)
public void
a()
handleStopJump()
method_6156()
stopJumping()
m_8012_()
protected void
B(boolean arg0)
spawnTamingParticles(boolean arg0)
method_6760(boolean arg0)
spawnPlayerReactionParticles(boolean positive)
m_30669_(boolean arg0)
public void
a(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
m_7822_(byte arg0)
public void
i(bdr arg0)
positionRider(Entity arg0)
method_5865(class_1297 arg0)
updatePassengerPosition(Entity arg0)
m_7332_(C_507_ arg0)
protected float
b(aoh arg0)
generateRandomMaxHealth(RandomSource arg0)
method_6754(class_5819 arg0)
getChildHealthBonus(Random random)
m_218805_(C_212974_ arg0)
protected double
c(aoh arg0)
generateRandomJumpStrength(RandomSource arg0)
method_6774(class_5819 arg0)
getChildJumpStrengthBonus(Random random)
m_218809_(C_212974_ arg0)
protected double
d(aoh arg0)
generateRandomSpeed(RandomSource arg0)
method_6728(class_5819 arg0)
getChildMovementSpeedBonus(Random random)
m_218811_(C_212974_ arg0)
public boolean
y_()
onClimbable()
method_6101()
isClimbing()
m_6147_()
protected float
b(bes arg0, bds arg1)
getStandingEyeHeight(Pose arg0, EntityDimensions arg1)
method_18394(class_4050 arg0, class_4048 arg1)
getActiveEyeHeight(EntityPose arg0, EntityDimensions arg1)
m_6431_(C_535_ p_30579_, C_510_ arg1)
public boolean
gx()
canWearArmor()
method_6735()
hasArmorSlot()
m_7482_()
public boolean
gy()
isWearingArmor()
method_6753()
hasArmorInSlot()
m_7481_()
public boolean
m(cdt arg0)
isArmor(ItemStack arg0)
method_6773(class_1799 arg0)
isHorseArmor(ItemStack item)
m_6010_(C_1391_ arg0)
private SlotAccess
a(int arg0, Predicate<cdt> arg1)
createEquipmentSlotAccess(int arg0, Predicate<ItemStack> arg1)
method_32335(int arg0, Predicate<class_1799> arg1)
createInventoryStackReference(int slot, Predicate<ItemStack> predicate)
m_149502_(int p_149504_, Predicate<C_1391_> arg1)
public SlotAccess
k(int arg0)
getSlot(int arg0)
method_32318(int arg0)
getStackReference(int arg0)
m_141942_(int arg0)
public LivingEntity
fV()
getControllingPassenger()
method_42167()
getPrimaryPassenger()
m_6688_()
private Vec3
a(eae arg0, beg arg1)
getDismountLocationInDirection(Vec3 arg0, LivingEntity arg1)
method_27930(class_243 arg0, class_1309 arg1)
locateSafeDismountingPos(Vec3d offset, LivingEntity passenger)
m_30561_(C_3046_ p_30563_, C_524_ arg1)
public Vec3
b(beg arg0)
getDismountLocationForPassenger(LivingEntity arg0)
method_24829(class_1309 arg0)
updatePassengerForDismount(LivingEntity arg0)
m_7688_(C_524_ arg0)
protected void
a(aoh arg0)
randomizeAttributes(RandomSource arg0)
method_6001(class_5819 arg0)
initAttributes(Random random)
m_214179_(C_212974_ arg0)
public SpawnGroupData
a(ckl arg0, bck arg1, bek arg2, bez arg3, qp arg4)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, MobSpawnType arg2, SpawnGroupData arg3, CompoundTag arg4)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3, class_2487 arg4)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3, NbtCompound arg4)
m_6518_(C_1618_ p_30556_, C_469_ p_30557_, C_529_ p_30558_, C_542_ p_30559_, C_4917_ arg4)
public boolean
b(bcf arg0)
hasInventoryChanged(Container arg0)
method_33338(class_1263 arg0)
areInventoriesDifferent(Inventory inventory)
m_149511_(C_464_ arg0)
public int
gz()
getAmbientStandInterval()
method_45377()
getMinAmbientStandDelay()
m_247558_()