net.minecraft.world.entity.animal

public class Fox

extends Animal implements VariantHolder<Fox$Type>

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource, Attackable, Targeting, VariantHolder

brv
net.minecraft.world.entity.animal.Fox
net.minecraft.class_4019
net.minecraft.unmapped.C_axinhusn
net.minecraft.entity.passive.FoxEntity
net.minecraft.entity.passive.FoxEntity
net.minecraft.src.C_833_
net.minecraft.world.entity.animal.EntityFox

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Integer>
bX
DATA_TYPE_ID
field_17949
f_hrbsnbst
TYPE
TYPE
f_28437_
private static final EntityDataAccessor<Byte>
bY
DATA_FLAGS_ID
field_17950
f_zbozchcc
FOX_FLAGS
FOX_FLAGS
f_28438_
private static final int
bZ
FLAG_SITTING
field_30331
f_ymqfryvu
SITTING_FLAG
SITTING_FLAG
f_148899_
public static final int
bT
FLAG_CROUCHING
field_30328
f_hqimehqj
CROUCHING_FLAG
CROUCHING_FLAG
f_148896_
public static final int
bU
FLAG_INTERESTED
field_30329
f_xuhsuger
ROLLING_HEAD_FLAG
ROLLING_HEAD_FLAG
f_148897_
public static final int
bW
FLAG_POUNCING
field_30330
f_pnamnksn
CHASING_FLAG
CHASING_FLAG
f_148898_
private static final int
ca
FLAG_SLEEPING
field_30332
f_asglsdnu
SLEEPING_FLAG
SLEEPING_FLAG
f_148900_
private static final int
cb
FLAG_FACEPLANTED
field_30333
f_lkqzfnlu
WALKING_FLAG
WALKING_FLAG
f_148901_
private static final int
cc
FLAG_DEFENDING
field_30334
f_geqalzye
AGGRESSIVE_FLAG
AGGRESSIVE_FLAG
f_148902_
private static final EntityDataAccessor<Optional<UUID>>
cd
DATA_TRUSTED_ID_0
field_17951
f_wshlzrjm
OWNER
OWNER
f_28439_
private static final EntityDataAccessor<Optional<UUID>>
ce
DATA_TRUSTED_ID_1
field_17952
f_ycsmhxsv
OTHER_TRUSTED
OTHER_TRUSTED
f_28440_
static final Predicate<ItemEntity>
cf
ALLOWED_ITEMS
field_17953
f_codnhfpm
PICKABLE_DROP_FILTER
PICKABLE_DROP_FILTER
f_28441_
private static final Predicate<Entity>
cg
TRUSTED_TARGET_SELECTOR
field_17954
f_djegkpak
JUST_ATTACKED_SOMETHING_FILTER
JUST_ATTACKED_SOMETHING_FILTER
f_28442_
static final Predicate<Entity>
ch
STALKABLE_PREY
field_17955
f_dggtxvaq
CHICKEN_AND_RABBIT_FILTER
CHICKEN_AND_RABBIT_FILTER
f_28443_
private static final Predicate<Entity>
ci
AVOID_PLAYERS
field_17956
f_amqhoayi
NOTICEABLE_PLAYER_FILTER
NOTICEABLE_PLAYER_FILTER
f_28444_
private static final int
cj
MIN_TICKS_BEFORE_EAT
field_30335
f_ysgxoajz
EATING_DURATION
MIN_TICKS_BEFORE_EATING
f_148903_
private Goal
ck
landTargetGoal
field_17957
f_vkugpcrl
followChickenAndRabbitGoal
followChickenAndRabbitGoal
f_28445_
private Goal
cl
turtleEggTargetGoal
field_17958
f_bthcsxek
followBabyTurtleGoal
followBabyTurtleGoal
f_28446_
private Goal
cm
fishTargetGoal
field_17959
f_upcmpkhx
followFishGoal
followFishGoal
f_28447_
private float
cn
interestedAngle
field_17960
f_fgkoqkhm
headRollProgress
headRollProgress
f_28448_
private float
co
interestedAngleO
field_17961
f_lmfkncww
lastHeadRollProgress
lastHeadRollProgress
f_28433_
float
cp
crouchAmount
field_17962
f_tajwrmin
extraRollingHeight
extraRollingHeight
f_28434_
float
cq
crouchAmountO
field_17963
f_zxjrhxjw
lastExtraRollingHeight
lastExtraRollingHeight
f_28435_
private int
cr
ticksSinceEaten
field_17964
f_nmhvuowd
eatingTime
eatingTime
f_28436_

