net.minecraft.entity.passive

public class FoxEntity

extends AnimalEntity

All mapped superinterfaces:

DataTracked, DebugTrackable, Nameable, HeldItemContext, EntityLike, UniquelyIdentifiable, ScoreHolder, ComponentsAccess, Attackable, ServerWaypoint, Waypoint, EquipmentHolder, Leashable, Targeter

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

Field summary

Modifier and TypeField
private static final TrackedData<Integer>
cx
DATA_TYPE_ID
field_17949
VARIANT
f_hrbsnbst
VARIANT
f_28437_
private static final TrackedData<Byte>
cy
DATA_FLAGS_ID
field_17950
FOX_FLAGS
f_zbozchcc
FOX_FLAGS
f_28438_
private static final int
cz
FLAG_SITTING
field_30331
SITTING_FLAG
f_ymqfryvu
SITTING_FLAG
f_148899_
public static final int
ct
FLAG_CROUCHING
field_30328
CROUCHING_FLAG
f_hqimehqj
CROUCHING_FLAG
f_148896_
public static final int
cu
FLAG_INTERESTED
field_30329
ROLLING_HEAD_FLAG
f_xuhsuger
ROLLING_HEAD_FLAG
f_148897_
public static final int
cv
FLAG_POUNCING
field_30330
CHASING_FLAG
f_pnamnksn
CHASING_FLAG
f_148898_
private static final int
cA
FLAG_SLEEPING
field_30332
SLEEPING_FLAG
f_asglsdnu
SLEEPING_FLAG
f_148900_
private static final int
cB
FLAG_FACEPLANTED
field_30333
WALKING_FLAG
f_lkqzfnlu
WALKING_FLAG
f_148901_
private static final int
cC
FLAG_DEFENDING
field_30334
AGGRESSIVE_FLAG
f_geqalzye
AGGRESSIVE_FLAG
f_148902_
private static final TrackedData<Optional<LazyEntityReference<LivingEntity>>>
cD
DATA_TRUSTED_ID_0
field_17951
OWNER
f_wshlzrjm
OWNER
f_28439_
private static final TrackedData<Optional<LazyEntityReference<LivingEntity>>>
cE
DATA_TRUSTED_ID_1
field_17952
OTHER_TRUSTED
f_ycsmhxsv
OTHER_TRUSTED
f_28440_
static final Predicate<ItemEntity>
cF
ALLOWED_ITEMS
field_17953
PICKABLE_DROP_FILTER
f_codnhfpm
PICKABLE_DROP_FILTER
f_28441_
private static final Predicate<Entity>
cG
TRUSTED_TARGET_SELECTOR
field_17954
JUST_ATTACKED_SOMETHING_FILTER
f_djegkpak
JUST_ATTACKED_SOMETHING_FILTER
f_28442_
static final Predicate<Entity>
cH
STALKABLE_PREY
field_17955
CHICKEN_AND_RABBIT_FILTER
f_dggtxvaq
CHICKEN_AND_RABBIT_FILTER
f_28443_
private static final Predicate<Entity>
cI
AVOID_PLAYERS
field_17956
NOTICEABLE_PLAYER_FILTER
f_amqhoayi
NOTICEABLE_PLAYER_FILTER
f_28444_
private static final int
cJ
MIN_TICKS_BEFORE_EAT
field_30335
EATING_DURATION
f_ysgxoajz
MIN_TICKS_BEFORE_EATING
f_148903_
private static final EntityDimensions
cK
BABY_DIMENSIONS
field_47772
BABY_BASE_DIMENSIONS
f_gvpwdnqm
BABY_DIMENSIONS
f_314999_
private static final com.mojang.serialization.Codec<List<LazyEntityReference<LivingEntity>>>
cL
TRUSTED_LIST_CODEC
field_56652
TRUSTED_ENTITIES_CODEC
f_wdhidlkw
CODEC
f_381033_
private static final boolean
cM
DEFAULT_SLEEPING
field_57607
DEFAULT_SLEEPING
f_jtrpxkwe
f_380550_
private static final boolean
cN
DEFAULT_SITTING
field_57608
DEFAULT_SITTING
f_yjgxmsps
f_381377_
private static final boolean
cO
DEFAULT_CROUCHING
field_57609
DEFAULT_CROUCHING
f_qbbuxtmr
f_381678_
private Goal
cP
landTargetGoal
field_17957
followChickenAndRabbitGoal
f_vkugpcrl
followChickenAndRabbitGoal
f_28445_
private Goal
cS
turtleEggTargetGoal
field_17958
followBabyTurtleGoal
f_bthcsxek
followBabyTurtleGoal
f_28446_
private Goal
cT
fishTargetGoal
field_17959
followFishGoal
f_upcmpkhx
followFishGoal
f_28447_
private float
cU
interestedAngle
field_17960
headRollProgress
f_fgkoqkhm
headRollProgress
f_28448_
private float
cV
interestedAngleO
field_17961
lastHeadRollProgress
f_lmfkncww
lastHeadRollProgress
f_28433_
float
cW
crouchAmount
field_17962
extraRollingHeight
f_tajwrmin
extraRollingHeight
f_28434_
float
cX
crouchAmountO
field_17963
lastExtraRollingHeight
f_zxjrhxjw
lastExtraRollingHeight
f_28435_
private int
cY
ticksSinceEaten
field_17964
eatingTime
f_nmhvuowd
eatingTime
f_28436_

