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.entity.passive.TameableEntity
net.minecraft.world.entity.EntityTameableAnimal

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
a(akc$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
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
y()
canBeLeashed()
method_5931()
canBeLeashed()
public boolean
a(bum 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
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
y(boolean arg0)
setInSittingPose(boolean arg0)
method_6179(boolean arg0)
setInSittingPose(boolean inSittingPose)
public UUID
aa_()
getOwnerUUID()
method_6139()
getOwnerUuid()
public void
b(UUID arg0)
setOwnerUUID(UUID arg0)
method_6174(UUID arg0)
setOwnerUuid(UUID uuid)
public void
a(coy arg0)
tame(Player arg0)
method_6170(class_1657 arg0)
setOwner(PlayerEntity player)
public boolean
c(bvi arg0)
canAttack(LivingEntity arg0)
method_18395(class_1309 arg0)
canTarget(LivingEntity arg0)
public boolean
j(bvi arg0)
isOwnedBy(LivingEntity arg0)
method_6171(class_1309 arg0)
isOwner(LivingEntity entity)
public boolean
a(bvi arg0, bvi 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(bum arg0)
considersEntityAsAlly(Entity arg0)
method_61416(class_1297 arg0)
isInSameTeam(Entity arg0)
public void
a(btc arg0)
die(DamageSource arg0)
method_6078(class_1282 arg0)
onDeath(DamageSource arg0)
public boolean
gs()
isOrderedToSit()
method_24345()
isSitting()
public void
z(boolean arg0)
setOrderedToSit(boolean arg0)
method_24346(boolean arg0)
setSitting(boolean sitting)
public void
gt()
tryToTeleportToOwner()
method_60713()
tryTeleportToOwner()
public boolean
gu()
shouldTryTeleportToOwner()
method_60714()
shouldTryTeleportToOwner()
private void
h(ji 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(ji arg0)
canTeleportTo(BlockPos arg0)
method_60717(class_2338 arg0)
canTeleportTo(BlockPos pos)
public final boolean
gv()
unableToMoveToOwner()
method_60715()
cannotFollowOwner()
protected boolean
gw()
canFlyToOwner()
method_60716()
canTeleportOntoLeaves()