net.minecraft.world.entity

public abstract class TamableAnimal

extends Animal implements OwnableEntity

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, Attackable, EquipmentUser, Leashable, Targeting, OwnableEntity

bwf
net.minecraft.world.entity.TamableAnimal
net.minecraft.class_1321
net.minecraft.unmapped.C_sjwjnzbw
net.minecraft.entity.passive.TameableEntity
net.minecraft.entity.passive.TameableEntity
net.minecraft.src.C_547_
net.minecraft.world.entity.EntityTameableAnimal

Field summary

Modifier and TypeField
public static final int
bY
TELEPORT_WHEN_DISTANCE_IS_SQ
field_52002
f_skrydxkf
field_52002
SQUARED_TELEPORT_DISTANCE
f_337429_
private static final int
cc
MIN_HORIZONTAL_DISTANCE_FROM_TARGET_AFTER_TELEPORTING
field_52003
f_ligkdvdj
field_52003
MIN_HORIZONTAL_DISTANCE_POST_TELEPORT
f_337470_
private static final int
cd
MAX_HORIZONTAL_DISTANCE_FROM_TARGET_AFTER_TELEPORTING
field_52004
f_xppimqpx
field_52004
MAX_HORIZONTAL_DISTANCE_POST_TELEPORT
f_336822_
private static final int
ce
MAX_VERTICAL_DISTANCE_FROM_TARGET_AFTER_TELEPORTING
field_52005
f_yebfrsme
field_52005
MAX_VERTICAL_DISTANCE_POST_TELEPORT
f_336861_
protected static final EntityDataAccessor<Byte>
bZ
DATA_FLAGS_ID
field_6322
f_kbzwzygv
TAMEABLE_FLAGS
TAMEABLE_FLAGS
f_21798_
protected static final EntityDataAccessor<Optional<UUID>>
ca
DATA_OWNERUUID_ID
field_6320
f_rborvvvh
OWNER_UUID
OWNER_UUID
f_21799_
private boolean
cf
orderedToSit
field_21974
f_epcsrtrm
sitting
sitting
f_21800_

Constructor summary

ModifierConstructor
protected (EntityType<? extends TamableAnimal> p_21804_, Level world)

Method summary