Constructor summary

ModifierConstructor
public (EntityType<? extends FoxEntity> type, World world)

Method summary

Modifier and TypeMethod
protected void
a(alq$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_lwugwlsw(C_pyoaoolj$C_oqzxcugu arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
protected void
H()
registerGoals()
method_5959()
initGoals()
m_itjttsuo()
initGoals()
m_8099_()
public void
e_()
aiStep()
method_6007()
tickMovement()
m_alyudxll()
tickMovement()
m_8107_()
protected boolean
fv()
isImmobile()
method_6062()
isImmobile()
m_iauzolbu()
isImmobile()
m_6107_()
private boolean
j(dhp arg0)
canEat(ItemStack arg0)
method_18430(class_1799 arg0)
canEat(ItemStack stack)
m_zosfjimu(C_sddaxwyk arg0)
canEat(ItemStack stack)
m_28597_(C_1391_ arg0)
protected void
a(bfq o, cbo arg1)
populateDefaultEquipmentSlots(RandomSource arg0, DifficultyInstance arg1)
method_5964(class_5819 arg0, class_1266 arg1)
initEquipment(Random arg0, LocalDifficulty arg1)
m_bafwglvj(C_rlomrsco arg0, C_jiailwzt 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)
handleStatus(byte arg0)
m_kkieextx(byte arg0)
handleStatus(byte arg0)
m_7822_(byte arg0)
public static DefaultAttributeContainer$Builder
m()
createAttributes()
method_26885()
createFoxAttributes()
m_jirgigzw()
buildAttributes()
m_28553_()
public FoxEntity
b(awx o, cdj arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_18260(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
m_utwwxouo(C_bdwnwhiu arg0, C_jvojbnla arg1)
createChild(ServerWorld world, AgingEntity waypoint)
m_142606_(C_12_ p_148913_, C_141062_ arg1)
public static boolean
c(cee<crf> o, drr o, ced o, ja o, bfq o)
checkFoxSpawnRules(EntityType<Fox> arg0, LevelAccessor arg1, EntitySpawnReason arg2, BlockPos arg3, RandomSource arg4)
method_39449(class_1299<class_4019> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<FoxEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
m_feziscvb(C_ogavsvbr<C_axinhusn> arg0, C_vdvbsyle arg1, C_bhyaesep arg2, C_hynzadkk arg3, C_rlomrsco arg4)
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_345845_ p_363927_, C_4675_ p_218179_, C_212974_ p_218180_)
public EntityData
a(dsh o, cbo o, ced o, cfo arg3)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, EntitySpawnReason arg2, SpawnGroupData arg3)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
m_oxrxxqyz(C_jmnzlycd arg0, C_jiailwzt arg1, C_bhyaesep arg2, C_lsmqixfx arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
m_6518_(C_1618_ p_28488_, C_469_ p_365391_, C_345845_ p_28490_, C_542_ arg3)
private void
gM()
setTargetGoals()
method_18280()
addTypeSpecificGoals()
m_ckfmrssi()
addTypeSpecificGoals()
m_28562_()
protected void
gO()
playEatingSound()
method_61458()
playEatSound()
m_crfaarku()
playEatSound()
m_351932_()
public EntityDimensions
b(cfi arg0)
getDefaultDimensions(Pose arg0)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
m_qukpzlyx(C_ufdjspmk arg0)
getDefaultDimensions(EntityPose arg0)
m_31586_(C_535_ arg0)
public FoxEntity$Variant
n()
getVariant()
method_47845()
getVariant()
m_dgmreqad()
getVariant()
m_28554_()
private void
a(crf$v arg0)
setVariant(Fox$Variant arg0)
method_47844(class_4019$class_4039 arg0)
setVariant(FoxEntity$Variant variant)
m_dehaypsg(C_axinhusn$C_dqmtshhc arg0)
m_28464_(C_833_$C_345769_ arg0)
public <T> T
a(ko<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
m_jtdlrfwm(C_pscqxfcs<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
m_318834_(C_313543_<? extends T> arg0)
protected void
a(kk arg0)
applyImplicitComponents(DataComponentGetter arg0)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
m_oxfzjslk(C_hmcnusfu arg0)
setComponentsFrom(ComponentAccess arg0)
m_383893_(C_379187_ arg0)
protected <T> boolean
b(ko<T> o, T arg1)
applyImplicitComponent(DataComponentType<T> arg0, T arg1)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
m_vqawgcdu(C_pscqxfcs<T> arg0, T arg1)
setComponentImpl(DataComponentType<T> arg0, T arg1)
m_383901_(C_313543_<T> p_391528_, T arg1)
Stream<LazyEntityReference<LivingEntity>>
gU()
getTrustedEntities()
method_66293()
getTrustedEntities()
m_wtfplsqf()
m_383931_()
void
i(cew arg0)
addTrustedEntity(LivingEntity arg0)
method_66294(class_1309 arg0)
trust(LivingEntity entity)
m_poswsotl(C_usxaxydn arg0)
m_poswsotl(LivingEntity entity)
m_386730_(C_524_ arg0)
private void
a(ceb<cew> arg0)
addTrustedEntity(EntityReference<LivingEntity> arg0)
method_66290(class_10583<class_1309> arg0)
trust(LazyEntityReference<LivingEntity> entity)
m_mmuojxfd(C_xolbcmjn<C_usxaxydn> arg0)
m_mmuojxfd(EntityReference<LivingEntity> value)
m_385144_(C_379042_<C_524_> arg0)
protected void
a(fir arg0)
addAdditionalSaveData(ValueOutput arg0)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
m_xuwbpohg(C_kespdwpv arg0)
writeCustomData(DataWriter arg0)
m_7380_(C_398537_ arg0)
protected void
a(fip arg0)
readAdditionalSaveData(ValueInput arg0)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
m_obkzfysl(C_djkzhngg arg0)
readCustomData(DataReader arg0)
m_7378_(C_398549_ arg0)
private void
gV()
clearTrusted()
method_67659()
clearTrusted()
m_tryhdody()
m_387908_()
public boolean
s()
isSitting()
method_18272()
isSitting()
m_uesdupqb()
isSitting()
m_28555_()
public void
x(boolean arg0)
setSitting(boolean arg0)
method_18294(boolean arg0)
setSitting(boolean sitting)
m_ljsbiiim(boolean arg0)
setSitting(boolean sitting)
m_28610_(boolean arg0)
public boolean
gI()
isFaceplanted()
method_18273()
isWalking()
m_bxzmyivn()
isWalking()
m_28556_()
void
B(boolean arg0)
setFaceplanted(boolean arg0)
method_18295(boolean arg0)
setWalking(boolean walking)
m_uphzwtbt(boolean arg0)
setWalking(boolean walking)
m_28618_(boolean arg0)
boolean
gW()
isDefending()
method_18282()
isAggressive()
m_vplswkcx()
isAggressive()
m_28567_()
void
C(boolean arg0)
setDefending(boolean arg0)
method_18301(boolean arg0)
setAggressive(boolean aggressive)
m_rlytqius(boolean arg0)
setAggressive(boolean aggressive)
m_28622_(boolean arg0)
public boolean
gg()
isSleeping()
method_6113()
isSleeping()
m_uytukmik()
isSleeping()
m_5803_()
void
D(boolean arg0)
setSleeping(boolean arg0)
method_18302(boolean arg0)
setSleeping(boolean sleeping)
m_lflxuqel(boolean arg0)
setSleeping(boolean sleeping)
m_28626_(boolean arg0)
private void
d(int o, boolean arg1)
setFlag(int arg0, boolean arg1)
method_18269(int arg0, boolean arg1)
setFoxFlag(int mask, boolean value)
m_xvobopah(int arg0, boolean arg1)
setFoxFlag(int mask, boolean value)
m_28532_(int p_28534_, boolean arg1)
private boolean
s(int arg0)
getFlag(int arg0)
method_18293(int arg0)
getFoxFlag(int bitmask)
m_vumnkwpn(int arg0)
getFoxFlag(int bitmask)
m_28608_(int arg0)
protected boolean
f(cef arg0)
canDispenserEquipIntoSlot(EquipmentSlot arg0)
method_63626(class_1304 arg0)
canDispenserEquipSlot(EquipmentSlot arg0)
m_zqlgoica(C_yuycoehb arg0)
canDispenserEquipInto(EquipmentSlot arg0)
m_218379_(C_516_ arg0)
public boolean
g(dhp arg0)
canHoldItem(ItemStack arg0)
method_5939(class_1799 arg0)
canPickupItem(ItemStack arg0)
m_kxilreut(C_sddaxwyk arg0)
canPickupItem(ItemStack arg0)
m_7252_(C_1391_ arg0)
private void
k(dhp arg0)
spitOutItem(ItemStack arg0)
method_18289(class_1799 arg0)
spit(ItemStack stack)
m_iqrgnkdw(C_sddaxwyk arg0)
spit(ItemStack stack)
m_28601_(C_1391_ arg0)
private void
l(dhp arg0)
dropItemStack(ItemStack arg0)
method_18291(class_1799 arg0)
dropItem(ItemStack stack)
m_ptzfkeez(C_sddaxwyk arg0)
dropItem(ItemStack stack)
m_28605_(C_1391_ arg0)
protected void
a(awx o, cvr arg1)
pickUpItem(ServerLevel arg0, ItemEntity arg1)
method_5949(class_3218 arg0, class_1542 arg1)
loot(ServerWorld arg0, ItemEntity arg1)
m_avgkrrey(C_bdwnwhiu arg0, C_uqpzijng arg1)
loot(ServerWorld arg0, ItemEntity arg1)
m_7581_(C_12_ p_28514_, C_976_ arg1)
public void
g()
tick()
method_5773()
tick()
m_arkgrfeb()
tick()
m_8119_()
public boolean
i(dhp arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
m_njyokwrm(C_sddaxwyk arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
protected void
a(czl o, cey arg1)
onOffspringSpawnedFromEgg(Player arg0, Mob arg1)
method_18249(class_1657 arg0, class_1308 arg1)
onPlayerSpawnedChild(PlayerEntity arg0, MobEntity arg1)
m_gflspffg(C_jzrpycqo arg0, C_dxkfswlz arg1)
onPlayerSpawnedChild(PlayerEntity arg0, MobEntity arg1)
m_5502_(C_1141_ p_28482_, C_526_ arg1)
public boolean
gJ()
isPouncing()
method_18274()
isChasing()
m_kmmmlmss()
isChasing()
m_28557_()
public void
y(boolean arg0)
setIsPouncing(boolean arg0)
method_18296(boolean arg0)
setChasing(boolean chasing)
m_vdepdtwn(boolean arg0)
setChasing(boolean chasing)
m_28612_(boolean arg0)
public boolean
gK()
isFullyCrouched()
method_18275()
isFullyCrouched()
m_hgjltjvv()
isFullyCrouched()
m_28558_()
public void
z(boolean arg0)
setIsCrouching(boolean arg0)
method_18297(boolean arg0)
setCrouching(boolean crouching)
m_apoyvjmi(boolean arg0)
setCrouching(boolean crouching)
m_28614_(boolean arg0)
public boolean
cu()
isCrouching()
method_18276()
isInSneakingPose()
m_oqgpazne()
isCrouching()
m_6047_()
public void
A(boolean arg0)
setIsInterested(boolean arg0)
method_18299(boolean arg0)
setRollingHead(boolean rollingHead)
m_xkpkacqa(boolean arg0)
setRollingHead(boolean rollingHead)
m_28616_(boolean arg0)
public boolean
gL()
isInterested()
method_18277()
isRollingHead()
m_yhanyshv()
isRollingHead()
m_28559_()
public float
J(float arg0)
getHeadRollAngle(float arg0)
method_18298(float arg0)
getHeadRoll(float tickProgress)
m_entdqhly(float arg0)
getHeadRoll(float tickDelta)
m_28620_(float arg0)
public float
K(float arg0)
getCrouchAmount(float arg0)
method_18300(float arg0)
getBodyRotationHeightOffset(float tickProgress)
m_dbqgppkh(float arg0)
getBodyRotationHeightOffset(float tickDelta)
m_28624_(float arg0)
public void
g(cew arg0)
setTarget(LivingEntity arg0)
method_5980(class_1309 arg0)
setTarget(LivingEntity arg0)
m_hykyexft(C_usxaxydn arg0)
setTarget(LivingEntity arg0)
m_6710_(C_524_ arg0)
void
gX()
wakeUp()
method_18283()
stopSleeping()
m_umwbpcmy()
stopSleeping()
m_28568_()
void
gY()
clearStates()
method_18284()
stopActions()
m_jznhijuk()
stopActions()
m_28569_()
boolean
gZ()
canMove()
method_18285()
wantsToPickupItem()
m_znqnotjf()
wantsToPickupItem()
m_28570_()
public void
X()
playAmbientSound()
method_5966()
playAmbientSound()
m_frolgtzg()
playAmbientSound()
m_8032_()
protected SoundEvent
p()
getAmbientSound()
method_5994()
getAmbientSound()
m_jjefzxbm()
getAmbientSound()
m_7515_()
protected SoundEvent
e(cci arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_spwwmdyl(C_sbxfkpyv arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
f_()
getDeathSound()
method_6002()
getDeathSound()
m_axkhmdzu()
getDeathSound()
m_5592_()
boolean
j(cew arg0)
trusts(LivingEntity arg0)
method_18428(class_1309 arg0)
canTrust(LivingEntity entity)
m_onrungke(C_usxaxydn arg0)
canTrust(LivingEntity entity)
m_28529_(C_524_ arg0)
protected void
b(awx o, cci arg1)
dropAllDeathLoot(ServerLevel arg0, DamageSource arg1)
method_16080(class_3218 arg0, class_1282 arg1)
drop(ServerWorld arg0, DamageSource arg1)
m_qsomaeaq(C_bdwnwhiu arg0, C_sbxfkpyv arg1)
drop(ServerWorld arg0, DamageSource arg1)
m_6668_(C_12_ p_28536_, C_489_ arg1)
public static boolean
a(crf o, cew o)
isPathClear(Fox arg0, LivingEntity arg1)
method_18257(class_4019 arg0, class_1309 arg1)
canJumpChase(FoxEntity fox, LivingEntity chasedEntity)
m_nuviczfv(C_axinhusn arg0, C_usxaxydn arg1)
canJumpChase(FoxEntity fox, LivingEntity chasedEntity)
m_28471_(C_833_ p_28472_, C_524_ p_28473_)
public Vec3d
F()
getLeashOffset()
method_29919()
getLeashOffset()
m_klnnueyu()
getLeashOffset()
m_27831_()