net.minecraft.world.entity.animal.horse

public class Horse

extends AbstractHorse

All mapped superinterfaces:

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

bfl
net.minecraft.world.entity.animal.horse.Horse
net.minecraft.class_1498
net.minecraft.entity.passive.HorseEntity
net.minecraft.src.C_928_
net.minecraft.world.entity.animal.horse.EntityHorse

Field summary

Modifier and TypeField
private static final UUID
bT
ARMOR_MODIFIER_UUID
field_6985
HORSE_ARMOR_BONUS_ID
f_30685_
private static final EntityDataAccessor<Integer>
cj
DATA_ID_TYPE_VARIANT
field_6990
VARIANT
f_30686_

Constructor summary

ModifierConstructor
public (EntityType<? extends Horse> p_30690_, Level arg1)

Method summary

Modifier and TypeMethod
protected void
p()
randomizeAttributes()
method_6001()
initAttributes()
m_7505_()
protected void
a_()
defineSynchedData()
method_5693()
initDataTracker()
m_8097_()
initDatawatcher()
public void
b(na arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
saveData(NBTTagCompound arg0)
public ItemStack
t()
getArmor()
method_6786()
getArmorType()
m_30722_()
private void
o(bqq arg0)
setArmor(ItemStack arg0)
method_18445(class_1799 arg0)
equipArmor(ItemStack stack)
m_30732_(C_1391_ arg0)
public void
a(na arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
loadData(NBTTagCompound arg0)
private void
x(int arg0)
setTypeVariant(int arg0)
method_6783(int arg0)
setVariant(int variant)
m_30736_(int arg0)
setVariantRaw(int arg0)
private int
fE()
getTypeVariant()
method_6788()
getVariant()
m_30725_()
getVariantRaw()
private void
a(bfs arg0, bfn arg1)
setVariantAndMarkings(Variant arg0, Markings arg1)
method_27076(class_5149 arg0, class_5148 arg1)
setVariant(HorseColor color, HorseMarking marking)
m_30699_(C_941_ p_30701_, C_935_ arg1)
setVariant(HorseColor arg0, HorseStyle arg1)
public Variant
fw()
getVariant()
method_27077()
getColor()
m_30723_()
getColor()
public Markings
fy()
getMarkings()
method_27078()
getMarking()
m_30724_()
getStyle()
protected void
fO()
updateContainerEquipment()
method_6731()
updateSaddle()
m_7493_()
private void
p(bqq arg0)
setArmorEquipment(ItemStack arg0)
method_6790(class_1799 arg0)
setArmorTypeFromStack(ItemStack stack)
m_30734_(C_1391_ arg0)
public void
a(aru arg0)
containerChanged(Container arg0)
method_5453(class_1263 arg0)
onInventoryChanged(Inventory arg0)
m_5757_(C_464_ arg0)
protected void
a(cgf arg0)
playGallopSound(SoundType arg0)
method_6761(class_2498 arg0)
playWalkSound(BlockSoundGroup arg0)
m_5877_(C_1914_ arg0)
protected SoundEvent
q()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
getSoundAmbient()
protected SoundEvent
v_()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
getSoundDeath()
protected SoundEvent
fQ()
getEatingSound()
method_28368()
getEatSound()
m_7872_()
protected SoundEvent
c(asq arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
getSoundHurt(DamageSource arg0)
protected SoundEvent
fR()
getAngrySound()
method_6747()
getAngrySound()
m_7871_()
getSoundAngry()
public InteractionResult
b(bke arg0, asa arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
m_6071_(C_1141_ p_30714_, C_470_ arg1)
public boolean
a(bdy arg0)
canMate(Animal arg0)
method_6474(class_1429 arg0)
canBreedWith(AnimalEntity arg0)
m_7848_(C_801_ arg0)
mate(EntityAnimal arg0)
public AgeableMob
a(abr arg0, ate arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
m_142606_(C_12_ p_149534_, C_141062_ arg1)
createChild(WorldServer arg0, EntityAgeable arg1)
public boolean
gc()
canWearArmor()
method_6735()
hasArmorSlot()
m_7482_()
public boolean
m(bqq arg0)
isArmor(ItemStack arg0)
method_6773(class_1799 arg0)
isHorseArmor(ItemStack arg0)
m_6010_(C_1391_ arg0)
public SpawnGroupData
a(bxe arg0, arz arg1, aty arg2, aum arg3, na 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_30704_, C_469_ p_30705_, C_529_ p_30706_, C_542_ p_30707_, C_4917_ arg4)
prepare(WorldAccess arg0, DifficultyDamageScaler arg1, EnumMobSpawn arg2, GroupDataEntity arg3, NBTTagCompound arg4)