net.minecraft.world.entity.animal

public abstract class Animal

extends AgeableMob

All mapped superinterfaces:

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

cjv
net.minecraft.world.entity.animal.Animal
net.minecraft.class_1429
net.minecraft.entity.passive.AnimalEntity
net.minecraft.world.entity.animal.EntityAnimal

Field summary

Modifier and TypeField
protected static final int
bL
PARENT_AGE_AFTER_BREEDING
field_30270
BREEDING_COOLDOWN
private static final int
bI
DEFAULT_IN_LOVE_TIME
field_57599
DEFAULT_LOVE_TICKS
private int
bJ
inLove
field_6745
loveTicks
private UUID
bK
loveCause
field_6744
lovingPlayer

Constructor summary

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

Method summary

Modifier and TypeMethod
public static AttributeSupplier$Builder
gz()
createAnimalAttributes()
method_61457()
createAnimalAttributes()
protected void
a(asb arg0)
customServerAiStep(ServerLevel arg0)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public void
d_()
aiStep()
method_6007()
tickMovement()
protected void
c(asb arg0, bvt arg1, float arg2)
actuallyHurt(ServerLevel arg0, DamageSource arg1, float arg2)
method_6074(class_3218 arg0, class_1282 arg1, float arg2)
applyDamage(ServerWorld arg0, DamageSource arg1, float arg2)
public float
a(iw arg0, dkm arg1)
getWalkTargetValue(BlockPos arg0, LevelReader arg1)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
public void
b(ua arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(ua arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public static boolean
b(bxn<? extends cjv> arg0, dkk arg1, bxm arg2, iw arg3, bai arg4)
checkAnimalSpawnRules(EntityType<? extends Animal> arg0, LevelAccessor arg1, EntitySpawnReason 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)
protected static boolean
a(djk arg0, iw arg1)
isBrightEnoughToSpawn(BlockAndTintGetter arg0, BlockPos arg1)
method_39448(class_1920 arg0, class_2338 arg1)
isLightLevelValidForNaturalSpawn(BlockRenderView world, BlockPos pos)
public int
R()
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
public boolean
h(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
protected int
e(asb arg0)
getBaseExperienceReward(ServerLevel arg0)
method_6110(class_3218 arg0)
getExperienceToDrop(ServerWorld arg0)
public abstract boolean
i(dak arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack stack)
public InteractionResult
b(csi arg0, bvb arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
protected void
gA()
playEatingSound()
method_61458()
playEatSound()
protected void
a(csi arg0, bvb arg1, dak 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)
public boolean
gB()
canFallInLove()
method_6482()
canEat()
public void
e(csi arg0)
setInLove(Player arg0)
method_6480(class_1657 arg0)
lovePlayer(PlayerEntity player)
public void
r(int arg0)
setInLoveTime(int arg0)
method_6476(int arg0)
setLoveTicks(int loveTicks)
public int
gC()
getInLoveTime()
method_29270()
getLoveTicks()
public ServerPlayer
gD()
getLoveCause()
method_6478()
getLovingPlayer()
public boolean
gE()
isInLove()
method_6479()
isInLove()
public void
gF()
resetLove()
method_6477()
resetLoveTicks()
public boolean
a(cjv arg0)
canMate(Animal arg0)
method_6474(class_1429 arg0)
canBreedWith(AnimalEntity other)
public void
a(asb arg0, cjv arg1)
spawnChildFromBreeding(ServerLevel arg0, Animal arg1)
method_24650(class_3218 arg0, class_1429 arg1)
breed(ServerWorld world, AnimalEntity other)
public void
a(asb arg0, cjv arg1, bwu 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)
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)