net.minecraft.world.entity.animal

public abstract class Animal

extends AgeableMob

All mapped superinterfaces:

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

cfe
net.minecraft.world.entity.animal.Animal
net.minecraft.class_1429
net.minecraft.entity.passive.AnimalEntity
net.minecraft.src.C_801_
net.minecraft.world.entity.animal.EntityAnimal

Field summary

Modifier and TypeField
protected static final int
cf
PARENT_AGE_AFTER_BREEDING
field_30270
BREEDING_COOLDOWN
f_148714_
private int
cc
inLove
field_6745
loveTicks
f_27554_
private UUID
cd
loveCause
field_6744
lovingPlayer
f_27555_

Constructor summary

ModifierConstructor
protected (EntityType<? extends Animal> p_27558_, Level arg1)

Method summary

Modifier and TypeMethod
protected void
ab()
customServerAiStep()
method_5958()
mobTick()
m_8024_()
public void
m_()
aiStep()
method_6007()
tickMovement()
m_8107_()
protected void
f(brk arg0, float arg1)
actuallyHurt(DamageSource arg0, float arg1)
method_6074(class_1282 arg0, float arg1)
applyDamage(DamageSource arg0, float arg1)
m_6475_(C_489_ p_327706_, float arg1)
public float
a(jd arg0, dcz arg1)
getWalkTargetValue(BlockPos arg0, LevelReader arg1)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
m_5610_(C_4675_ p_27574_, C_1599_ arg1)
public void
b(ub arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(ub arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public static boolean
b(bsx<? extends cfe> arg0, dcx arg1, btr arg2, jd arg3, ayw arg4)
checkAnimalSpawnRules(EntityType<? extends Animal> arg0, LevelAccessor arg1, MobSpawnType arg2, BlockPos arg3, RandomSource arg4)
method_20663(class_1299<? extends class_1429> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
isValidNaturalSpawn(EntityType<? extends AnimalEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
m_218104_(C_513_<? extends C_801_> p_218105_, C_1598_ p_218106_, C_529_ p_218107_, C_4675_ p_218108_, C_212974_ p_218109_)
protected static boolean
a(dbz arg0, jd arg1)
isBrightEnoughToSpawn(BlockAndTintGetter arg0, BlockPos arg1)
method_39448(class_1920 arg0, class_2338 arg1)
isLightLevelValidForNaturalSpawn(BlockRenderView world, BlockPos pos)
m_186209_(C_1557_ p_186210_, C_4675_ p_186211_)
public int
R()
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
m_8100_()
public boolean
h(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
m_6785_(double arg0)
protected int
eg()
getBaseExperienceReward()
method_6110()
getXpToDrop()
m_213860_()
public abstract boolean
o(cuq arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack stack)
m_6898_(C_1391_ arg0)
public InteractionResult
b(cmx arg0, bqq arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
m_6071_(C_1141_ p_27585_, C_470_ arg1)
protected void
a(cmx arg0, bqq arg1, cuq arg2)
usePlayerItem(Player arg0, InteractionHand arg1, ItemStack arg2)
method_6475(class_1657 arg0, class_1268 arg1, class_1799 arg2)
eat(PlayerEntity player, Hand hand, ItemStack stack)
m_142075_(C_1141_ p_148716_, C_470_ p_148717_, C_1391_ arg2)
public boolean
gp()
canFallInLove()
method_6482()
canEat()
m_5957_()
public void
f(cmx arg0)
setInLove(Player arg0)
method_6480(class_1657 arg0)
lovePlayer(PlayerEntity player)
m_27595_(C_1141_ arg0)
public void
s(int arg0)
setInLoveTime(int arg0)
method_6476(int arg0)
setLoveTicks(int loveTicks)
m_27601_(int arg0)
public int
gq()
getInLoveTime()
method_29270()
getLoveTicks()
m_27591_()
public ServerPlayer
gr()
getLoveCause()
method_6478()
getLovingPlayer()
m_27592_()
public boolean
gs()
isInLove()
method_6479()
isInLove()
m_27593_()
public void
gt()
resetLove()
method_6477()
resetLoveTicks()
m_27594_()
public boolean
a(cfe arg0)
canMate(Animal arg0)
method_6474(class_1429 arg0)
canBreedWith(AnimalEntity other)
m_7848_(C_801_ arg0)
public void
a(aqu arg0, cfe arg1)
spawnChildFromBreeding(ServerLevel arg0, Animal arg1)
method_24650(class_3218 arg0, class_1429 arg1)
breed(ServerWorld world, AnimalEntity other)
m_27563_(C_12_ p_27565_, C_801_ arg1)
public void
a(aqu arg0, cfe arg1, bsl arg2)
finalizeSpawnChildFromBreeding(ServerLevel arg0, Animal arg1, AgeableMob arg2)
method_49794(class_3218 arg0, class_1429 arg1, class_1296 arg2)
breed(ServerWorld world, AnimalEntity other, PassiveEntity baby)
m_277117_(C_12_ p_277357_, C_801_ p_277516_, C_141062_ arg2)
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
m_7822_(byte arg0)