net.minecraft.world.entity.animal

public class Fox

extends Animal

All mapped superinterfaces:

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

cms
net.minecraft.world.entity.animal.Fox
net.minecraft.class_4019
net.minecraft.entity.passive.FoxEntity

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Integer>
co
DATA_TYPE_ID
field_17949
VARIANT
private static final EntityDataAccessor<Byte>
cp
DATA_FLAGS_ID
field_17950
FOX_FLAGS
private static final int
cq
FLAG_SITTING
field_30331
SITTING_FLAG
public static final int
ck
FLAG_CROUCHING
field_30328
CROUCHING_FLAG
public static final int
cl
FLAG_INTERESTED
field_30329
ROLLING_HEAD_FLAG
public static final int
cm
FLAG_POUNCING
field_30330
CHASING_FLAG
private static final int
cr
FLAG_SLEEPING
field_30332
SLEEPING_FLAG
private static final int
cs
FLAG_FACEPLANTED
field_30333
WALKING_FLAG
private static final int
ct
FLAG_DEFENDING
field_30334
AGGRESSIVE_FLAG
private static final EntityDataAccessor<Optional<EntityReference<LivingEntity>>>
cu
DATA_TRUSTED_ID_0
field_17951
OWNER
private static final EntityDataAccessor<Optional<EntityReference<LivingEntity>>>
cv
DATA_TRUSTED_ID_1
field_17952
OTHER_TRUSTED
static final Predicate<ItemEntity>
cw
ALLOWED_ITEMS
field_17953
PICKABLE_DROP_FILTER
private static final Predicate<Entity>
cx
TRUSTED_TARGET_SELECTOR
field_17954
JUST_ATTACKED_SOMETHING_FILTER
static final Predicate<Entity>
cy
STALKABLE_PREY
field_17955
CHICKEN_AND_RABBIT_FILTER
private static final Predicate<Entity>
cz
AVOID_PLAYERS
field_17956
NOTICEABLE_PLAYER_FILTER
private static final int
cA
MIN_TICKS_BEFORE_EAT
field_30335
EATING_DURATION
private static final EntityDimensions
cB
BABY_DIMENSIONS
field_47772
BABY_BASE_DIMENSIONS
private static final com.mojang.serialization.Codec<List<EntityReference<LivingEntity>>>
cC
TRUSTED_LIST_CODEC
field_56652
TRUSTED_ENTITIES_CODEC
private static final boolean
cD
DEFAULT_SLEEPING
field_57607
DEFAULT_SLEEPING
private static final boolean
cE
DEFAULT_SITTING
field_57608
DEFAULT_SITTING
private static final boolean
cF
DEFAULT_CROUCHING
field_57609
DEFAULT_CROUCHING
private Goal
cG
landTargetGoal
field_17957
followChickenAndRabbitGoal
private Goal
cH
turtleEggTargetGoal
field_17958
followBabyTurtleGoal
private Goal
cI
fishTargetGoal
field_17959
followFishGoal
private float
cJ
interestedAngle
field_17960
headRollProgress
private float
cM
interestedAngleO
field_17961
lastHeadRollProgress
float
cN
crouchAmount
field_17962
extraRollingHeight
float
cO
crouchAmountO
field_17963
lastExtraRollingHeight
private int
cP
ticksSinceEaten
field_17964
eatingTime

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
a(all$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
H()
registerGoals()
method_5959()
initGoals()
public void
e_()
aiStep()
method_6007()
tickMovement()
protected boolean
fm()
isImmobile()
method_6062()
isImmobile()
private boolean
j(dcv arg0)
canEat(ItemStack arg0)
method_18430(class_1799 arg0)
canEat(ItemStack stack)
protected void
a(bck arg0, bxh arg1)
populateDefaultEquipmentSlots(RandomSource arg0, DifficultyInstance arg1)
method_5964(class_5819 arg0, class_1266 arg1)
initEquipment(Random arg0, LocalDifficulty arg1)
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
public static AttributeSupplier$Builder
m()
createAttributes()
method_26885()
createFoxAttributes()
public Fox
b(aub arg0, bzc arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_18260(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public static boolean
c(bzv<cms> arg0, dmv arg1, bzu arg2, jb arg3, bck 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)
public SpawnGroupData
a(dnl arg0, bxh arg1, bzu arg2, cbe 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)
private void
gL()
setTargetGoals()
method_18280()
addTypeSpecificGoals()
protected void
gN()
playEatingSound()
method_61458()
playEatSound()
public EntityDimensions
e(cay arg0)
getDefaultDimensions(Pose arg0)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
public Fox$Variant
n()
getVariant()
method_47845()
getVariant()
private void
a(cms$v arg0)
setVariant(Fox$Variant arg0)
method_47844(class_4019$class_4039 arg0)
setVariant(FoxEntity$Variant variant)
public <T> T
a(kp<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
a(kl arg0)
applyImplicitComponents(DataComponentGetter arg0)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
protected <T> boolean
b(kp<T> arg0, T arg1)
applyImplicitComponent(DataComponentType<T> arg0, T arg1)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
Stream<EntityReference<LivingEntity>>
gT()
getTrustedEntities()
method_66293()
getTrustedEntities()
void
i(cam arg0)
addTrustedEntity(LivingEntity arg0)
method_66294(class_1309 arg0)
trust(LivingEntity entity)
private void
a(bzs<cam> arg0)
addTrustedEntity(EntityReference<LivingEntity> arg0)
method_66290(class_10583<class_1309> arg0)
trust(LazyEntityReference<LivingEntity> entity)
protected void
a(fdc arg0)
addAdditionalSaveData(ValueOutput arg0)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
a(fda arg0)
readAdditionalSaveData(ValueInput arg0)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
private void
gU()
clearTrusted()
method_67659()
clearTrusted()
public boolean
t()
isSitting()
method_18272()
isSitting()
public void
x(boolean arg0)
setSitting(boolean arg0)
method_18294(boolean arg0)
setSitting(boolean sitting)
public boolean
gH()
isFaceplanted()
method_18273()
isWalking()
void
B(boolean arg0)
setFaceplanted(boolean arg0)
method_18295(boolean arg0)
setWalking(boolean walking)
boolean
gV()
isDefending()
method_18282()
isAggressive()
void
C(boolean arg0)
setDefending(boolean arg0)
method_18301(boolean arg0)
setAggressive(boolean aggressive)
public boolean
fY()
isSleeping()
method_6113()
isSleeping()
void
D(boolean arg0)
setSleeping(boolean arg0)
method_18302(boolean arg0)
setSleeping(boolean sleeping)
private void
d(int arg0, boolean arg1)
setFlag(int arg0, boolean arg1)
method_18269(int arg0, boolean arg1)
setFoxFlag(int mask, boolean value)
private boolean
s(int arg0)
getFlag(int arg0)
method_18293(int arg0)
getFoxFlag(int bitmask)
protected boolean
f(bzw arg0)
canDispenserEquipIntoSlot(EquipmentSlot arg0)
method_63626(class_1304 arg0)
canDispenserEquipSlot(EquipmentSlot arg0)
public boolean
g(dcv arg0)
canHoldItem(ItemStack arg0)
method_5939(class_1799 arg0)
canPickupItem(ItemStack arg0)
private void
k(dcv arg0)
spitOutItem(ItemStack arg0)
method_18289(class_1799 arg0)
spit(ItemStack stack)
private void
l(dcv arg0)
dropItemStack(ItemStack arg0)
method_18291(class_1799 arg0)
dropItem(ItemStack stack)
protected void
a(aub arg0, cqz arg1)
pickUpItem(ServerLevel arg0, ItemEntity arg1)
method_5949(class_3218 arg0, class_1542 arg1)
loot(ServerWorld arg0, ItemEntity arg1)
public void
g()
tick()
method_5773()
tick()
public boolean
i(dcv arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
protected void
a(cut arg0, cao arg1)
onOffspringSpawnedFromEgg(Player arg0, Mob arg1)
method_18249(class_1657 arg0, class_1308 arg1)
onPlayerSpawnedChild(PlayerEntity arg0, MobEntity arg1)
public boolean
gI()
isPouncing()
method_18274()
isChasing()
public void
y(boolean arg0)
setIsPouncing(boolean arg0)
method_18296(boolean arg0)
setChasing(boolean chasing)
public boolean
gJ()
isFullyCrouched()
method_18275()
isFullyCrouched()
public void
z(boolean arg0)
setIsCrouching(boolean arg0)
method_18297(boolean arg0)
setCrouching(boolean crouching)
public boolean
cl()
isCrouching()
method_18276()
isInSneakingPose()
public void
A(boolean arg0)
setIsInterested(boolean arg0)
method_18299(boolean arg0)
setRollingHead(boolean rollingHead)
public boolean
gK()
isInterested()
method_18277()
isRollingHead()
public float
J(float arg0)
getHeadRollAngle(float arg0)
method_18298(float arg0)
getHeadRoll(float tickProgress)
public float
K(float arg0)
getCrouchAmount(float arg0)
method_18300(float arg0)
getBodyRotationHeightOffset(float tickProgress)
public void
g(cam arg0)
setTarget(LivingEntity arg0)
method_5980(class_1309 arg0)
setTarget(LivingEntity arg0)
void
gW()
wakeUp()
method_18283()
stopSleeping()
void
gX()
clearStates()
method_18284()
stopActions()
boolean
gY()
canMove()
method_18285()
wantsToPickupItem()
public void
X()
playAmbientSound()
method_5966()
playAmbientSound()
protected SoundEvent
p()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
e(byb arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
f_()
getDeathSound()
method_6002()
getDeathSound()
boolean
j(cam arg0)
trusts(LivingEntity arg0)
method_18428(class_1309 arg0)
canTrust(LivingEntity entity)
protected void
b(aub arg0, byb arg1)
dropAllDeathLoot(ServerLevel arg0, DamageSource arg1)
method_16080(class_3218 arg0, class_1282 arg1)
drop(ServerWorld arg0, DamageSource arg1)
public static boolean
a(cms arg0, cam arg1)
isPathClear(Fox arg0, LivingEntity arg1)
method_18257(class_4019 arg0, class_1309 arg1)
canJumpChase(FoxEntity fox, LivingEntity chasedEntity)
public Vec3
F()
getLeashOffset()
method_29919()
getLeashOffset()