net.minecraft.world.entity.animal.fox

public class Fox

extends Animal

All mapped superinterfaces:

SyncedDataHolder, DebugValueSource, Nameable, ItemOwner, SlotProvider, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter, Attackable, WaypointTransmitter, Waypoint, EquipmentUser, Leashable, Targeting

cvo
net.minecraft.world.entity.animal.fox.Fox
net.minecraft.class_4019
net.minecraft.entity.passive.FoxEntity
net.minecraft.src.C_432134_
net.minecraft.world.entity.animal.fox.EntityFox

字段概要

修饰符与类型字段
private static final EntityDataAccessor<Integer>
cz
DATA_TYPE_ID
field_17949
VARIANT
f_436816_
private static final EntityDataAccessor<Byte>
cA
DATA_FLAGS_ID
field_17950
FOX_FLAGS
f_433344_
private static final int
cB
FLAG_SITTING
field_30331
SITTING_FLAG
f_436387_
public static final int
cv
FLAG_CROUCHING
field_30328
CROUCHING_FLAG
f_435337_
public static final int
cw
FLAG_INTERESTED
field_30329
ROLLING_HEAD_FLAG
f_435893_
public static final int
cx
FLAG_POUNCING
field_30330
CHASING_FLAG
f_436400_
private static final int
cC
FLAG_SLEEPING
field_30332
SLEEPING_FLAG
f_436570_
private static final int
cD
FLAG_FACEPLANTED
field_30333
WALKING_FLAG
f_433619_
private static final int
cE
FLAG_DEFENDING
field_30334
AGGRESSIVE_FLAG
f_437330_
private static final EntityDataAccessor<Optional<EntityReference<LivingEntity>>>
cF
DATA_TRUSTED_ID_0
field_17951
OWNER
f_434296_
private static final EntityDataAccessor<Optional<EntityReference<LivingEntity>>>
cG
DATA_TRUSTED_ID_1
field_17952
OTHER_TRUSTED
f_433655_
static final Predicate<ItemEntity>
cH
ALLOWED_ITEMS
field_17953
PICKABLE_DROP_FILTER
f_435655_
private static final Predicate<Entity>
cI
TRUSTED_TARGET_SELECTOR
field_17954
JUST_ATTACKED_SOMETHING_FILTER
f_435428_
static final Predicate<Entity>
cJ
STALKABLE_PREY
field_17955
CHICKEN_AND_RABBIT_FILTER
f_435982_
private static final Predicate<Entity>
cK
AVOID_PLAYERS
field_17956
NOTICEABLE_PLAYER_FILTER
f_434364_
private static final int
cL
MIN_TICKS_BEFORE_EAT
field_30335
EATING_DURATION
f_433255_
private static final EntityDimensions
cM
BABY_DIMENSIONS
field_47772
BABY_BASE_DIMENSIONS
f_434259_
private static final com.mojang.serialization.Codec<List<EntityReference<LivingEntity>>>
cN
TRUSTED_LIST_CODEC
field_56652
TRUSTED_ENTITIES_CODEC
f_433262_
private static final boolean
cO
DEFAULT_SLEEPING
field_57607
DEFAULT_SLEEPING
f_437082_
private static final boolean
cP
DEFAULT_SITTING
field_57608
DEFAULT_SITTING
f_436554_
private static final boolean
cQ
DEFAULT_CROUCHING
field_57609
DEFAULT_CROUCHING
f_434946_
private Goal
cR
landTargetGoal
field_17957
followChickenAndRabbitGoal
f_435669_
private Goal
cU
turtleEggTargetGoal
field_17958
followBabyTurtleGoal
f_436868_
private Goal
cV
fishTargetGoal
field_17959
followFishGoal
f_436411_
private float
cW
interestedAngle
field_17960
headRollProgress
f_437076_
private float
cX
interestedAngleO
field_17961
lastHeadRollProgress
f_436089_
float
cY
crouchAmount
field_17962
extraRollingHeight
f_433780_
float
cZ
crouchAmountO
field_17963
lastExtraRollingHeight
f_435056_
private int
da
ticksSinceEaten
field_17964
eatingTime
f_435627_

构造函数概要

修饰符构造函数
public (EntityType<? extends Fox> p_456417_, Level arg1)

方法概要

