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

cjd
net.minecraft.world.entity.animal.horse.AbstractHorse
net.minecraft.class_1496
net.minecraft.entity.passive.AbstractHorseEntity
net.minecraft.world.entity.animal.horse.EntityHorseAbstract

Field summary

Modifier and TypeField
public static final int
cj
EQUIPMENT_SLOT_OFFSET
field_30413
field_30413
public static final int
ck
CHEST_SLOT_OFFSET
field_30414
field_30414
public static final int
cl
INVENTORY_SLOT_OFFSET
field_30415
field_30415
public static final double
cm
BREEDING_CROSS_FACTOR
field_42647
field_42647
private static final float
bY
MIN_MOVEMENT_SPEED
field_42641
MIN_MOVEMENT_SPEED_BONUS
private static final float
bZ
MAX_MOVEMENT_SPEED
field_42642
MAX_MOVEMENT_SPEED_BONUS
private static final float
ca
MIN_JUMP_STRENGTH
field_42643
MIN_JUMP_STRENGTH_BONUS
private static final float
cc
MAX_JUMP_STRENGTH
field_42644
MAX_JUMP_STRENGTH_BONUS
private static final float
cd
MIN_HEALTH
field_42645
MIN_HEALTH_BONUS
private static final float
ce
MAX_HEALTH
field_42646
MAX_HEALTH_BONUS
private static final float
cf
BACKWARDS_MOVE_SPEED_FACTOR
field_42979
field_42979
private static final float
cg
SIDEWAYS_MOVE_SPEED_FACTOR
field_42980
field_42980
private static final TargetingConditions$Selector
ch
PARENT_HORSE_SELECTOR
field_6956
IS_BRED_HORSE
private static final TargetingConditions
ci
MOMMY_TARGETING
field_18118
PARENT_HORSE_PREDICATE
private static final EntityDataAccessor<Byte>
cz
DATA_ID_FLAGS
field_6959
HORSE_FLAGS
private static final int
cC
FLAG_TAME
field_30419
TAMED_FLAG
private static final int
cD
FLAG_SADDLE
field_30420
SADDLED_FLAG
private static final int
cE
FLAG_BRED
field_30421
BRED_FLAG
private static final int
cF
FLAG_EATING
field_30422
EATING_GRASS_FLAG
private static final int
cG
FLAG_STANDING
field_30423
ANGRY_FLAG
private static final int
cH
FLAG_OPEN_MOUTH
field_30424
EATING_FLAG
public static final int
cn
INV_SLOT_SADDLE
field_30416
field_30416
public static final int
co
INV_BASE_COUNT
field_30418
field_30418
public static final int
cp
INVENTORY_ROWS
field_52488
field_52488
private int
cI
eatingCounter
field_6971
eatingGrassTicks
private int
cJ
mouthCounter
field_6973
eatingTicks
private int
cK
standCounter
field_6970
angryTicks
public int
cq
tailCounter
field_6957
tailWagTicks
public int
cr
sprintCounter
field_6958
field_6958
protected boolean
cs
isJumping
field_6968
inAir
protected SimpleContainer
ct
inventory
field_6962
items
protected int
cu
temper
field_6955
temper
protected float
cv
playerJumpPendingScale
field_6976
jumpStrength
protected boolean
cw
allowStandSliding
field_6960
jumping
private float
cL
eatAnim
field_6969
eatingGrassAnimationProgress
private float
cM
eatAnimO
field_6966
lastEatingGrassAnimationProgress
private float
cN
standAnim
field_6967
angryAnimationProgress
private float
cO
standAnimO
field_6963
lastAngryAnimationProgress
private float
cP
mouthAnim
field_6965
eatingAnimationProgress
private float
cQ
mouthAnimO
field_6961
lastEatingAnimationProgress
protected boolean
cx
canGallop
field_6964
playExtraHorseSounds
protected int
cy
gallopSoundCounter
field_6975
soundTicks
private UUID
cR
owner
field_42462
ownerUuid
private final Container
cS
bodyArmorAccess
field_48830
armorInventory

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
E()
registerGoals()
method_5959()
initGoals()
protected void
gK()
addBehaviourGoals()
method_6764()
initCustomGoals()
protected void
a(akc$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected boolean
s(int arg0)
getFlag(int arg0)
method_6730(int arg0)
getHorseFlag(int bitmask)
protected void
d(int arg0, boolean arg1)
setFlag(int arg0, boolean arg1)
method_6769(int arg0, boolean arg1)
setHorseFlag(int bitmask, boolean flag)
public boolean
gJ()
isTamed()
method_6727()
isTame()
public UUID
aa_()
getOwnerUUID()
method_6139()
getOwnerUuid()
public void
b(UUID arg0)
setOwnerUUID(UUID arg0)
method_6732(UUID arg0)
setOwnerUuid(UUID ownerUuid)
public boolean
gL()
isJumping()
method_6763()
isInAir()
public void
y(boolean arg0)
setTamed(boolean arg0)
method_6766(boolean arg0)
setTame(boolean tame)
public void
z(boolean arg0)
setIsJumping(boolean arg0)
method_6758(boolean arg0)
setInAir(boolean inAir)
public boolean
a(bum arg0, float arg1)
handleLeashAtDistance(Entity arg0, float arg1)
method_60956(class_1297 arg0, float arg1)
beforeLeashTick(Entity arg0, float arg1)
public boolean
gM()
isEating()
method_6724()
isEatingGrass()
public boolean
gN()
isStanding()
method_6736()
isAngry()
public boolean
gO()
isBred()
method_6744()
isBred()
public void
A(boolean arg0)
setBred(boolean arg0)
method_6751(boolean arg0)
setBred(boolean bred)
public boolean
f()
isSaddleable()
method_6765()
canBeSaddled()
public void
a(cwq arg0, awb arg1)
equipSaddle(ItemStack arg0, SoundSource arg1)
method_6576(class_1799 arg0, class_3419 arg1)
saddle(ItemStack arg0, SoundCategory arg1)
public void
b(coy arg0, cwq arg1)
equipBodyArmor(Player arg0, ItemStack arg1)
method_45375(class_1657 arg0, class_1799 arg1)
equipHorseArmor(PlayerEntity player, ItemStack stack)
protected boolean
f(buu arg0)
canDispenserEquipIntoSlot(EquipmentSlot arg0)
method_63626(class_1304 arg0)
canDispenserEquipSlot(EquipmentSlot arg0)
public boolean
j()
isSaddled()
method_6725()
isSaddled()
public int
gP()
getTemper()
method_6729()
getTemper()
public void
t(int arg0)
setTemper(int arg0)
method_6749(int arg0)
setTemper(int temper)
public int
u(int arg0)
modifyTemper(int arg0)
method_6745(int arg0)
addTemper(int difference)
public boolean
bI()
isPushable()
method_5810()
isPushable()
private void
p()
eating()
method_6733()
playEatingAnimation()
public boolean
a(float arg0, float arg1, btc arg2)
causeFallDamage(float arg0, float arg1, DamageSource arg2)
method_5747(float arg0, float arg1, class_1282 arg2)
handleFallDamage(float arg0, float arg1, DamageSource arg2)
public final int
gQ()
getInventorySize()
method_6750()
getInventorySize()
public static int
v(int arg0)
getInventorySize(int arg0)
method_60977(int arg0)
getInventorySize(int columns)
protected void
gR()
createInventory()
method_6721()
onChestedStatusChanged()
protected void
gS()
syncSaddleToClients()
method_56679()
updateSaddledFlag()
public void
a(bse arg0)
containerChanged(Container arg0)
method_5453(class_1263 arg0)
onInventoryChanged(Inventory arg0)
public boolean
a(ard arg0, btc 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)
protected boolean
gt()
canPerformRearing()
method_45349()
shouldAmbientStand()
protected SoundEvent
gu()
getEatingSound()
method_28368()
getEatSound()
protected SoundEvent
gT()
getAngrySound()
method_6747()
getAngrySound()
protected void
b(ji arg0, dwy arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
private boolean
b(drf arg0)
isWoodSoundType(SoundType arg0)
method_49996(class_2498 arg0)
isWooden(BlockSoundGroup soundGroup)
protected void
a(drf arg0)
playGallopSound(SoundType arg0)
method_6761(class_2498 arg0)
playWalkSound(BlockSoundGroup group)
public static AttributeSupplier$Builder
gU()
createBaseHorseAttributes()
method_26899()
createBaseHorseAttributes()
public int
aj()
getMaxSpawnClusterSize()
method_5945()
getLimitPerChunk()
public int
gV()
getMaxTemper()
method_6755()
getMaxTemper()
protected float
fg()
getSoundVolume()
method_6107()
getSoundVolume()
public int
T()
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
public void
b(coy arg0)
openCustomInventoryScreen(Player arg0)
method_6722(class_1657 arg0)
openInventory(PlayerEntity arg0)
public InteractionResult
c(coy arg0, cwq arg1)
fedFood(Player arg0, ItemStack arg1)
method_30009(class_1657 arg0, class_1799 arg1)
interactHorse(PlayerEntity player, ItemStack stack)
protected boolean
a(coy arg0, cwq arg1)
handleEating(Player arg0, ItemStack arg1)
method_6742(class_1657 arg0, class_1799 arg1)
receiveFood(PlayerEntity player, ItemStack item)
protected void
a(coy arg0)
doPlayerRide(Player arg0)
method_6726(class_1657 arg0)
putPlayerOnBack(PlayerEntity player)
public boolean
fi()
isImmobile()
method_6062()
isImmobile()
public boolean
j(cwq arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
private void
t()
moveTail()
method_6759()
wagTail()
protected void
f(ard arg0)
dropEquipment(ServerLevel arg0)
method_16078(class_3218 arg0)
dropInventory(ServerWorld arg0)
public void
d_()
aiStep()
method_6007()
tickMovement()
protected void
g(ard arg0)
followMommy(ServerLevel arg0)
method_6746(class_3218 arg0)
walkToParent(ServerWorld world)
public boolean
gW()
canEatGrass()
method_6762()
eatsGrass()
public void
h()
tick()
method_5773()
tick()
public InteractionResult
b(coy arg0, bsk arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
private void
x()
openMouth()
method_6738()
setEating()
public void
B(boolean arg0)
setEating(boolean arg0)
method_6740(boolean arg0)
setEatingGrass(boolean eatingGrass)
public void
C(boolean arg0)
setStanding(boolean arg0)
method_6737(boolean arg0)
setAngry(boolean angry)
public SoundEvent
gX()
getAmbientStandSound()
method_45376()
getAmbientStandSound()
public void
gY()
standIfPossible()
method_6748()
updateAnger()
public void
gZ()
makeMad()
method_6757()
playAngrySound()
public boolean
g(coy arg0)
tameWithName(Player arg0)
method_6752(class_1657 arg0)
bondWithPlayer(PlayerEntity player)
protected void
a(coy arg0, fbb arg1)
tickRidden(Player arg0, Vec3 arg1)
method_49481(class_1657 arg0, class_243 arg1)
tickControlled(PlayerEntity arg0, Vec3d arg1)
protected Vec2
j(bvi arg0)
getRiddenRotation(LivingEntity arg0)
method_49489(class_1309 arg0)
getControlledRotation(LivingEntity controllingPassenger)
protected Vec3
b(coy arg0, fbb arg1)
getRiddenInput(Player arg0, Vec3 arg1)
method_49482(class_1657 arg0, class_243 arg1)
getControlledMovementInput(PlayerEntity arg0, Vec3d arg1)
protected float
e(coy arg0)
getRiddenSpeed(Player arg0)
method_49485(class_1657 arg0)
getSaddledSpeed(PlayerEntity arg0)
protected void
b(float arg0, fbb arg1)
executeRidersJump(float arg0, Vec3 arg1)
method_45343(float arg0, class_243 arg1)
jump(float strength, Vec3d movementInput)
protected void
ha()
playJumpSound()
method_6723()
playJumpSound()
public void
b(tq arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tq arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public boolean
a(cgz arg0)
canMate(Animal arg0)
method_6474(class_1429 arg0)
canBreedWith(AnimalEntity arg0)
protected boolean
hb()
canParent()
method_6734()
canBreed()
public AgeableMob
a(ard arg0, bud arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
protected void
a(bud arg0, cjd arg1)
setOffspringAttributes(AgeableMob arg0, AbstractHorse arg1)
method_6743(class_1296 arg0, class_1496 arg1)
setChildAttributes(PassiveEntity other, AbstractHorseEntity child)
private void
a(bud arg0, cjd arg1, jr<bwl> 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)
static double
a(double arg0, double arg1, double arg2, double arg3, azh 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)
public float
J(float arg0)
getEatAnim(float arg0)
method_6739(float arg0)
getEatingGrassAnimationProgress(float tickDelta)
public float
K(float arg0)
getStandAnim(float arg0)
method_6767(float arg0)
getAngryAnimationProgress(float tickDelta)
public float
L(float arg0)
getMouthAnim(float arg0)
method_6772(float arg0)
getEatingAnimationProgress(float tickDelta)
public void
b(int arg0)
onPlayerJump(int arg0)
method_6154(int arg0)
setJumpStrength(int arg0)
public boolean
a()
canJump()
method_6153()
canJump()
public void
c(int arg0)
handleStartJump(int arg0)
method_6155(int arg0)
startJumping(int arg0)
public void
b()
handleStopJump()
method_6156()
stopJumping()
protected void
D(boolean arg0)
spawnTamingParticles(boolean arg0)
method_6760(boolean arg0)
spawnPlayerReactionParticles(boolean positive)
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
protected void
a(bum arg0, bum$a arg1)
positionRider(Entity arg0, Entity$MoveFunction arg1)
method_5865(class_1297 arg0, class_1297$class_4738 arg1)
updatePassengerPosition(Entity arg0, Entity$PositionUpdater arg1)
protected static float
a(IntUnaryOperator arg0)
generateMaxHealth(IntUnaryOperator arg0)
method_6754(IntUnaryOperator arg0)
getChildHealthBonus(IntUnaryOperator randomIntGetter)
protected static double
a(DoubleSupplier arg0)
generateJumpStrength(DoubleSupplier arg0)
method_6774(DoubleSupplier arg0)
getChildJumpStrengthBonus(DoubleSupplier randomDoubleGetter)
protected static double
b(DoubleSupplier arg0)
generateSpeed(DoubleSupplier arg0)
method_6728(DoubleSupplier arg0)
getChildMovementSpeedBonus(DoubleSupplier randomDoubleGetter)
public boolean
q_()
onClimbable()
method_6101()
isClimbing()
public SlotAccess
a_(int arg0)
getSlot(int arg0)
method_32318(int arg0)
getStackReference(int arg0)
public LivingEntity
cW()
getControllingPassenger()
method_5642()
getControllingPassenger()
private Vec3
a(fbb arg0, bvi arg1)
getDismountLocationInDirection(Vec3 arg0, LivingEntity arg1)
method_27930(class_243 arg0, class_1309 arg1)
locateSafeDismountingPos(Vec3d offset, LivingEntity passenger)
public Vec3
b(bvi arg0)
getDismountLocationForPassenger(LivingEntity arg0)
method_24829(class_1309 arg0)
updatePassengerForDismount(LivingEntity arg0)
protected void
a(azh arg0)
randomizeAttributes(RandomSource arg0)
method_6001(class_5819 arg0)
initAttributes(Random random)
public SpawnGroupData
a(dha arg0, bsj arg1, bus arg2, bwb 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)
public boolean
b(bse arg0)
hasInventoryChanged(Container arg0)
method_33338(class_1263 arg0)
areInventoriesDifferent(Inventory inventory)
public int
hc()
getAmbientStandInterval()
method_45377()
getMinAmbientStandDelay()
protected Vec3
a(bum arg0, bup 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)
public final Container
hd()
getBodyArmorAccess()
method_56680()
getArmorInventory()
public int
af_()
getInventoryColumns()
method_6702()
getInventoryColumns()