net.minecraft.world.entity

public abstract class TamableAnimal

extends Animal implements OwnableEntity

All mapped superinterfaces:

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

bxd
net.minecraft.world.entity.TamableAnimal
net.minecraft.class_1321
net.minecraft.entity.passive.TameableEntity
net.minecraft.world.entity.EntityTameableAnimal

Field summary

Modifier and TypeField
public static final int
bZ
TELEPORT_WHEN_DISTANCE_IS_SQ
field_52002
field_52002
private static final int
cd
MIN_HORIZONTAL_DISTANCE_FROM_TARGET_AFTER_TELEPORTING
field_52003
field_52003
private static final int
ce
MAX_HORIZONTAL_DISTANCE_FROM_TARGET_AFTER_TELEPORTING
field_52004
field_52004
private static final int
cf
MAX_VERTICAL_DISTANCE_FROM_TARGET_AFTER_TELEPORTING
field_52005
field_52005
protected static final EntityDataAccessor<Byte>
ca
DATA_FLAGS_ID
field_6322
TAMEABLE_FLAGS
protected static final EntityDataAccessor<Optional<UUID>>
cb
DATA_OWNERUUID_ID
field_6320
OWNER_UUID
private boolean
cg
orderedToSit
field_21974
sitting

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
a(alg$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(ux arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public boolean
y()
canBeLeashed()
method_5931()
canBeLeashed()
public boolean
a(bvk arg0, float arg1)
handleLeashAtDistance(Entity arg0, float arg1)
method_60956(class_1297 arg0, float arg1)
beforeLeashTick(Entity arg0, float arg1)
protected void
x(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
p()
isTame()
method_6181()
isTamed()
public void
b(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
y(boolean arg0)
setInSittingPose(boolean arg0)
method_6179(boolean arg0)
setInSittingPose(boolean inSittingPose)
public UUID
ab_()
getOwnerUUID()
method_6139()
getOwnerUuid()
public void
b(UUID arg0)
setOwnerUUID(UUID arg0)
method_6174(UUID arg0)
setOwnerUuid(UUID uuid)
public void
a(cpx arg0)
tame(Player arg0)
method_6170(class_1657 arg0)
setOwner(PlayerEntity player)
public boolean
c(bwg arg0)
canAttack(LivingEntity arg0)
method_18395(class_1309 arg0)
canTarget(LivingEntity arg0)
public boolean
j(bwg arg0)
isOwnedBy(LivingEntity arg0)
method_6171(class_1309 arg0)
isOwner(LivingEntity entity)
public boolean
a(bwg arg0, bwg 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(bvk arg0)
considersEntityAsAlly(Entity arg0)
method_61416(class_1297 arg0)
isInSameTeam(Entity arg0)
public void
a(bua arg0)
die(DamageSource arg0)
method_6078(class_1282 arg0)
onDeath(DamageSource arg0)
public boolean
go()
isOrderedToSit()
method_24345()
isSitting()
public void
z(boolean arg0)
setOrderedToSit(boolean arg0)
method_24346(boolean arg0)
setSitting(boolean sitting)
public void
gp()
tryToTeleportToOwner()
method_60713()
tryTeleportToOwner()
public boolean
gq()
shouldTryTeleportToOwner()
method_60714()
shouldTryTeleportToOwner()
private void
h(jh 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
i(jh arg0)
canTeleportTo(BlockPos arg0)
method_60717(class_2338 arg0)
canTeleportTo(BlockPos pos)
public final boolean
gr()
unableToMoveToOwner()
method_60715()
cannotFollowOwner()
protected boolean
gs()
canFlyToOwner()
method_60716()
canTeleportOntoLeaves()