Constructor summary

ModifierConstructor
public (EntityType<? extends Fox> p_28452_, Level arg1)

Method summary

Modifier and TypeMethod
protected void
a_()
defineSynchedData()
method_5693()
m_lwugwlsw()
initDataTracker()
initDataTracker()
m_8097_()
protected void
x()
registerGoals()
method_5959()
m_itjttsuo()
initGoals()
initGoals()
m_8099_()
public SoundEvent
d(cfz arg0)
getEatingSound(ItemStack arg0)
method_18869(class_1799 arg0)
m_upnmcubv(C_sddaxwyk arg0)
getEatSound(ItemStack arg0)
getEatSound(ItemStack arg0)
m_7866_(C_1391_ arg0)
public void
b_()
aiStep()
method_6007()
m_alyudxll()
tickMovement()
tickMovement()
m_8107_()
protected boolean
eT()
isImmobile()
method_6062()
m_iauzolbu()
isImmobile()
isImmobile()
m_6107_()
private boolean
l(cfz arg0)
canEat(ItemStack arg0)
method_18430(class_1799 arg0)
m_zosfjimu(C_sddaxwyk arg0)
canEat(ItemStack stack)
canEat(ItemStack stack)
m_28597_(C_1391_ arg0)
protected void
a(apf arg0, bdv arg1)
populateDefaultEquipmentSlots(RandomSource arg0, DifficultyInstance arg1)
method_5964(class_5819 arg0, class_1266 arg1)
m_bafwglvj(C_rlomrsco arg0, C_jiailwzt arg1)
initEquipment(Random arg0, LocalDifficulty arg1)
initEquipment(RandomGenerator arg0, LocalDifficulty arg1)
m_213945_(C_212974_ p_218172_, C_469_ arg1)
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
m_kkieextx(byte arg0)
handleStatus(byte arg0)
handleStatus(byte arg0)
m_7822_(byte arg0)
public static AttributeSupplier$Builder
q()
createAttributes()
method_26885()
m_jirgigzw()
createFoxAttributes()
createAttributes()
m_28553_()
public Fox
b(aif arg0, bfe arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_18260(class_3218 arg0, class_1296 arg1)
m_utwwxouo(C_bdwnwhiu arg0, C_jvojbnla arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
m_142606_(C_12_ p_148913_, C_141062_ arg1)
public static boolean
c(bfn<brv> arg0, cmn arg1, bgd arg2, gu arg3, apf arg4)
checkFoxSpawnRules(EntityType<Fox> arg0, LevelAccessor arg1, MobSpawnType arg2, BlockPos arg3, RandomSource arg4)
method_39449(class_1299<class_4019> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
m_feziscvb(C_ogavsvbr<C_axinhusn> arg0, C_vdvbsyle arg1, C_uzzvxofv arg2, C_hynzadkk arg3, C_rlomrsco arg4)
canSpawn(EntityType<FoxEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
canSpawn(EntityType<FoxEntity> entityType, WorldAccess world, SpawnReason reason, BlockPos pos, RandomGenerator random)
m_218175_(C_513_<C_833_> p_218176_, C_1598_ p_218177_, C_529_ p_218178_, C_4675_ p_218179_, C_212974_ p_218180_)
public SpawnGroupData
a(cnb arg0, bdv arg1, bgd arg2, bgt arg3, qr arg4)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, MobSpawnType arg2, SpawnGroupData arg3, CompoundTag arg4)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3, class_2487 arg4)
m_oxrxxqyz(C_jmnzlycd arg0, C_jiailwzt arg1, C_uzzvxofv arg2, C_lsmqixfx arg3, C_hhlwcnih arg4)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3, NbtCompound arg4)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3, NbtCompound arg4)
m_6518_(C_1618_ p_28488_, C_469_ p_28489_, C_529_ p_28490_, C_542_ p_28491_, C_4917_ arg4)
private void
gi()
setTargetGoals()
method_18280()
m_ckfmrssi()
addTypeSpecificGoals()
addTypeSpecificGoals()
m_28562_()
protected void
a(byo arg0, bdw arg1, cfz arg2)
usePlayerItem(Player arg0, InteractionHand arg1, ItemStack arg2)
method_6475(class_1657 arg0, class_1268 arg1, class_1799 arg2)
m_lyumrhdj(C_jzrpycqo arg0, C_laxmzoqs arg1, C_sddaxwyk arg2)
eat(PlayerEntity arg0, Hand arg1, ItemStack arg2)
eat(PlayerEntity arg0, Hand arg1, ItemStack arg2)
m_142075_(C_1141_ p_148909_, C_470_ p_148910_, C_1391_ arg2)
protected float
b(bgl arg0, bfk arg1)
getStandingEyeHeight(Pose arg0, EntityDimensions arg1)
method_18394(class_4050 arg0, class_4048 arg1)
m_heqvdbfg(C_ufdjspmk arg0, C_sszpscpo arg1)
getActiveEyeHeight(EntityPose arg0, EntityDimensions arg1)
getActiveEyeHeight(EntityPose arg0, EntityDimensions arg1)
m_6431_(C_535_ p_28501_, C_510_ arg1)
public Fox$Type
r()
getVariant()
method_47845()
m_rrrmouvo()
getVariant()
getVariant()
m_28554_()
public void
a(brv$v arg0)
setVariant(Fox$Type arg0)
method_47844(class_4019$class_4039 arg0)
m_xflruycc(C_axinhusn$C_qecgztkz arg0)
setVariant(FoxEntity$Type arg0)
setVariant(FoxEntity$Variant arg0)
m_28464_(C_833_$C_856_ arg0)
List<UUID>
gj()
getTrustedUUIDs()
method_18281()
m_dgdyhgoz()
getTrustedUuids()
getTrustedUuids()
m_28566_()
void
b(UUID arg0)
addTrustedUUID(UUID arg0)
method_18266(UUID arg0)
m_pckbszlp(UUID arg0)
addTrustedUuid(UUID uuid)
addTrustedUuid(UUID uuid)
m_28515_(UUID arg0)
public void
b(qr arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
m_xuwbpohg(C_hhlwcnih arg0)
writeCustomDataToNbt(NbtCompound arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(qr arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
m_obkzfysl(C_hhlwcnih arg0)
readCustomDataFromNbt(NbtCompound arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public boolean
w()
isSitting()
method_18272()
m_uesdupqb()
isSitting()
isSitting()
m_28555_()
public void
w(boolean arg0)
setSitting(boolean arg0)
method_18294(boolean arg0)
m_ljsbiiim(boolean arg0)
setSitting(boolean sitting)
setSitting(boolean sitting)
m_28610_(boolean arg0)
public boolean
fY()
isFaceplanted()
method_18273()
m_bxzmyivn()
isWalking()
isWalking()
m_28556_()
void
A(boolean arg0)
setFaceplanted(boolean arg0)
method_18295(boolean arg0)
m_uphzwtbt(boolean arg0)
setWalking(boolean walking)
setWalking(boolean walking)
m_28618_(boolean arg0)
boolean
gk()
isDefending()
method_18282()
m_vplswkcx()
isAggressive()
isAggressive()
m_28567_()
void
B(boolean arg0)
setDefending(boolean arg0)
method_18301(boolean arg0)
m_rlytqius(boolean arg0)
setAggressive(boolean aggressive)
setAggressive(boolean aggressive)
m_28622_(boolean arg0)
public boolean
fy()
isSleeping()
method_6113()
m_uytukmik()
isSleeping()
isSleeping()
m_5803_()
void
C(boolean arg0)
setSleeping(boolean arg0)
method_18302(boolean arg0)
m_lflxuqel(boolean arg0)
setSleeping(boolean sleeping)
setSleeping(boolean sleeping)
m_28626_(boolean arg0)
private void
d(int arg0, boolean arg1)
setFlag(int arg0, boolean arg1)
method_18269(int arg0, boolean arg1)
m_xvobopah(int arg0, boolean arg1)
setFoxFlag(int mask, boolean value)
setFoxFlag(int mask, boolean value)
m_28532_(int p_28534_, boolean arg1)
private boolean
t(int arg0)
getFlag(int arg0)
method_18293(int arg0)
m_vumnkwpn(int arg0)
getFoxFlag(int bitmask)
getFoxFlag(int bitmask)
m_28608_(int arg0)
public boolean
f(cfz arg0)
canTakeItem(ItemStack arg0)
method_18397(class_1799 arg0)
m_jhvcxqlb(C_sddaxwyk arg0)
canEquip(ItemStack arg0)
canEquip(ItemStack arg0)
m_7066_(C_1391_ arg0)
public boolean
j(cfz arg0)
canHoldItem(ItemStack arg0)
method_5939(class_1799 arg0)
m_kxilreut(C_sddaxwyk arg0)
canPickupItem(ItemStack arg0)
canPickupItem(ItemStack arg0)
m_7252_(C_1391_ arg0)
private void
n(cfz arg0)
spitOutItem(ItemStack arg0)
method_18289(class_1799 arg0)
m_iqrgnkdw(C_sddaxwyk arg0)
spit(ItemStack stack)
spit(ItemStack stack)
m_28601_(C_1391_ arg0)
private void
o(cfz arg0)
dropItemStack(ItemStack arg0)
method_18291(class_1799 arg0)
m_ptzfkeez(C_sddaxwyk arg0)
dropItem(ItemStack stack)
dropItem(ItemStack stack)
m_28605_(C_1391_ arg0)
protected void
b(bvh arg0)
pickUpItem(ItemEntity arg0)
method_5949(class_1542 arg0)
m_avgkrrey(C_uqpzijng arg0)
loot(ItemEntity arg0)
loot(ItemEntity arg0)
m_7581_(C_976_ arg0)
public void
l()
tick()
method_5773()
m_arkgrfeb()
tick()
tick()
m_8119_()
public boolean
m(cfz arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
m_njyokwrm(C_sddaxwyk arg0)
isBreedingItem(ItemStack arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
protected void
a(byo arg0, bgb arg1)
onOffspringSpawnedFromEgg(Player arg0, Mob arg1)
method_18249(class_1657 arg0, class_1308 arg1)
m_gflspffg(C_jzrpycqo arg0, C_dxkfswlz arg1)
onPlayerSpawnedChild(PlayerEntity arg0, MobEntity arg1)
onPlayerSpawnedChild(PlayerEntity arg0, MobEntity arg1)
m_5502_(C_1141_ p_28482_, C_526_ arg1)
public boolean
ge()
isPouncing()
method_18274()
m_kmmmlmss()
isChasing()
isChasing()
m_28557_()
public void
x(boolean arg0)
setIsPouncing(boolean arg0)
method_18296(boolean arg0)
m_vdepdtwn(boolean arg0)
setChasing(boolean chasing)
setChasing(boolean chasing)
m_28612_(boolean arg0)
public boolean
gf()
isJumping()
method_35172()
m_hpkjnupp()
isJumping()
isJumping()
m_148924_()
public boolean
gg()
isFullyCrouched()
method_18275()
m_hgjltjvv()
isFullyCrouched()
isFullyCrouched()
m_28558_()
public void
y(boolean arg0)
setIsCrouching(boolean arg0)
method_18297(boolean arg0)
m_apoyvjmi(boolean arg0)
setCrouching(boolean crouching)
setCrouching(boolean crouching)
m_28614_(boolean arg0)
public boolean
bU()
isCrouching()
method_18276()
m_oqgpazne()
isInSneakingPose()
isInSneakingPose()
m_6047_()
public void
z(boolean arg0)
setIsInterested(boolean arg0)
method_18299(boolean arg0)
m_xkpkacqa(boolean arg0)
setRollingHead(boolean rollingHead)
setRollingHead(boolean rollingHead)
m_28616_(boolean arg0)
public boolean
gh()
isInterested()
method_18277()
m_yhanyshv()
isRollingHead()
isRollingHead()
m_28559_()
public float
D(float arg0)
getHeadRollAngle(float arg0)
method_18298(float arg0)
m_entdqhly(float arg0)
getHeadRoll(float tickDelta)
getHeadRoll(float tickDelta)
m_28620_(float arg0)
public float
E(float arg0)
getCrouchAmount(float arg0)
method_18300(float arg0)
m_dbqgppkh(float arg0)
getBodyRotationHeightOffset(float tickDelta)
getBodyRotationHeightOffset(float tickDelta)
m_28624_(float arg0)
public void
h(bfz arg0)
setTarget(LivingEntity arg0)
method_5980(class_1309 arg0)
m_hykyexft(C_usxaxydn arg0)
setTarget(LivingEntity arg0)
setTarget(LivingEntity arg0)
m_6710_(C_524_ arg0)
protected int
d(float arg0, float arg1)
calculateFallDamage(float arg0, float arg1)
method_23329(float arg0, float arg1)
m_kivskbpm(float arg0, float arg1)
computeFallDamage(float arg0, float arg1)
computeFallDamage(float arg0, float arg1)
m_5639_(float p_28546_, float arg1)
void
gl()
wakeUp()
method_18283()
m_umwbpcmy()
stopSleeping()
stopSleeping()
m_28568_()
void
gm()
clearStates()
method_18284()
m_jznhijuk()
stopActions()
stopActions()
m_28569_()
boolean
gn()
canMove()
method_18285()
m_znqnotjf()
wantsToPickupItem()
wantsToPickupItem()
m_28570_()
public void
N()
playAmbientSound()
method_5966()
m_frolgtzg()
playAmbientSound()
playAmbientSound()
m_8032_()
protected SoundEvent
s()
getAmbientSound()
method_5994()
m_jjefzxbm()
getAmbientSound()
getAmbientSound()
m_7515_()
protected SoundEvent
d(ben arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
m_spwwmdyl(C_sbxfkpyv arg0)
getHurtSound(DamageSource arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
g_()
getDeathSound()
method_6002()
m_axkhmdzu()
getDeathSound()
getDeathSound()
m_5592_()
boolean
c(UUID arg0)
trusts(UUID arg0)
method_18428(UUID arg0)
m_onrungke(UUID arg0)
canTrust(UUID uuid)
canTrust(UUID uuid)
m_28529_(UUID arg0)
protected void
g(ben arg0)
dropAllDeathLoot(DamageSource arg0)
method_16080(class_1282 arg0)
m_qsomaeaq(C_sbxfkpyv arg0)
drop(DamageSource arg0)
drop(DamageSource arg0)
m_6668_(C_489_ arg0)
public static boolean
a(brv arg0, bfz arg1)
isPathClear(Fox arg0, LivingEntity arg1)
method_18257(class_4019 arg0, class_1309 arg1)
m_nuviczfv(C_axinhusn arg0, C_usxaxydn arg1)
canJumpChase(FoxEntity fox, LivingEntity chasedEntity)
canJumpChase(FoxEntity fox, LivingEntity chasedEntity)
m_28471_(C_833_ p_28472_, C_524_ p_28473_)
public Vec3
cG()
getLeashOffset()
method_29919()
m_gxfczhkq()
getLeashOffset()
getLeashOffset()
m_7939_()