net.minecraft.entity.passive

public class FoxEntity

extends AnimalEntity

All mapped superinterfaces:

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

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

Field summary

Modifier and TypeField
private static final TrackedData<Integer>
DATA_TYPE_ID
field_17949
VARIANT
private static final TrackedData<Byte>
DATA_FLAGS_ID
field_17950
FOX_FLAGS
private static final float
BABY_SCALE
field_1_1435
field_1_1435
private static final int
FLAG_SITTING
field_30331
SITTING_FLAG
public static final int
FLAG_CROUCHING
field_30328
CROUCHING_FLAG
public static final int
FLAG_INTERESTED
field_30329
ROLLING_HEAD_FLAG
public static final int
FLAG_POUNCING
field_30330
CHASING_FLAG
private static final int
FLAG_SLEEPING
field_30332
SLEEPING_FLAG
private static final int
FLAG_FACEPLANTED
field_30333
WALKING_FLAG
private static final int
FLAG_DEFENDING
field_30334
AGGRESSIVE_FLAG
private static final TrackedData<Optional<LazyEntityReference<LivingEntity>>>
DATA_TRUSTED_ID_0
field_17951
OWNER
private static final TrackedData<Optional<LazyEntityReference<LivingEntity>>>
DATA_TRUSTED_ID_1
field_17952
OTHER_TRUSTED
private static final Predicate<ItemEntity>
ALLOWED_ITEMS
field_17953
PICKABLE_DROP_FILTER
private static final Predicate<Entity>
TRUSTED_TARGET_SELECTOR
field_17954
JUST_ATTACKED_SOMETHING_FILTER
private static final Predicate<Entity>
STALKABLE_PREY
field_17955
CHICKEN_AND_RABBIT_FILTER
private static final Predicate<Entity>
AVOID_PLAYERS
field_17956
NOTICEABLE_PLAYER_FILTER
private static final int
MIN_TICKS_BEFORE_EAT
field_30335
EATING_DURATION
private static final EntityDimensions
BABY_DIMENSIONS
field_47772
BABY_BASE_DIMENSIONS
private static final com.mojang.serialization.Codec<List<LazyEntityReference<LivingEntity>>>
TRUSTED_LIST_CODEC
field_56652
TRUSTED_ENTITIES_CODEC
private static final boolean
DEFAULT_SLEEPING
field_57607
DEFAULT_SLEEPING
private static final boolean
DEFAULT_SITTING
field_57608
DEFAULT_SITTING
private static final boolean
DEFAULT_CROUCHING
field_57609
DEFAULT_CROUCHING
private Goal
landTargetGoal
field_17957
followChickenAndRabbitGoal
private Goal
turtleEggTargetGoal
field_17958
followBabyTurtleGoal
private Goal
fishTargetGoal
field_17959
followFishGoal
private float
interestedAngle
field_17960
headRollProgress
private float
interestedAngleO
field_17961
lastHeadRollProgress
private float
crouchAmount
field_17962
extraRollingHeight
private float
crouchAmountO
field_17963
lastExtraRollingHeight
private static final float
MAX_CROUCH_AMOUNT
field_1_1436
field_1_1436
private int
ticksSinceEaten
field_17964
eatingTime

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
registerGoals()
method_5959()
initGoals()
public void
aiStep()
method_6007()
tickMovement()
protected boolean
isImmobile()
method_6062()
isImmobile()
private boolean
canEat(ItemStack itemInMouth)
method_18430(class_1799 arg0)
canEat(ItemStack stack)
private boolean
isConsumableFood(ItemStack itemStack)
method_76726(class_1799 arg0)
isConsumableFood(ItemStack stack)
protected void
populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty)
method_5964(class_5819 arg0, class_1266 arg1)
initEquipment(Random arg0, LocalDifficulty arg1)
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
public static DefaultAttributeContainer$Builder
createAttributes()
method_26885()
createFoxAttributes()
public FoxEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public static boolean
checkFoxSpawnRules(EntityType<Fox> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
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 EntityData
finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, SpawnGroupData groupData)
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
setTargetGoals()
method_18280()
addTypeSpecificGoals()
protected void
playEatingSound()
method_61458()
playEatSound()
public EntityDimensions
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
public FoxEntity$Variant
getVariant()
method_47845()
getVariant()
private void
setVariant(Fox$Variant variant)
method_47844(class_4019$class_4039 arg0)
setVariant(FoxEntity$Variant variant)
public <T> T
get(DataComponentType<? extends T> type)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
applyImplicitComponents(DataComponentGetter components)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
protected <T> boolean
applyImplicitComponent(DataComponentType<T> type, T value)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
private Stream<LazyEntityReference<LivingEntity>>
getTrustedEntities()
method_66293()
getTrustedEntities()
private void
addTrustedEntity(LivingEntity entity)
method_66294(class_1309 arg0)
trust(LivingEntity entity)
private void
addTrustedEntity(EntityReference<LivingEntity> reference)
method_66290(class_10583<class_1309> arg0)
trust(LazyEntityReference<LivingEntity> entity)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
private void
clearTrusted()
method_67659()
clearTrusted()
public boolean
isSitting()
method_18272()
isSitting()
public void
setSitting(boolean value)
method_18294(boolean arg0)
setSitting(boolean sitting)
public boolean
isFaceplanted()
method_18273()
isWalking()
private void
setFaceplanted(boolean faceplanted)
method_18295(boolean arg0)
setWalking(boolean walking)
private boolean
isDefending()
method_18282()
isAggressive()
private void
setDefending(boolean defending)
method_18301(boolean arg0)
setAggressive(boolean aggressive)
public boolean
isSleeping()
method_6113()
isSleeping()
private void
setSleeping(boolean sleeping)
method_18302(boolean arg0)
setSleeping(boolean sleeping)
private void
setFlag(int flag, boolean value)
method_18269(int arg0, boolean arg1)
setFoxFlag(int mask, boolean value)
private boolean
getFlag(int flag)
method_18293(int arg0)
getFoxFlag(int bitmask)
protected boolean
canDispenserEquipIntoSlot(EquipmentSlot slot)
method_63626(class_1304 arg0)
canDispenserEquipSlot(EquipmentSlot arg0)
public boolean
canHoldItem(ItemStack itemStack)
method_5939(class_1799 arg0)
canPickupItem(ItemStack arg0)
private void
spitOutItem(ItemStack itemStack)
method_18289(class_1799 arg0)
spit(ItemStack stack)
private void
dropItemStack(ItemStack itemStack)
method_18291(class_1799 arg0)
dropItem(ItemStack stack)
protected void
pickUpItem(ServerLevel level, ItemEntity entity)
method_5949(class_3218 arg0, class_1542 arg1)
loot(ServerWorld arg0, ItemEntity arg1)
public void
tick()
method_5773()
tick()
public boolean
isFood(ItemStack itemStack)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
protected void
onOffspringSpawnedFromEgg(Player spawner, Mob offspring)
method_18249(class_1657 arg0, class_1308 arg1)
onPlayerSpawnedChild(PlayerEntity arg0, MobEntity arg1)
public boolean
isPouncing()
method_18274()
isChasing()
public void
setIsPouncing(boolean pouncing)
method_18296(boolean arg0)
setChasing(boolean chasing)
public boolean
isFullyCrouched()
method_18275()
isFullyCrouched()
public void
setIsCrouching(boolean isCrouching)
method_18297(boolean arg0)
setCrouching(boolean crouching)
public boolean
isCrouching()
method_18276()
isInSneakingPose()
public void
setIsInterested(boolean value)
method_18299(boolean arg0)
setRollingHead(boolean rollingHead)
public boolean
isInterested()
method_18277()
isRollingHead()
public float
getHeadRollAngle(float a)
method_18298(float arg0)
getHeadRoll(float tickProgress)
public float
getCrouchAmount(float a)
method_18300(float arg0)
getBodyRotationHeightOffset(float tickProgress)
public void
setTarget(LivingEntity target)
method_5980(class_1309 arg0)
setTarget(LivingEntity arg0)
private void
wakeUp()
method_18283()
stopSleeping()
private void
clearStates()
method_18284()
stopActions()
private boolean
canMove()
method_18285()
wantsToPickupItem()
public void
playAmbientSound()
method_5966()
playAmbientSound()
protected SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
private boolean
trusts(LivingEntity entity)
method_18428(class_1309 arg0)
canTrust(LivingEntity entity)
protected void
dropAllDeathLoot(ServerLevel level, DamageSource source)
method_16080(class_3218 arg0, class_1282 arg1)
drop(ServerWorld arg0, DamageSource arg1)
public static boolean
isPathClear(Fox fox, LivingEntity target)
method_18257(class_4019 arg0, class_1309 arg1)
canJumpChase(FoxEntity fox, LivingEntity chasedEntity)
public Vec3d
getLeashOffset()
method_29919()
getLeashOffset()
public PassiveEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
static boolean
access$000(Fox arg0)
method_36636(class_4019 arg0)
method_36636(FoxEntity arg0)
static Random
access$100(Fox arg0)
method_18287(class_4019 arg0)
method_18287(FoxEntity arg0)
static Random
access$200(Fox arg0)
method_18288(class_4019 arg0)
method_18288(FoxEntity arg0)
static Random
access$300(Fox arg0)
method_18290(class_4019 arg0)
method_18290(FoxEntity arg0)
static boolean
access$400(Fox arg0)
method_1_1713(class_4019 arg0)
method_1_1713(FoxEntity arg0)
private static boolean
lambda$trusts$0(LivingEntity arg0, EntityReference arg1)
method_66291(class_1309 arg0, class_10583 arg1)
method_66291(LivingEntity arg0, LazyEntityReference trusted)
private boolean
lambda$registerGoals$5(LivingEntity arg0, ServerLevel arg1)
method_18429(class_1309 arg0, class_3218 arg1)
method_18429(LivingEntity entity, ServerWorld world)
private boolean
lambda$registerGoals$4(LivingEntity arg0)
method_24347(class_1309 arg0)
method_24347(LivingEntity entity)
private boolean
lambda$registerGoals$3(LivingEntity arg0)
method_20451(class_1309 arg0)
method_20451(LivingEntity entity)
private boolean
lambda$registerGoals$2(LivingEntity arg0)
method_18431(class_1309 arg0)
method_18431(LivingEntity entity)
private static boolean
lambda$registerGoals$1(LivingEntity arg0, ServerLevel arg1)
method_18254(class_1309 arg0, class_3218 arg1)
method_18254(LivingEntity entity, ServerWorld world)
private static boolean
lambda$registerGoals$0(LivingEntity arg0, ServerLevel arg1)
method_18262(class_1309 arg0, class_3218 arg1)
method_18262(LivingEntity entity, ServerWorld world)
private static boolean
lambda$static$3(Entity arg0)
method_18253(class_1297 arg0)
method_18253(Entity entity)
private static boolean
lambda$static$2(Entity arg0)
method_18261(class_1297 arg0)
method_18261(Entity entity)
private static boolean
lambda$static$1(Entity arg0)
method_18267(class_1297 arg0)
method_18267(Entity entity)
private static boolean
lambda$static$0(ItemEntity arg0)
method_18265(class_1542 arg0)
method_18265(ItemEntity item)