Class FoxEntity

All Implemented Interfaces:
Attackable, DataTracked, EquipmentHolder, Leashable, Targeter, VariantHolder<FoxEntity.Type>, ScoreHolder, Nameable, EntityLike

public class FoxEntity extends AnimalEntity implements VariantHolder<FoxEntity.Type>
Mappings:
Namespace Name
named net/minecraft/entity/passive/FoxEntity
intermediary net/minecraft/class_4019
official cig
  • Field Details

    • TYPE

      private static final TrackedData<Integer> TYPE
      Mappings:
      Namespace Name Mixin selector
      named TYPE Lnet/minecraft/entity/passive/FoxEntity;TYPE:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_17949 Lnet/minecraft/class_4019;field_17949:Lnet/minecraft/class_2940;
      official cd Lcig;cd:Lalc;
    • FOX_FLAGS

      private static final TrackedData<Byte> FOX_FLAGS
      Mappings:
      Namespace Name Mixin selector
      named FOX_FLAGS Lnet/minecraft/entity/passive/FoxEntity;FOX_FLAGS:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_17950 Lnet/minecraft/class_4019;field_17950:Lnet/minecraft/class_2940;
      official ce Lcig;ce:Lalc;
    • SITTING_FLAG

      private static final int SITTING_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SITTING_FLAG Lnet/minecraft/entity/passive/FoxEntity;SITTING_FLAG:I
      intermediary field_30331 Lnet/minecraft/class_4019;field_30331:I
      official cf Lcig;cf:I
    • CROUCHING_FLAG

      public static final int CROUCHING_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CROUCHING_FLAG Lnet/minecraft/entity/passive/FoxEntity;CROUCHING_FLAG:I
      intermediary field_30328 Lnet/minecraft/class_4019;field_30328:I
      official bZ Lcig;bZ:I
    • ROLLING_HEAD_FLAG

      public static final int ROLLING_HEAD_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ROLLING_HEAD_FLAG Lnet/minecraft/entity/passive/FoxEntity;ROLLING_HEAD_FLAG:I
      intermediary field_30329 Lnet/minecraft/class_4019;field_30329:I
      official ca Lcig;ca:I
    • CHASING_FLAG

      public static final int CHASING_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CHASING_FLAG Lnet/minecraft/entity/passive/FoxEntity;CHASING_FLAG:I
      intermediary field_30330 Lnet/minecraft/class_4019;field_30330:I
      official cb Lcig;cb:I
    • SLEEPING_FLAG

      private static final int SLEEPING_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SLEEPING_FLAG Lnet/minecraft/entity/passive/FoxEntity;SLEEPING_FLAG:I
      intermediary field_30332 Lnet/minecraft/class_4019;field_30332:I
      official cg Lcig;cg:I
    • WALKING_FLAG

      private static final int WALKING_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named WALKING_FLAG Lnet/minecraft/entity/passive/FoxEntity;WALKING_FLAG:I
      intermediary field_30333 Lnet/minecraft/class_4019;field_30333:I
      official ch Lcig;ch:I
    • AGGRESSIVE_FLAG

      private static final int AGGRESSIVE_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named AGGRESSIVE_FLAG Lnet/minecraft/entity/passive/FoxEntity;AGGRESSIVE_FLAG:I
      intermediary field_30334 Lnet/minecraft/class_4019;field_30334:I
      official ci Lcig;ci:I
    • OWNER

      private static final TrackedData<Optional<UUID>> OWNER
      Mappings:
      Namespace Name Mixin selector
      named OWNER Lnet/minecraft/entity/passive/FoxEntity;OWNER:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_17951 Lnet/minecraft/class_4019;field_17951:Lnet/minecraft/class_2940;
      official cj Lcig;cj:Lalc;
    • OTHER_TRUSTED

      private static final TrackedData<Optional<UUID>> OTHER_TRUSTED
      Mappings:
      Namespace Name Mixin selector
      named OTHER_TRUSTED Lnet/minecraft/entity/passive/FoxEntity;OTHER_TRUSTED:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_17952 Lnet/minecraft/class_4019;field_17952:Lnet/minecraft/class_2940;
      official ck Lcig;ck:Lalc;
    • PICKABLE_DROP_FILTER

      static final Predicate<ItemEntity> PICKABLE_DROP_FILTER
      Mappings:
      Namespace Name Mixin selector
      named PICKABLE_DROP_FILTER Lnet/minecraft/entity/passive/FoxEntity;PICKABLE_DROP_FILTER:Ljava/util/function/Predicate;
      intermediary field_17953 Lnet/minecraft/class_4019;field_17953:Ljava/util/function/Predicate;
      official cl Lcig;cl:Ljava/util/function/Predicate;
    • JUST_ATTACKED_SOMETHING_FILTER

      private static final Predicate<Entity> JUST_ATTACKED_SOMETHING_FILTER
      Mappings:
      Namespace Name Mixin selector
      named JUST_ATTACKED_SOMETHING_FILTER Lnet/minecraft/entity/passive/FoxEntity;JUST_ATTACKED_SOMETHING_FILTER:Ljava/util/function/Predicate;
      intermediary field_17954 Lnet/minecraft/class_4019;field_17954:Ljava/util/function/Predicate;
      official cm Lcig;cm:Ljava/util/function/Predicate;
    • CHICKEN_AND_RABBIT_FILTER

      static final Predicate<Entity> CHICKEN_AND_RABBIT_FILTER
      Mappings:
      Namespace Name Mixin selector
      named CHICKEN_AND_RABBIT_FILTER Lnet/minecraft/entity/passive/FoxEntity;CHICKEN_AND_RABBIT_FILTER:Ljava/util/function/Predicate;
      intermediary field_17955 Lnet/minecraft/class_4019;field_17955:Ljava/util/function/Predicate;
      official cn Lcig;cn:Ljava/util/function/Predicate;
    • NOTICEABLE_PLAYER_FILTER

      private static final Predicate<Entity> NOTICEABLE_PLAYER_FILTER
      Mappings:
      Namespace Name Mixin selector
      named NOTICEABLE_PLAYER_FILTER Lnet/minecraft/entity/passive/FoxEntity;NOTICEABLE_PLAYER_FILTER:Ljava/util/function/Predicate;
      intermediary field_17956 Lnet/minecraft/class_4019;field_17956:Ljava/util/function/Predicate;
      official co Lcig;co:Ljava/util/function/Predicate;
    • EATING_DURATION

      private static final int EATING_DURATION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named EATING_DURATION Lnet/minecraft/entity/passive/FoxEntity;EATING_DURATION:I
      intermediary field_30335 Lnet/minecraft/class_4019;field_30335:I
      official cp Lcig;cp:I
    • BABY_BASE_DIMENSIONS

      private static final EntityDimensions BABY_BASE_DIMENSIONS
      Mappings:
      Namespace Name Mixin selector
      named BABY_BASE_DIMENSIONS Lnet/minecraft/entity/passive/FoxEntity;BABY_BASE_DIMENSIONS:Lnet/minecraft/entity/EntityDimensions;
      intermediary field_47772 Lnet/minecraft/class_4019;field_47772:Lnet/minecraft/class_4048;
      official cq Lcig;cq:Lbvm;
    • followChickenAndRabbitGoal

      private Goal followChickenAndRabbitGoal
      Mappings:
      Namespace Name Mixin selector
      named followChickenAndRabbitGoal Lnet/minecraft/entity/passive/FoxEntity;followChickenAndRabbitGoal:Lnet/minecraft/entity/ai/goal/Goal;
      intermediary field_17957 Lnet/minecraft/class_4019;field_17957:Lnet/minecraft/class_1352;
      official cr Lcig;cr:Lcdd;
    • followBabyTurtleGoal

      private Goal followBabyTurtleGoal
      Mappings:
      Namespace Name Mixin selector
      named followBabyTurtleGoal Lnet/minecraft/entity/passive/FoxEntity;followBabyTurtleGoal:Lnet/minecraft/entity/ai/goal/Goal;
      intermediary field_17958 Lnet/minecraft/class_4019;field_17958:Lnet/minecraft/class_1352;
      official cs Lcig;cs:Lcdd;
    • followFishGoal

      private Goal followFishGoal
      Mappings:
      Namespace Name Mixin selector
      named followFishGoal Lnet/minecraft/entity/passive/FoxEntity;followFishGoal:Lnet/minecraft/entity/ai/goal/Goal;
      intermediary field_17959 Lnet/minecraft/class_4019;field_17959:Lnet/minecraft/class_1352;
      official ct Lcig;ct:Lcdd;
    • headRollProgress

      private float headRollProgress
      Mappings:
      Namespace Name Mixin selector
      named headRollProgress Lnet/minecraft/entity/passive/FoxEntity;headRollProgress:F
      intermediary field_17960 Lnet/minecraft/class_4019;field_17960:F
      official cu Lcig;cu:F
    • lastHeadRollProgress

      private float lastHeadRollProgress
      Mappings:
      Namespace Name Mixin selector
      named lastHeadRollProgress Lnet/minecraft/entity/passive/FoxEntity;lastHeadRollProgress:F
      intermediary field_17961 Lnet/minecraft/class_4019;field_17961:F
      official cv Lcig;cv:F
    • extraRollingHeight

      float extraRollingHeight
      Mappings:
      Namespace Name Mixin selector
      named extraRollingHeight Lnet/minecraft/entity/passive/FoxEntity;extraRollingHeight:F
      intermediary field_17962 Lnet/minecraft/class_4019;field_17962:F
      official cw Lcig;cw:F
    • lastExtraRollingHeight

      float lastExtraRollingHeight
      Mappings:
      Namespace Name Mixin selector
      named lastExtraRollingHeight Lnet/minecraft/entity/passive/FoxEntity;lastExtraRollingHeight:F
      intermediary field_17963 Lnet/minecraft/class_4019;field_17963:F
      official cx Lcig;cx:F
    • eatingTime

      private int eatingTime
      Mappings:
      Namespace Name Mixin selector
      named eatingTime Lnet/minecraft/entity/passive/FoxEntity;eatingTime:I
      intermediary field_17964 Lnet/minecraft/class_4019;field_17964:I
      official cy Lcig;cy:I
  • Constructor Details

    • FoxEntity

      public FoxEntity(EntityType<? extends FoxEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      official <init> Lbvj;<init>(Lbvq;Ldhh;)V
  • Method Details

    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class PassiveEntity
      API Note:
      Subclasses should override this and add to the builder any data that needs to be tracked.
      Mappings:
      Namespace Name Mixin selector
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      official a Lbvj;a(Lalg$a;)V
    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      official B Lbwh;B()V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      official d_ Lbwf;d_()V
    • isImmobile

      protected boolean isImmobile()
      Overrides:
      isImmobile in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named isImmobile Lnet/minecraft/entity/LivingEntity;isImmobile()Z
      intermediary method_6062 Lnet/minecraft/class_1309;method_6062()Z
      official fi Lbwf;fi()Z
    • canEat

      private boolean canEat(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named canEat Lnet/minecraft/entity/passive/FoxEntity;canEat(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_18430 Lnet/minecraft/class_4019;method_18430(Lnet/minecraft/class_1799;)Z
      official i Lcig;i(Lcxo;)Z
    • initEquipment

      protected void initEquipment(Random random, LocalDifficulty localDifficulty)
      Overrides:
      initEquipment in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named initEquipment Lnet/minecraft/entity/mob/MobEntity;initEquipment(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
      intermediary method_5964 Lnet/minecraft/class_1308;method_5964(Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)V
      official a Lbwh;a(Lbam;Lbtg;)V
    • handleStatus

      public void handleStatus(byte status)
      Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.
      Overrides:
      handleStatus in class AnimalEntity
      See Also:
      API Note:
      To send an entity status, use World.sendEntityStatus(net.minecraft.entity.Entity, byte).
      Mappings:
      Namespace Name Mixin selector
      named handleStatus Lnet/minecraft/entity/Entity;handleStatus(B)V
      intermediary method_5711 Lnet/minecraft/class_1297;method_5711(B)V
      official b Lbvj;b(B)V
    • createFoxAttributes

      public static DefaultAttributeContainer.Builder createFoxAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createFoxAttributes Lnet/minecraft/entity/passive/FoxEntity;createFoxAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_26885 Lnet/minecraft/class_4019;method_26885()Lnet/minecraft/class_5132$class_5133;
      official p Lcig;p()Lbxm$a;
    • createChild

      @Nullable public @Nullable FoxEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity)
      Specified by:
      createChild in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named createChild Lnet/minecraft/entity/passive/FoxEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/FoxEntity;
      intermediary method_18260 Lnet/minecraft/class_4019;method_18260(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_4019;
      official b Lcig;b(Lash;Lbva;)Lcig;
    • canSpawn

      public static boolean canSpawn(EntityType<FoxEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      named canSpawn Lnet/minecraft/entity/passive/FoxEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
      intermediary method_39449 Lnet/minecraft/class_4019;method_39449(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
      official c Lcig;c(Lbvq;Ldhi;Lbvp;Ljh;Lbam;)Z
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named initialize Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;
      intermediary method_5943 Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;
      official a Lbwh;a(Ldhy;Lbtg;Lbvp;Lbwy;)Lbwy;
    • addTypeSpecificGoals

      private void addTypeSpecificGoals()
      Mappings:
      Namespace Name Mixin selector
      named addTypeSpecificGoals Lnet/minecraft/entity/passive/FoxEntity;addTypeSpecificGoals()V
      intermediary method_18280 Lnet/minecraft/class_4019;method_18280()V
      official gA Lcig;gA()V
    • playEatSound

      protected void playEatSound()
      Overrides:
      playEatSound in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named playEatSound Lnet/minecraft/entity/passive/AnimalEntity;playEatSound()V
      intermediary method_61458 Lnet/minecraft/class_1429;method_61458()V
      official gu Lchw;gu()V
    • getBaseDimensions

      public EntityDimensions getBaseDimensions(EntityPose pose)
      Overrides:
      getBaseDimensions in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getBaseDimensions Lnet/minecraft/entity/LivingEntity;getBaseDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;
      intermediary method_55694 Lnet/minecraft/class_1309;method_55694(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;
      official e Lbwf;e(Lbwr;)Lbvm;
    • getVariant

      public FoxEntity.Type getVariant()
      Specified by:
      getVariant in interface VariantHolder<FoxEntity.Type>
      Mappings:
      Namespace Name Mixin selector
      named getVariant Lnet/minecraft/entity/passive/FoxEntity;getVariant()Lnet/minecraft/entity/passive/FoxEntity$Type;
      intermediary method_47845 Lnet/minecraft/class_4019;method_47845()Lnet/minecraft/class_4019$class_4039;
      official t Lcig;t()Lcig$v;
    • setVariant

      public void setVariant(FoxEntity.Type type)
      Specified by:
      setVariant in interface VariantHolder<FoxEntity.Type>
      Mappings:
      Namespace Name Mixin selector
      named setVariant Lnet/minecraft/entity/passive/FoxEntity;setVariant(Lnet/minecraft/entity/passive/FoxEntity$Type;)V
      intermediary method_47844 Lnet/minecraft/class_4019;method_47844(Lnet/minecraft/class_4019$class_4039;)V
      official a Lcig;a(Lcig$v;)V
    • getTrustedUuids

      List<UUID> getTrustedUuids()
      Mappings:
      Namespace Name Mixin selector
      named getTrustedUuids Lnet/minecraft/entity/passive/FoxEntity;getTrustedUuids()Ljava/util/List;
      intermediary method_18281 Lnet/minecraft/class_4019;method_18281()Ljava/util/List;
      official gB Lcig;gB()Ljava/util/List;
    • addTrustedUuid

      void addTrustedUuid(@Nullable @Nullable UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      named addTrustedUuid Lnet/minecraft/entity/passive/FoxEntity;addTrustedUuid(Ljava/util/UUID;)V
      intermediary method_18266 Lnet/minecraft/class_4019;method_18266(Ljava/util/UUID;)V
      official b Lcig;b(Ljava/util/UUID;)V
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses have to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      Overrides:
      writeCustomDataToNbt in class AnimalEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      official b Lbvj;b(Lux;)V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses have to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Overrides:
      readCustomDataFromNbt in class AnimalEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      official a Lbvj;a(Lux;)V
    • isSitting

      public boolean isSitting()
      Mappings:
      Namespace Name Mixin selector
      named isSitting Lnet/minecraft/entity/passive/FoxEntity;isSitting()Z
      intermediary method_18272 Lnet/minecraft/class_4019;method_18272()Z
      official x Lcig;x()Z
    • setSitting

      public void setSitting(boolean sitting)
      Mappings:
      Namespace Name Mixin selector
      named setSitting Lnet/minecraft/entity/passive/FoxEntity;setSitting(Z)V
      intermediary method_18294 Lnet/minecraft/class_4019;method_18294(Z)V
      official x Lcig;x(Z)V
    • isWalking

      public boolean isWalking()
      Mappings:
      Namespace Name Mixin selector
      named isWalking Lnet/minecraft/entity/passive/FoxEntity;isWalking()Z
      intermediary method_18273 Lnet/minecraft/class_4019;method_18273()Z
      official go Lcig;go()Z
    • setWalking

      void setWalking(boolean walking)
      Mappings:
      Namespace Name Mixin selector
      named setWalking Lnet/minecraft/entity/passive/FoxEntity;setWalking(Z)V
      intermediary method_18295 Lnet/minecraft/class_4019;method_18295(Z)V
      official B Lcig;B(Z)V
    • isAggressive

      boolean isAggressive()
      Mappings:
      Namespace Name Mixin selector
      named isAggressive Lnet/minecraft/entity/passive/FoxEntity;isAggressive()Z
      intermediary method_18282 Lnet/minecraft/class_4019;method_18282()Z
      official gC Lcig;gC()Z
    • setAggressive

      void setAggressive(boolean aggressive)
      Mappings:
      Namespace Name Mixin selector
      named setAggressive Lnet/minecraft/entity/passive/FoxEntity;setAggressive(Z)V
      intermediary method_18301 Lnet/minecraft/class_4019;method_18301(Z)V
      official C Lcig;C(Z)V
    • isSleeping

      public boolean isSleeping()
      Overrides:
      isSleeping in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named isSleeping Lnet/minecraft/entity/LivingEntity;isSleeping()Z
      intermediary method_6113 Lnet/minecraft/class_1309;method_6113()Z
      official fR Lbwf;fR()Z
    • setSleeping

      void setSleeping(boolean sleeping)
      Mappings:
      Namespace Name Mixin selector
      named setSleeping Lnet/minecraft/entity/passive/FoxEntity;setSleeping(Z)V
      intermediary method_18302 Lnet/minecraft/class_4019;method_18302(Z)V
      official D Lcig;D(Z)V
    • setFoxFlag

      private void setFoxFlag(int mask, boolean value)
      Mappings:
      Namespace Name Mixin selector
      named setFoxFlag Lnet/minecraft/entity/passive/FoxEntity;setFoxFlag(IZ)V
      intermediary method_18269 Lnet/minecraft/class_4019;method_18269(IZ)V
      official d Lcig;d(IZ)V
    • getFoxFlag

      private boolean getFoxFlag(int bitmask)
      Mappings:
      Namespace Name Mixin selector
      named getFoxFlag Lnet/minecraft/entity/passive/FoxEntity;getFoxFlag(I)Z
      intermediary method_18293 Lnet/minecraft/class_4019;method_18293(I)Z
      official s Lcig;s(I)Z
    • canDispenserEquipSlot

      protected boolean canDispenserEquipSlot(EquipmentSlot slot)
      Overrides:
      canDispenserEquipSlot in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named canDispenserEquipSlot Lnet/minecraft/entity/LivingEntity;canDispenserEquipSlot(Lnet/minecraft/entity/EquipmentSlot;)Z
      intermediary method_63626 Lnet/minecraft/class_1309;method_63626(Lnet/minecraft/class_1304;)Z
      official f Lbwf;f(Lbvr;)Z
    • canPickupItem

      public boolean canPickupItem(ItemStack stack)
      Overrides:
      canPickupItem in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named canPickupItem Lnet/minecraft/entity/mob/MobEntity;canPickupItem(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_5939 Lnet/minecraft/class_1308;method_5939(Lnet/minecraft/class_1799;)Z
      official g Lbwh;g(Lcxo;)Z
    • spit

      private void spit(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named spit Lnet/minecraft/entity/passive/FoxEntity;spit(Lnet/minecraft/item/ItemStack;)V
      intermediary method_18289 Lnet/minecraft/class_4019;method_18289(Lnet/minecraft/class_1799;)V
      official k Lcig;k(Lcxo;)V
    • dropItem

      private void dropItem(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named dropItem Lnet/minecraft/entity/passive/FoxEntity;dropItem(Lnet/minecraft/item/ItemStack;)V
      intermediary method_18291 Lnet/minecraft/class_4019;method_18291(Lnet/minecraft/class_1799;)V
      official l Lcig;l(Lcxo;)V
    • loot

      protected void loot(ServerWorld world, ItemEntity itemEntity)
      Overrides:
      loot in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named loot Lnet/minecraft/entity/mob/MobEntity;loot(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/ItemEntity;)V
      intermediary method_5949 Lnet/minecraft/class_1308;method_5949(Lnet/minecraft/class_3218;Lnet/minecraft/class_1542;)V
      official a Lbwh;a(Lash;Lcma;)V
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class MobEntity
      See Also:
      API Note:
      This can be overridden to add additional logics. super.tick(); should be called in those cases.
      Implementation Note:
      By default, this delegates all logics to MobEntity.baseTick().
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/Entity;tick()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      official h Lbvj;h()V
    • isBreedingItem

      public boolean isBreedingItem(ItemStack stack)
      Specified by:
      isBreedingItem in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named isBreedingItem Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_6481 Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
      official j Lchw;j(Lcxo;)Z
    • onPlayerSpawnedChild

      protected void onPlayerSpawnedChild(PlayerEntity player, MobEntity child)
      Overrides:
      onPlayerSpawnedChild in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named onPlayerSpawnedChild Lnet/minecraft/entity/mob/MobEntity;onPlayerSpawnedChild(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/mob/MobEntity;)V
      intermediary method_18249 Lnet/minecraft/class_1308;method_18249(Lnet/minecraft/class_1657;Lnet/minecraft/class_1308;)V
      official a Lbwh;a(Lcpw;Lbwh;)V
    • isChasing

      public boolean isChasing()
      Mappings:
      Namespace Name Mixin selector
      named isChasing Lnet/minecraft/entity/passive/FoxEntity;isChasing()Z
      intermediary method_18274 Lnet/minecraft/class_4019;method_18274()Z
      official gp Lcig;gp()Z
    • setChasing

      public void setChasing(boolean chasing)
      Mappings:
      Namespace Name Mixin selector
      named setChasing Lnet/minecraft/entity/passive/FoxEntity;setChasing(Z)V
      intermediary method_18296 Lnet/minecraft/class_4019;method_18296(Z)V
      official y Lcig;y(Z)V
    • isJumping

      public boolean isJumping()
      Mappings:
      Namespace Name Mixin selector
      named isJumping Lnet/minecraft/entity/passive/FoxEntity;isJumping()Z
      intermediary method_35172 Lnet/minecraft/class_4019;method_35172()Z
      official gq Lcig;gq()Z
    • isFullyCrouched

      public boolean isFullyCrouched()
      Mappings:
      Namespace Name Mixin selector
      named isFullyCrouched Lnet/minecraft/entity/passive/FoxEntity;isFullyCrouched()Z
      intermediary method_18275 Lnet/minecraft/class_4019;method_18275()Z
      official gr Lcig;gr()Z
    • setCrouching

      public void setCrouching(boolean crouching)
      Mappings:
      Namespace Name Mixin selector
      named setCrouching Lnet/minecraft/entity/passive/FoxEntity;setCrouching(Z)V
      intermediary method_18297 Lnet/minecraft/class_4019;method_18297(Z)V
      official z Lcig;z(Z)V
    • isInSneakingPose

      public boolean isInSneakingPose()
      Returns whether the entity is in a crouching pose.

      Compared to Entity.isSneaking(), it only makes the entity appear crouching and does not bring other effects of sneaking, such as no less obvious name label rendering, no dismounting while riding, etc.

      This is used by vanilla for non-player entities to crouch, such as for foxes and cats. This is also used when the entity is a player and the player would otherwise collide with blocks (for example, when the player is in a 1.5 blocks tall tunnel).

      Overrides:
      isInSneakingPose in class Entity
      Returns:
      whether the entity is in a crouching pose
      Mappings:
      Namespace Name Mixin selector
      named isInSneakingPose Lnet/minecraft/entity/Entity;isInSneakingPose()Z
      intermediary method_18276 Lnet/minecraft/class_1297;method_18276()Z
      official ci Lbvj;ci()Z
    • setRollingHead

      public void setRollingHead(boolean rollingHead)
      Mappings:
      Namespace Name Mixin selector
      named setRollingHead Lnet/minecraft/entity/passive/FoxEntity;setRollingHead(Z)V
      intermediary method_18299 Lnet/minecraft/class_4019;method_18299(Z)V
      official A Lcig;A(Z)V
    • isRollingHead

      public boolean isRollingHead()
      Mappings:
      Namespace Name Mixin selector
      named isRollingHead Lnet/minecraft/entity/passive/FoxEntity;isRollingHead()Z
      intermediary method_18277 Lnet/minecraft/class_4019;method_18277()Z
      official gs Lcig;gs()Z
    • getHeadRoll

      public float getHeadRoll(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getHeadRoll Lnet/minecraft/entity/passive/FoxEntity;getHeadRoll(F)F
      intermediary method_18298 Lnet/minecraft/class_4019;method_18298(F)F
      official J Lcig;J(F)F
    • getBodyRotationHeightOffset

      public float getBodyRotationHeightOffset(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getBodyRotationHeightOffset Lnet/minecraft/entity/passive/FoxEntity;getBodyRotationHeightOffset(F)F
      intermediary method_18300 Lnet/minecraft/class_4019;method_18300(F)F
      official K Lcig;K(F)F
    • setTarget

      public void setTarget(@Nullable @Nullable LivingEntity target)
      Overrides:
      setTarget in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named setTarget Lnet/minecraft/entity/mob/MobEntity;setTarget(Lnet/minecraft/entity/LivingEntity;)V
      intermediary method_5980 Lnet/minecraft/class_1308;method_5980(Lnet/minecraft/class_1309;)V
      official h Lbwh;h(Lbwf;)V
    • stopSleeping

      void stopSleeping()
      Mappings:
      Namespace Name Mixin selector
      named stopSleeping Lnet/minecraft/entity/passive/FoxEntity;stopSleeping()V
      intermediary method_18283 Lnet/minecraft/class_4019;method_18283()V
      official gD Lcig;gD()V
    • stopActions

      void stopActions()
      Mappings:
      Namespace Name Mixin selector
      named stopActions Lnet/minecraft/entity/passive/FoxEntity;stopActions()V
      intermediary method_18284 Lnet/minecraft/class_4019;method_18284()V
      official gE Lcig;gE()V
    • wantsToPickupItem

      boolean wantsToPickupItem()
      Mappings:
      Namespace Name Mixin selector
      named wantsToPickupItem Lnet/minecraft/entity/passive/FoxEntity;wantsToPickupItem()Z
      intermediary method_18285 Lnet/minecraft/class_4019;method_18285()Z
      official gF Lcig;gF()Z
    • playAmbientSound

      public void playAmbientSound()
      Overrides:
      playAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named playAmbientSound Lnet/minecraft/entity/mob/MobEntity;playAmbientSound()V
      intermediary method_5966 Lnet/minecraft/class_1308;method_5966()V
      official R Lbwh;R()V
    • getAmbientSound

      @Nullable protected @Nullable SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named getAmbientSound Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_5994 Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
      official u Lbwh;u()Laxe;
    • getHurtSound

      @Nullable protected @Nullable SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getHurtSound Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      official e Lbwf;e(Lbtz;)Laxe;
    • getDeathSound

      @Nullable protected @Nullable SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      official o_ Lbwf;o_()Laxe;
    • canTrust

      boolean canTrust(UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      named canTrust Lnet/minecraft/entity/passive/FoxEntity;canTrust(Ljava/util/UUID;)Z
      intermediary method_18428 Lnet/minecraft/class_4019;method_18428(Ljava/util/UUID;)Z
      official c Lcig;c(Ljava/util/UUID;)Z
    • drop

      protected void drop(ServerWorld world, DamageSource damageSource)
      Overrides:
      drop in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named drop Lnet/minecraft/entity/LivingEntity;drop(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;)V
      intermediary method_16080 Lnet/minecraft/class_1309;method_16080(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;)V
      official b Lbwf;b(Lash;Lbtz;)V
    • canJumpChase

      public static boolean canJumpChase(FoxEntity fox, LivingEntity chasedEntity)
      Mappings:
      Namespace Name Mixin selector
      named canJumpChase Lnet/minecraft/entity/passive/FoxEntity;canJumpChase(Lnet/minecraft/entity/passive/FoxEntity;Lnet/minecraft/entity/LivingEntity;)Z
      intermediary method_18257 Lnet/minecraft/class_4019;method_18257(Lnet/minecraft/class_4019;Lnet/minecraft/class_1309;)Z
      official a Lcig;a(Lcig;Lbwf;)Z
    • getLeashOffset

      public Vec3d getLeashOffset()
      Returns the offset from the entity's position where the leash is attached to.

      This is different from Entity.getLeashPos(float); this method is called on the entity which a leash is attached to.

      Overrides:
      getLeashOffset in class Entity
      Returns:
      the offset from the entity's position where the leash is attached to
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getLeashOffset Lnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
      intermediary method_29919 Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;
      official cT Lbvj;cT()Lfbx;