修饰符与类型方法
protected void
a(ama$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
protected void
D()
registerGoals()
method_5959()
initGoals()
m_8099_()
public void
d_()
aiStep()
method_6007()
tickMovement()
m_8107_()
protected boolean
fE()
isImmobile()
method_6062()
isImmobile()
m_6107_()
private boolean
k(dlt arg0)
canEat(ItemStack arg0)
method_18430(class_1799 arg0)
canEat(ItemStack stack)
m_441202_(C_1391_ arg0)
private boolean
l(dlt arg0)
isConsumableFood(ItemStack arg0)
method_76726(class_1799 arg0)
isConsumableFood(ItemStack stack)
m_445558_(C_1391_ arg0)
protected void
a(bgr arg0, cda arg1)
populateDefaultEquipmentSlots(RandomSource arg0, DifficultyInstance arg1)
method_5964(class_5819 arg0, class_1266 arg1)
initEquipment(Random arg0, LocalDifficulty arg1)
m_213945_(C_212974_ p_460053_, C_469_ arg1)
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
m_7822_(byte arg0)
public static AttributeSupplier$Builder
p()
createAttributes()
method_26885()
createFoxAttributes()
m_438723_()
public Fox
b(axf arg0, cfy arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_18260(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
m_142606_(C_12_ p_461009_, C_141062_ arg1)
public static boolean
c(cgu<cvo> arg0, dwp arg1, cgt arg2, is arg3, bgr arg4)
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_438844_(C_513_<C_432134_> p_456857_, C_1598_ p_454853_, C_345845_ p_451684_, C_4675_ p_460187_, C_212974_ p_453273_)
public SpawnGroupData
a(dxf arg0, cda arg1, cgt arg2, cie 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_6518_(C_1618_ p_459197_, C_469_ p_450648_, C_345845_ p_450471_, C_542_ arg3)
private void
gV()
setTargetGoals()
method_18280()
addTypeSpecificGoals()
m_441974_()
protected void
gX()
playEatingSound()
method_61458()
playEatSound()
m_353044_()
public EntityDimensions
b(chx arg0)
getDefaultDimensions(Pose arg0)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
m_31586_(C_535_ arg0)
public Fox$Variant
gP()
getVariant()
method_47845()
getVariant()
m_440004_()
private void
a(cvo$v arg0)
setVariant(Fox$Variant arg0)
method_47844(class_4019$class_4039 arg0)
setVariant(FoxEntity$Variant variant)
m_440721_(C_432134_$C_432331_ arg0)
public <T> T
a(kh<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
m_318834_(C_313543_<? extends T> arg0)
protected void
a(kd arg0)
applyImplicitComponents(DataComponentGetter arg0)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
m_384844_(C_379187_ arg0)
protected <T> boolean
b(kh<T> arg0, T arg1)
applyImplicitComponent(DataComponentType<T> arg0, T arg1)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
m_385246_(C_313543_<T> p_452054_, T arg1)
Stream<EntityReference<LivingEntity>>
hd()
getTrustedEntities()
method_66293()
getTrustedEntities()
m_441473_()
void
i(chl arg0)
addTrustedEntity(LivingEntity arg0)
method_66294(class_1309 arg0)
trust(LivingEntity entity)
m_440764_(C_524_ arg0)
private void
a(cgr<chl> arg0)
addTrustedEntity(EntityReference<LivingEntity> arg0)
method_66290(class_10583<class_1309> arg0)
trust(LazyEntityReference<LivingEntity> entity)
m_438958_(C_379042_<C_524_> arg0)
protected void
a(fns arg0)
addAdditionalSaveData(ValueOutput arg0)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
m_7380_(C_398537_ arg0)
protected void
a(fnq arg0)
readAdditionalSaveData(ValueInput arg0)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
m_7378_(C_398549_ arg0)
private void
he()
clearTrusted()
method_67659()
clearTrusted()
m_441029_()
public boolean
gQ()
isSitting()
method_18272()
isSitting()
m_444086_()
public void
x(boolean arg0)
setSitting(boolean arg0)
method_18294(boolean arg0)
setSitting(boolean sitting)
m_443341_(boolean arg0)
public boolean
gR()
isFaceplanted()
method_18273()
isWalking()
m_442322_()
void
B(boolean arg0)
setFaceplanted(boolean arg0)
method_18295(boolean arg0)
setWalking(boolean walking)
m_445983_(boolean arg0)
boolean
hf()
isDefending()
method_18282()
isAggressive()
m_447603_()
void
C(boolean arg0)
setDefending(boolean arg0)
method_18301(boolean arg0)
setAggressive(boolean aggressive)
m_443851_(boolean arg0)
public boolean
gr()
isSleeping()
method_6113()
isSleeping()
m_5803_()
void
D(boolean arg0)
setSleeping(boolean arg0)
method_18302(boolean arg0)
setSleeping(boolean sleeping)
m_444270_(boolean arg0)
private void
d(int arg0, boolean arg1)
setFlag(int arg0, boolean arg1)
method_18269(int arg0, boolean arg1)
setFoxFlag(int mask, boolean value)
m_441541_(int p_457665_, boolean arg1)
private boolean
s(int arg0)
getFlag(int arg0)
method_18293(int arg0)
getFoxFlag(int bitmask)
m_444697_(int arg0)
protected boolean
f(cgv arg0)
canDispenserEquipIntoSlot(EquipmentSlot arg0)
method_63626(class_1304 arg0)
canDispenserEquipSlot(EquipmentSlot arg0)
m_218379_(C_516_ arg0)
public boolean
h(dlt arg0)
canHoldItem(ItemStack arg0)
method_5939(class_1799 arg0)
canPickupItem(ItemStack arg0)
m_7252_(C_1391_ arg0)
private void
m(dlt arg0)
spitOutItem(ItemStack arg0)
method_18289(class_1799 arg0)
spit(ItemStack stack)
m_438866_(C_1391_ arg0)
private void
n(dlt arg0)
dropItemStack(ItemStack arg0)
method_18291(class_1799 arg0)
dropItem(ItemStack stack)
m_441582_(C_1391_ arg0)
protected void
a(axf arg0, czl arg1)
pickUpItem(ServerLevel arg0, ItemEntity arg1)
method_5949(class_3218 arg0, class_1542 arg1)
loot(ServerWorld arg0, ItemEntity arg1)
m_7581_(C_12_ p_456495_, C_976_ arg1)
public void
g()
tick()
method_5773()
tick()
m_8119_()
public boolean
j(dlt arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
protected void
a(ddm arg0, chn arg1)
onOffspringSpawnedFromEgg(Player arg0, Mob arg1)
method_18249(class_1657 arg0, class_1308 arg1)
onPlayerSpawnedChild(PlayerEntity arg0, MobEntity arg1)
m_5502_(C_1141_ p_451644_, C_526_ arg1)
public boolean
gS()
isPouncing()
method_18274()
isChasing()
m_441350_()
public void
y(boolean arg0)
setIsPouncing(boolean arg0)
method_18296(boolean arg0)
setChasing(boolean chasing)
m_439474_(boolean arg0)
public boolean
gT()
isFullyCrouched()
method_18275()
isFullyCrouched()
m_443540_()
public void
z(boolean arg0)
setIsCrouching(boolean arg0)
method_18297(boolean arg0)
setCrouching(boolean crouching)
m_447382_(boolean arg0)
public boolean
cz()
isCrouching()
method_18276()
isInSneakingPose()
m_6047_()
public void
A(boolean arg0)
setIsInterested(boolean arg0)
method_18299(boolean arg0)
setRollingHead(boolean rollingHead)
m_447676_(boolean arg0)
public boolean
gU()
isInterested()
method_18277()
isRollingHead()
m_440926_()
public float
L(float arg0)
getHeadRollAngle(float arg0)
method_18298(float arg0)
getHeadRoll(float tickProgress)
m_446260_(float arg0)
public float
M(float arg0)
getCrouchAmount(float arg0)
method_18300(float arg0)
getBodyRotationHeightOffset(float tickProgress)
m_442965_(float arg0)
public void
g(chl arg0)
setTarget(LivingEntity arg0)
method_5980(class_1309 arg0)
setTarget(LivingEntity arg0)
m_6710_(C_524_ arg0)
void
hg()
wakeUp()
method_18283()
stopSleeping()
m_440800_()
void
hh()
clearStates()
method_18284()
stopActions()
m_444955_()
boolean
hi()
canMove()
method_18285()
wantsToPickupItem()
m_442181_()
public void
T()
playAmbientSound()
method_5966()
playAmbientSound()
m_8032_()
protected SoundEvent
W()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
protected SoundEvent
h(cex arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
fd()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
boolean
j(chl arg0)
trusts(LivingEntity arg0)
method_18428(class_1309 arg0)
canTrust(LivingEntity entity)
m_439493_(C_524_ arg0)
protected void
b(axf arg0, cex arg1)
dropAllDeathLoot(ServerLevel arg0, DamageSource arg1)
method_16080(class_3218 arg0, class_1282 arg1)
drop(ServerWorld arg0, DamageSource arg1)
m_6668_(C_12_ p_459794_, C_489_ arg1)
public static boolean
a(cvo arg0, chl arg1)
isPathClear(Fox arg0, LivingEntity arg1)
method_18257(class_4019 arg0, class_1309 arg1)
canJumpChase(FoxEntity fox, LivingEntity chasedEntity)
m_442472_(C_432134_ p_453266_, C_524_ p_460555_)
public Vec3
B()
getLeashOffset()
method_29919()
getLeashOffset()
m_33927_()