Modifier and TypeMethod
protected void
a(akc$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
m_lwugwlsw(C_pyoaoolj$C_oqzxcugu arg0)
initDataTracker(DataTracker$Builder arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
public void
b(tq arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
m_xuwbpohg(C_hhlwcnih arg0)
writeCustomDataToNbt(NbtCompound arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(tq arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
m_obkzfysl(C_hhlwcnih arg0)
readCustomDataFromNbt(NbtCompound arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public boolean
y()
canBeLeashed()
method_5931()
m_xvyvanvw()
canBeLeashed()
canBeLeashed()
m_6573_()
public boolean
a(bum arg0, float arg1)
handleLeashAtDistance(Entity arg0, float arg1)
method_60956(class_1297 arg0, float arg1)
m_zkhlcdom(C_astfners arg0, float arg1)
beforeLeashTick(Entity arg0, float arg1)
applyLongRangeBehavior(Entity arg0, float arg1)
m_338665_(C_507_ p_344621_, float arg1)
protected void
x(boolean arg0)
spawnTamingParticles(boolean arg0)
method_6180(boolean arg0)
m_mkfladdv(boolean arg0)
showEmoteParticle(boolean positive)
showEmoteParticle(boolean positive)
m_21834_(boolean arg0)
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
m_kkieextx(byte arg0)
handleStatus(byte arg0)
handleStatus(byte arg0)
m_7822_(byte arg0)
public boolean
p()
isTame()
method_6181()
m_xhsllqmu()
isTamed()
isTamed()
m_21824_()
public void
a(boolean arg0, boolean arg1)
setTame(boolean arg0, boolean arg1)
method_6173(boolean arg0, boolean arg1)
m_lvckrpxt(boolean arg0, boolean arg1)
setTamed(boolean tamed, boolean updateAttributes)
setTamed(boolean tamed, boolean applySideEffects)
m_7105_(boolean p_332364_, boolean arg1)
protected void
t()
applyTamingSideEffects()
method_56996()
m_mflmktwd()
updateAttributesForTamed()
applyTamingSideEffects()
m_5849_()
public boolean
x()
isInSittingPose()
method_6172()
m_jaiutpwi()
isInSittingPose()
isInSittingPose()
m_21825_()
public void
y(boolean arg0)
setInSittingPose(boolean arg0)
method_6179(boolean arg0)
m_yeburszk(boolean arg0)
setInSittingPose(boolean inSittingPose)
setInSittingPose(boolean inSittingPose)
m_21837_(boolean arg0)
public UUID
aa_()
getOwnerUUID()
method_6139()
m_syyylunm()
getOwnerUuid()
getOwnerUuid()
m_21805_()
public void
b(UUID arg0)
setOwnerUUID(UUID arg0)
method_6174(UUID arg0)
m_ofifzrdx(UUID arg0)
setOwnerUuid(UUID uuid)
setOwnerUuid(UUID uuid)
m_21816_(UUID arg0)
public void
a(coy arg0)
tame(Player arg0)
method_6170(class_1657 arg0)
m_ztvtqemk(C_jzrpycqo arg0)
setOwner(PlayerEntity player)
setOwner(PlayerEntity player)
m_21828_(C_1141_ arg0)
public boolean
c(bvi arg0)
canAttack(LivingEntity arg0)
method_18395(class_1309 arg0)
m_lazolqzm(C_usxaxydn arg0)
canTarget(LivingEntity arg0)
canTarget(LivingEntity arg0)
m_6779_(C_524_ arg0)
public boolean
j(bvi arg0)
isOwnedBy(LivingEntity arg0)
method_6171(class_1309 arg0)
m_zgkbrqwb(C_usxaxydn arg0)
isOwner(LivingEntity entity)
isOwner(LivingEntity entity)
m_21830_(C_524_ arg0)
public boolean
a(bvi arg0, bvi arg1)
wantsToAttack(LivingEntity arg0, LivingEntity arg1)
method_6178(class_1309 arg0, class_1309 arg1)
m_frgwjzaq(C_usxaxydn arg0, C_usxaxydn arg1)
canAttackWithOwner(LivingEntity target, LivingEntity owner)
canAttackWithOwner(LivingEntity target, LivingEntity owner)
m_7757_(C_524_ p_21811_, C_524_ arg1)
public PlayerTeam
cr()
getTeam()
method_5781()
m_hjjjfrzw()
getScoreboardTeam()
getScoreboardTeam()
m_5647_()
protected boolean
t(bum arg0)
considersEntityAsAlly(Entity arg0)
method_61416(class_1297 arg0)
m_ckvztyll(C_astfners arg0)
isInSameTeam(Entity arg0)
isOnSameTeam(Entity arg0)
m_352396_(C_507_ arg0)
public void
a(btc arg0)
die(DamageSource arg0)
method_6078(class_1282 arg0)
m_tflzijcx(C_sbxfkpyv arg0)
onDeath(DamageSource arg0)
onDeath(DamageSource arg0)
m_6667_(C_489_ arg0)
public boolean
gs()
isOrderedToSit()
method_24345()
m_eqokagel()
isSitting()
isSitting()
m_21827_()
public void
z(boolean arg0)
setOrderedToSit(boolean arg0)
method_24346(boolean arg0)
m_enoyzrxs(boolean arg0)
setSitting(boolean sitting)
setSitting(boolean sitting)
m_21839_(boolean arg0)
public void
gt()
tryToTeleportToOwner()
method_60713()
m_zutxpjge()
tryTeleportToOwner()
tryTeleportToOwner()
m_339874_()
public boolean
gu()
shouldTryTeleportToOwner()
method_60714()
m_wzurfvbh()
shouldTryTeleportToOwner()
shouldTryTeleportToOwner()
m_339471_()
private void
h(ji arg0)
teleportToAroundBlockPos(BlockPos arg0)
method_60712(class_2338 arg0)
m_thjcypav(C_hynzadkk arg0)
tryTeleportNear(BlockPos pos)
tryTeleportNear(BlockPos pos)
m_339461_(C_4675_ arg0)
private boolean
a(int arg0, int arg1, int arg2)
maybeTeleportTo(int arg0, int arg1, int arg2)
method_60711(int arg0, int arg1, int arg2)
m_gdpxayae(int arg0, int arg1, int arg2)
tryTeleportTo(int x, int y, int z)
tryTeleportTo(int x, int y, int z)
m_339821_(int p_344602_, int p_344979_, int arg2)
private boolean
i(ji arg0)
canTeleportTo(BlockPos arg0)
method_60717(class_2338 arg0)
m_mnstdzks(C_hynzadkk arg0)
canTeleportTo(BlockPos pos)
canTeleportTo(BlockPos pos)
m_339782_(C_4675_ arg0)
public final boolean
gv()
unableToMoveToOwner()
method_60715()
m_qlmizzto()
cannotFollowOwner()
cannotFollowOwner()
m_338522_()
protected boolean
gw()
canFlyToOwner()
method_60716()
m_vgrjbsrb()
canTeleportOntoLeaves()
canFlyToOwner()
m_339401_()