net.minecraft.world.entity

public abstract class TamableAnimal

extends Animal implements OwnableEntity

All mapped superinterfaces:

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

bxn
net.minecraft.world.entity.TamableAnimal
net.minecraft.class_1321
net.minecraft.entity.passive.TameableEntity

Field summary

Modifier and TypeField
public static final int
bE
TELEPORT_WHEN_DISTANCE_IS_SQ
field_52002
field_52002
private static final int
bI
MIN_HORIZONTAL_DISTANCE_FROM_TARGET_AFTER_TELEPORTING
field_52003
field_52003
private static final int
bJ
MAX_HORIZONTAL_DISTANCE_FROM_TARGET_AFTER_TELEPORTING
field_52004
field_52004
private static final int
bK
MAX_VERTICAL_DISTANCE_FROM_TARGET_AFTER_TELEPORTING
field_52005
field_52005
protected static final EntityDataAccessor<Byte>
bF
DATA_FLAGS_ID
field_6322
TAMEABLE_FLAGS
protected static final EntityDataAccessor<Optional<EntityReference<LivingEntity>>>
bG
DATA_OWNERUUID_ID
field_6320
OWNER_UUID
private boolean
bL
orderedToSit
field_21974
sitting

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
a(akk$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
b(tw arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tw arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public boolean
w()
canBeLeashed()
method_5931()
canBeLeashed()
public boolean
a(bvs arg0, float arg1)
handleLeashAtDistance(Entity arg0, float arg1)
method_60956(class_1297 arg0, float arg1)
beforeLeashTick(Entity arg0, float arg1)
protected void
w(boolean arg0)
spawnTamingParticles(boolean arg0)
method_6180(boolean arg0)
showEmoteParticle(boolean positive)
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
public boolean
q()
isTame()
method_6181()
isTamed()
public void
a(boolean arg0, boolean arg1)
setTame(boolean arg0, boolean arg1)
method_6173(boolean arg0, boolean arg1)
setTamed(boolean tamed, boolean updateAttributes)
protected void
t()
applyTamingSideEffects()
method_56996()
updateAttributesForTamed()
public boolean
x()
isInSittingPose()
method_6172()
isInSittingPose()
public void
x(boolean arg0)
setInSittingPose(boolean arg0)
method_6179(boolean arg0)
setInSittingPose(boolean inSittingPose)
public EntityReference<LivingEntity>
d()
getOwnerReference()
method_66287()
getOwnerReference()
public void
j(bwr arg0)
setOwner(LivingEntity arg0)
method_6174(class_1309 arg0)
setOwner(LivingEntity owner)
public void
a(bvy<bwr> arg0)
setOwnerReference(EntityReference<LivingEntity> arg0)
method_66288(class_10583<class_1309> arg0)
setOwner(LazyEntityReference<LivingEntity> owner)
public void
a(cqi arg0)
tame(Player arg0)
method_6170(class_1657 arg0)
setTamedBy(PlayerEntity player)
public boolean
c(bwr arg0)
canAttack(LivingEntity arg0)
method_18395(class_1309 arg0)
canTarget(LivingEntity arg0)
public boolean
k(bwr arg0)
isOwnedBy(LivingEntity arg0)
method_6171(class_1309 arg0)
isOwner(LivingEntity entity)
public boolean
a(bwr arg0, bwr arg1)
wantsToAttack(LivingEntity arg0, LivingEntity arg1)
method_6178(class_1309 arg0, class_1309 arg1)
canAttackWithOwner(LivingEntity target, LivingEntity owner)
public PlayerTeam
cr()
getTeam()
method_5781()
getScoreboardTeam()
protected boolean
t(bvs arg0)
considersEntityAsAlly(Entity arg0)
method_61416(class_1297 arg0)
isInSameTeam(Entity arg0)
public void
a(buh arg0)
die(DamageSource arg0)
method_6078(class_1282 arg0)
onDeath(DamageSource arg0)
public boolean
gq()
isOrderedToSit()
method_24345()
isSitting()
public void
y(boolean arg0)
setOrderedToSit(boolean arg0)
method_24346(boolean arg0)
setSitting(boolean sitting)
public void
gr()
tryToTeleportToOwner()
method_60713()
tryTeleportToOwner()
public boolean
gs()
shouldTryTeleportToOwner()
method_60714()
shouldTryTeleportToOwner()
private void
i(jj arg0)
teleportToAroundBlockPos(BlockPos arg0)
method_60712(class_2338 arg0)
tryTeleportNear(BlockPos pos)
private boolean
a(int arg0, int arg1, int arg2)
maybeTeleportTo(int arg0, int arg1, int arg2)
method_60711(int arg0, int arg1, int arg2)
tryTeleportTo(int x, int y, int z)
private boolean
j(jj arg0)
canTeleportTo(BlockPos arg0)
method_60717(class_2338 arg0)
canTeleportTo(BlockPos pos)
public final boolean
gt()
unableToMoveToOwner()
method_60715()
cannotFollowOwner()
protected boolean
gu()
canFlyToOwner()
method_60716()
canTeleportOntoLeaves()