net.minecraft.world.entity.animal.horse

public abstract class AbstractHorse

extends Animal implements ContainerListener, HasCustomInventoryScreen, OwnableEntity, PlayerRideableJumping, Saddleable

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, Attackable, EquipmentUser, Leashable, Targeting, ContainerListener, HasCustomInventoryScreen, OwnableEntity, PlayerRideableJumping, PlayerRideable, Saddleable

ckb
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
ck
EQUIPMENT_SLOT_OFFSET
field_30413
field_30413
f_149486_
public static final int
cl
CHEST_SLOT_OFFSET
field_30414
field_30414
f_149487_
public static final int
cm
INVENTORY_SLOT_OFFSET
field_30415
field_30415
f_149488_
public static final double
cn
BREEDING_CROSS_FACTOR
field_42647
field_42647
f_271338_
private static final float
bZ
MIN_MOVEMENT_SPEED
field_42641
MIN_MOVEMENT_SPEED_BONUS
f_271139_
private static final float
ca
MAX_MOVEMENT_SPEED
field_42642
MAX_MOVEMENT_SPEED_BONUS
f_271541_
private static final float
cb
MIN_JUMP_STRENGTH
field_42643
MIN_JUMP_STRENGTH_BONUS
f_271305_
private static final float
cd
MAX_JUMP_STRENGTH
field_42644
MAX_JUMP_STRENGTH_BONUS
f_271293_
private static final float
ce
MIN_HEALTH
field_42645
MIN_HEALTH_BONUS
f_271313_
private static final float
cf
MAX_HEALTH
field_42646
MAX_HEALTH_BONUS
f_271308_
private static final float
cg
BACKWARDS_MOVE_SPEED_FACTOR
field_42979
field_42979
f_273870_
private static final float
ch
SIDEWAYS_MOVE_SPEED_FACTOR
field_42980
field_42980
f_273946_
private static final TargetingConditions$Selector
ci
PARENT_HORSE_SELECTOR
field_6956
IS_BRED_HORSE
f_30525_
private static final TargetingConditions
cj
MOMMY_TARGETING
field_18118
PARENT_HORSE_PREDICATE
f_30526_
private static final EntityDataAccessor<Byte>
cC
DATA_ID_FLAGS
field_6959
HORSE_FLAGS
f_30528_
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
cI
FLAG_OPEN_MOUTH
field_30424
EATING_FLAG
f_149497_
public static final int
co
INV_SLOT_SADDLE
field_30416
field_30416
f_149489_
public static final int
cp
INV_BASE_COUNT
field_30418
field_30418
f_149491_
public static final int
cq
INVENTORY_ROWS
field_52488
field_52488
f_349286_
private int
cJ
eatingCounter
field_6971
eatingGrassTicks
f_30507_
private int
cK
mouthCounter
field_6973
eatingTicks
f_30508_
private int
cL
standCounter
field_6970
angryTicks
f_30509_
public int
cr
tailCounter
field_6957
tailWagTicks
f_30517_
public int
cs
sprintCounter
field_6958
field_6958
f_30518_
protected boolean
ct
isJumping
field_6968
inAir
f_30519_
protected SimpleContainer
cu
inventory
field_6962
items
f_30520_
protected int
cv
temper
field_6955
temper
f_30521_
protected float
cw
playerJumpPendingScale
field_6976
jumpStrength
f_30522_
protected boolean
cx
allowStandSliding
field_6960
jumping
f_30510_
private float
cM
eatAnim
field_6969
eatingGrassAnimationProgress
f_30511_
private float
cN
eatAnimO
field_6966
lastEatingGrassAnimationProgress
f_30512_
private float
cO
standAnim
field_6967
angryAnimationProgress
f_30513_
private float
cP
standAnimO
field_6963
lastAngryAnimationProgress
f_30514_
private float
cQ
mouthAnim
field_6965
eatingAnimationProgress
f_30515_
private float
cR
mouthAnimO
field_6961
lastEatingAnimationProgress
f_30516_
protected boolean
cy
canGallop
field_6964
playExtraHorseSounds
f_30523_
protected int
cz
gallopSoundCounter
field_6975
soundTicks
f_30524_
private UUID
cS
owner
field_42462
ownerUuid
f_268614_
private final Container
cT
bodyArmorAccess
field_48830
armorInventory
f_314558_

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
B()
registerGoals()
method_5959()
initGoals()
m_8099_()
protected void
gG()
addBehaviourGoals()
method_6764()
initCustomGoals()
m_7509_()
protected void
a(alg$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
protected boolean
s(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
gF()
isTamed()
method_6727()
isTame()
m_30614_()
public UUID
ab_()
getOwnerUUID()
method_6139()
getOwnerUuid()
m_21805_()
public void
b(UUID arg0)
setOwnerUUID(UUID arg0)
method_6732(UUID arg0)
setOwnerUuid(UUID ownerUuid)
m_30586_(UUID arg0)
public boolean
gH()
isJumping()
method_6763()
isInAir()
m_30616_()
public void
y(boolean arg0)
setTamed(boolean arg0)
method_6766(boolean arg0)
setTame(boolean tame)
m_30651_(boolean arg0)
public void
z(boolean arg0)
setIsJumping(boolean arg0)
method_6758(boolean arg0)
setInAir(boolean inAir)
m_30655_(boolean arg0)
public boolean
a(bvk arg0, float arg1)
handleLeashAtDistance(Entity arg0, float arg1)
method_60956(class_1297 arg0, float arg1)
beforeLeashTick(Entity arg0, float arg1)
m_338665_(C_507_ p_342991_, float arg1)
public boolean
gI()
isEating()
method_6724()
isEatingGrass()
m_30617_()
public boolean
gJ()
isStanding()
method_6736()
isAngry()
m_30622_()
public boolean
gK()
isBred()
method_6744()
isBred()
m_30623_()
public void
A(boolean arg0)
setBred(boolean arg0)
method_6751(boolean arg0)
setBred(boolean bred)
m_30657_(boolean arg0)
public boolean
f()
isSaddleable()
method_6765()
canBeSaddled()
m_6741_()
public void
a(cxp arg0, axg arg1)
equipSaddle(ItemStack arg0, SoundSource arg1)
method_6576(class_1799 arg0, class_3419 arg1)
saddle(ItemStack arg0, SoundCategory arg1)
m_5853_(C_1391_ p_30546_, C_125_ arg1)
public void
b(cpx arg0, cxp arg1)
equipBodyArmor(Player arg0, ItemStack arg1)
method_45375(class_1657 arg0, class_1799 arg1)
equipHorseArmor(PlayerEntity player, ItemStack stack)
m_319774_(C_1141_ p_327797_, C_1391_ arg1)
protected boolean
f(bvs arg0)
canDispenserEquipIntoSlot(EquipmentSlot arg0)
method_63626(class_1304 arg0)
canDispenserEquipSlot(EquipmentSlot arg0)
m_218379_(C_516_ arg0)
public boolean
j()
isSaddled()
method_6725()
isSaddled()
m_6254_()
public int
gL()
getTemper()
method_6729()
getTemper()
m_30624_()
public void
t(int arg0)
setTemper(int arg0)
method_6749(int arg0)
setTemper(int temper)
m_30649_(int arg0)
public int
u(int arg0)
modifyTemper(int arg0)
method_6745(int arg0)
addTemper(int difference)
m_30653_(int arg0)
public boolean
bI()
isPushable()
method_5810()
isPushable()
m_6094_()
private void
p()
eating()
method_6733()
playEatingAnimation()
m_30610_()
public boolean
a(float arg0, float arg1, bua 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)
public final int
gM()
getInventorySize()
method_6750()
getInventorySize()
m_7506_()
public static int
v(int arg0)
getInventorySize(int arg0)
method_60977(int arg0)
getInventorySize(int columns)
m_339034_(int p_345108_)
protected void
gN()
createInventory()
method_6721()
onChestedStatusChanged()
m_30625_()
protected void
gO()
syncSaddleToClients()
method_56679()
updateSaddledFlag()
m_324195_()
public void
a(btc arg0)
containerChanged(Container arg0)
method_5453(class_1263 arg0)
onInventoryChanged(Inventory arg0)
m_5757_(C_464_ arg0)
public boolean
a(ash arg0, bua arg1, float arg2)
hurtServer(ServerLevel arg0, DamageSource arg1, float arg2)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
m_351622_(C_12_ p_368293_, C_489_ p_368244_, float arg2)
protected boolean
gp()
canPerformRearing()
method_45349()
shouldAmbientStand()
m_245259_()
protected SoundEvent
gq()
getEatingSound()
method_28368()
getEatSound()
m_7872_()
protected SoundEvent
gP()
getAngrySound()
method_6747()
getAngrySound()
m_7871_()
protected void
b(jh arg0, dxv 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)
private boolean
b(dsc arg0)
isWoodSoundType(SoundType arg0)
method_49996(class_2498 arg0)
isWooden(BlockSoundGroup soundGroup)
m_278175_(C_1914_ arg0)
protected void
a(dsc arg0)
playGallopSound(SoundType arg0)
method_6761(class_2498 arg0)
playWalkSound(BlockSoundGroup group)
m_5877_(C_1914_ arg0)
public static AttributeSupplier$Builder
gQ()
createBaseHorseAttributes()
method_26899()
createBaseHorseAttributes()
m_30627_()
public int
ad()
getMaxSpawnClusterSize()
method_5945()
getLimitPerChunk()
m_5792_()
public int
gR()
getMaxTemper()
method_6755()
getMaxTemper()
m_7555_()
protected float
fg()
getSoundVolume()
method_6107()
getSoundVolume()
m_6121_()
public int
Q()
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
m_8100_()
public void
b(cpx arg0)
openCustomInventoryScreen(Player arg0)
method_6722(class_1657 arg0)
openInventory(PlayerEntity arg0)
m_213583_(C_1141_ arg0)
public InteractionResult
c(cpx arg0, cxp 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(cpx arg0, cxp 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
a(cpx arg0)
doPlayerRide(Player arg0)
method_6726(class_1657 arg0)
putPlayerOnBack(PlayerEntity player)
m_6835_(C_1141_ arg0)
public boolean
fi()
isImmobile()
method_6062()
isImmobile()
m_6107_()
public boolean
j(cxp 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
f(ash arg0)
dropEquipment(ServerLevel arg0)
method_16078(class_3218 arg0)
dropInventory(ServerWorld arg0)
m_5907_(C_12_ arg0)
public void
d_()
aiStep()
method_6007()
tickMovement()
m_8107_()
protected void
g(ash arg0)
followMommy(ServerLevel arg0)
method_6746(class_3218 arg0)
walkToParent(ServerWorld world)
m_7567_(C_12_ arg0)
public boolean
gS()
canEatGrass()
method_6762()
eatsGrass()
m_7559_()
public void
h()
tick()
method_5773()
tick()
m_8119_()
public InteractionResult
b(cpx arg0, bti 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
x()
openMouth()
method_6738()
setEating()
m_30612_()
public void
B(boolean arg0)
setEating(boolean arg0)
method_6740(boolean arg0)
setEatingGrass(boolean eatingGrass)
m_30661_(boolean arg0)
public void
C(boolean arg0)
setStanding(boolean arg0)
method_6737(boolean arg0)
setAngry(boolean angry)
m_30665_(boolean arg0)
public SoundEvent
gT()
getAmbientStandSound()
method_45376()
getAmbientStandSound()
m_247131_()
public void
gU()
standIfPossible()
method_6748()
updateAnger()
m_247525_()
public void
gV()
makeMad()
method_6757()
playAngrySound()
m_7564_()
public boolean
g(cpx arg0)
tameWithName(Player arg0)
method_6752(class_1657 arg0)
bondWithPlayer(PlayerEntity player)
m_30637_(C_1141_ arg0)
protected void
a(cpx arg0, fby arg1)
tickRidden(Player arg0, Vec3 arg1)
method_49481(class_1657 arg0, class_243 arg1)
tickControlled(PlayerEntity arg0, Vec3d arg1)
m_274498_(C_1141_ p_275693_, C_3046_ arg1)
protected Vec2
j(bwg arg0)
getRiddenRotation(LivingEntity arg0)
method_49489(class_1309 arg0)
getControlledRotation(LivingEntity controllingPassenger)
m_274391_(C_524_ arg0)
protected Vec3
b(cpx arg0, fby arg1)
getRiddenInput(Player arg0, Vec3 arg1)
method_49482(class_1657 arg0, class_243 arg1)
getControlledMovementInput(PlayerEntity arg0, Vec3d arg1)
m_274312_(C_1141_ p_275506_, C_3046_ arg1)
protected float
e(cpx arg0)
getRiddenSpeed(Player arg0)
method_49485(class_1657 arg0)
getSaddledSpeed(PlayerEntity arg0)
m_245547_(C_1141_ arg0)
protected void
b(float arg0, fby arg1)
executeRidersJump(float arg0, Vec3 arg1)
method_45343(float arg0, class_243 arg1)
jump(float strength, Vec3d movementInput)
m_245980_(float p_275435_, C_3046_ arg1)
protected void
gW()
playJumpSound()
method_6723()
playJumpSound()
m_7486_()
public void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(ux arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public boolean
a(chx arg0)
canMate(Animal arg0)
method_6474(class_1429 arg0)
canBreedWith(AnimalEntity arg0)
m_7848_(C_801_ arg0)
protected boolean
gX()
canParent()
method_6734()
canBreed()
m_30628_()
public AgeableMob
a(ash arg0, bvb 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(bvb arg0, ckb arg1)
setOffspringAttributes(AgeableMob arg0, AbstractHorse arg1)
method_6743(class_1296 arg0, class_1496 arg1)
setChildAttributes(PassiveEntity other, AbstractHorseEntity child)
m_149508_(C_141062_ p_149510_, C_926_ arg1)
private void
a(bvb arg0, ckb arg1, jq<bxj> arg2, double arg3, double arg4)
setOffspringAttribute(AgeableMob arg0, AbstractHorse arg1, Holder<Attribute> arg2, double arg3, double arg4)
method_49124(class_1296 arg0, class_1496 arg1, class_6880<class_1320> arg2, double arg3, double arg4)
setChildAttribute(PassiveEntity other, AbstractHorseEntity child, RegistryEntry<EntityAttribute> attribute, double min, double max)
m_272015_(C_141062_ p_273784_, C_926_ p_330057_, C_203228_<C_552_> p_272663_, double p_273405_, double arg4)
static double
a(double arg0, double arg1, double arg2, double arg3, bam arg4)
createOffspringAttribute(double arg0, double arg1, double arg2, double arg3, RandomSource arg4)
method_49123(double arg0, double arg1, double arg2, double arg3, class_5819 arg4)
calculateAttributeBaseValue(double parentBase, double otherParentBase, double min, double max, Random random)
m_271715_(double p_272685_, double p_273376_, double p_272743_, double arg3, C_212974_ arg4)
public float
J(float arg0)
getEatAnim(float arg0)
method_6739(float arg0)
getEatingGrassAnimationProgress(float tickDelta)
m_30663_(float arg0)
public float
K(float arg0)
getStandAnim(float arg0)
method_6767(float arg0)
getAngryAnimationProgress(float tickDelta)
m_30667_(float arg0)
public float
L(float arg0)
getMouthAnim(float arg0)
method_6772(float arg0)
getEatingAnimationProgress(float tickDelta)
m_30533_(float arg0)
public void
b(int arg0)
onPlayerJump(int arg0)
method_6154(int arg0)
setJumpStrength(int arg0)
m_7888_(int arg0)
public boolean
a()
canJump()
method_6153()
canJump()
m_7132_()
public void
c(int arg0)
handleStartJump(int arg0)
method_6155(int arg0)
startJumping(int arg0)
m_7199_(int arg0)
public void
b()
handleStopJump()
method_6156()
stopJumping()
m_8012_()
protected void
D(boolean arg0)
spawnTamingParticles(boolean arg0)
method_6760(boolean arg0)
spawnPlayerReactionParticles(boolean positive)
m_30669_(boolean arg0)
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
m_7822_(byte arg0)
protected void
a(bvk arg0, bvk$a arg1)
positionRider(Entity arg0, Entity$MoveFunction arg1)
method_5865(class_1297 arg0, class_1297$class_4738 arg1)
updatePassengerPosition(Entity arg0, Entity$PositionUpdater arg1)
m_19956_(C_507_ p_289558_, C_507_$C_509_ arg1)
protected static float
a(IntUnaryOperator arg0)
generateMaxHealth(IntUnaryOperator arg0)
method_6754(IntUnaryOperator arg0)
getChildHealthBonus(IntUnaryOperator randomIntGetter)
m_271722_(IntUnaryOperator p_272695_)
protected static double
a(DoubleSupplier arg0)
generateJumpStrength(DoubleSupplier arg0)
method_6774(DoubleSupplier arg0)
getChildJumpStrengthBonus(DoubleSupplier randomDoubleGetter)
m_272017_(DoubleSupplier p_272718_)
protected static double
b(DoubleSupplier arg0)
generateSpeed(DoubleSupplier arg0)
method_6728(DoubleSupplier arg0)
getChildMovementSpeedBonus(DoubleSupplier randomDoubleGetter)
m_271981_(DoubleSupplier p_273691_)
public boolean
q_()
onClimbable()
method_6101()
isClimbing()
m_6147_()
public SlotAccess
a_(int arg0)
getSlot(int arg0)
method_32318(int arg0)
getStackReference(int arg0)
m_141942_(int arg0)
public LivingEntity
cX()
getControllingPassenger()
method_5642()
getControllingPassenger()
m_6688_()
private Vec3
a(fby arg0, bwg 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(bwg arg0)
getDismountLocationForPassenger(LivingEntity arg0)
method_24829(class_1309 arg0)
updatePassengerForDismount(LivingEntity arg0)
m_7688_(C_524_ arg0)
protected void
a(bam arg0)
randomizeAttributes(RandomSource arg0)
method_6001(class_5819 arg0)
initAttributes(Random random)
m_214179_(C_212974_ arg0)
public SpawnGroupData
a(dhz arg0, bth arg1, bvq arg2, bwz arg3)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, EntitySpawnReason arg2, SpawnGroupData arg3)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
m_6518_(C_1618_ p_30556_, C_469_ p_365113_, C_345845_ p_30558_, C_542_ arg3)
public boolean
b(btc arg0)
hasInventoryChanged(Container arg0)
method_33338(class_1263 arg0)
areInventoriesDifferent(Inventory inventory)
m_149511_(C_464_ arg0)
public int
gY()
getAmbientStandInterval()
method_45377()
getMinAmbientStandDelay()
m_247558_()
protected Vec3
a(bvk arg0, bvn arg1, float arg2)
getPassengerAttachmentPoint(Entity arg0, EntityDimensions arg1, float arg2)
method_52533(class_1297 arg0, class_4048 arg1, float arg2)
getPassengerAttachmentPos(Entity arg0, EntityDimensions arg1, float arg2)
m_293035_(C_507_ p_298879_, C_510_ p_299886_, float arg2)
public final Container
gZ()
getBodyArmorAccess()
method_56680()
getArmorInventory()
m_322868_()
public int
ag_()
getInventoryColumns()
method_6702()
getInventoryColumns()
m_7488_()