Class AnimalEntity

All Implemented Interfaces:
CommandOutput, Nameable, EntityLike
Direct Known Subclasses:
AxolotlEntity, BeeEntity, ChickenEntity, CowEntity, FoxEntity, GoatEntity, HoglinEntity, HorseBaseEntity, OcelotEntity, PandaEntity, PigEntity, PolarBearEntity, RabbitEntity, SheepEntity, StriderEntity, TameableEntity, TurtleEntity

public abstract class AnimalEntity extends PassiveEntity
Mappings:
Namespace Name
official bhl
intermediary net/minecraft/class_1429
named net/minecraft/entity/passive/AnimalEntity
  • Field Details

    • BREEDING_COOLDOWN

      static final int BREEDING_COOLDOWN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bY Lbhl;bY:I
      intermediary field_30270 Lnet/minecraft/class_1429;field_30270:I
      named BREEDING_COOLDOWN Lnet/minecraft/entity/passive/AnimalEntity;BREEDING_COOLDOWN:I
    • loveTicks

      private int loveTicks
      Mappings:
      Namespace Name Mixin selector
      official bW Lbhl;bW:I
      intermediary field_6745 Lnet/minecraft/class_1429;field_6745:I
      named loveTicks Lnet/minecraft/entity/passive/AnimalEntity;loveTicks:I
    • lovingPlayer

      @Nullable private @Nullable UUID lovingPlayer
      Mappings:
      Namespace Name Mixin selector
      official bX Lbhl;bX:Ljava/util/UUID;
      intermediary field_6744 Lnet/minecraft/class_1429;field_6744:Ljava/util/UUID;
      named lovingPlayer Lnet/minecraft/entity/passive/AnimalEntity;lovingPlayer:Ljava/util/UUID;
  • Constructor Details

    • AnimalEntity

      protected AnimalEntity(EntityType<? extends AnimalEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lawt;<init>(Lawx;Lcad;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
  • Method Details

    • mobTick

      protected void mobTick()
      Overrides:
      mobTick in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official R Laxj;R()V
      intermediary method_5958 Lnet/minecraft/class_1308;method_5958()V
      named mobTick Lnet/minecraft/entity/mob/MobEntity;mobTick()V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      official w_ Laxh;w_()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
    • damage

      public boolean damage(DamageSource source, float amount)
      Overrides:
      damage in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lawt;a(Lawd;F)Z
      intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
    • getPathfindingFavor

      public float getPathfindingFavor(BlockPos pos, WorldView world)
      Overrides:
      getPathfindingFavor in class PathAwareEntity
      Mappings:
      Namespace Name Mixin selector
      official a Laxq;a(Lgh;Lcag;)F
      intermediary method_6144 Lnet/minecraft/class_1314;method_6144(Lnet/minecraft/class_2338;Lnet/minecraft/class_4538;)F
      named getPathfindingFavor Lnet/minecraft/entity/mob/PathAwareEntity;getPathfindingFavor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/WorldView;)F
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Overrides:
      writeCustomDataToNbt in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lawt;b(Loc;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • getHeightOffset

      public double getHeightOffset()
      Overrides:
      getHeightOffset in class Entity
      Mappings:
      Namespace Name Mixin selector
      official bp Lawt;bp()D
      intermediary method_5678 Lnet/minecraft/class_1297;method_5678()D
      named getHeightOffset Lnet/minecraft/entity/Entity;getHeightOffset()D
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Overrides:
      readCustomDataFromNbt in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lawt;a(Loc;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • isValidNaturalSpawn

      public static boolean isValidNaturalSpawn(EntityType<? extends AnimalEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      official b Lbhl;b(Lawx;Lcae;Laxl;Lgh;Ljava/util/Random;)Z
      intermediary method_20663 Lnet/minecraft/class_1429;method_20663(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Ljava/util/Random;)Z
      named isValidNaturalSpawn Lnet/minecraft/entity/passive/AnimalEntity;isValidNaturalSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)Z
    • isLightLevelValidForNaturalSpawn

      protected static boolean isLightLevelValidForNaturalSpawn(BlockRenderView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhl;a(Lbzg;Lgh;)Z
      intermediary method_39448 Lnet/minecraft/class_1429;method_39448(Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;)Z
      named isLightLevelValidForNaturalSpawn Lnet/minecraft/entity/passive/AnimalEntity;isLightLevelValidForNaturalSpawn(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/util/math/BlockPos;)Z
    • getMinAmbientSoundDelay

      public int getMinAmbientSoundDelay()
      Overrides:
      getMinAmbientSoundDelay in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official J Laxj;J()I
      intermediary method_5970 Lnet/minecraft/class_1308;method_5970()I
      named getMinAmbientSoundDelay Lnet/minecraft/entity/mob/MobEntity;getMinAmbientSoundDelay()I
    • canImmediatelyDespawn

      public boolean canImmediatelyDespawn(double distanceSquared)
      Overrides:
      canImmediatelyDespawn in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official h Laxj;h(D)Z
      intermediary method_5974 Lnet/minecraft/class_1308;method_5974(D)Z
      named canImmediatelyDespawn Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
    • getXpToDrop

      protected int getXpToDrop(PlayerEntity player)
      Called when this entity is killed and returns the amount of experience to drop.

      player may be null if shouldAlwaysDropXp() returns true.

      Overrides:
      getXpToDrop in class MobEntity
      Parameters:
      player - the attacking player
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Laxh;d(Lbnr;)I
      intermediary method_6110 Lnet/minecraft/class_1309;method_6110(Lnet/minecraft/class_1657;)I
      named getXpToDrop Lnet/minecraft/entity/LivingEntity;getXpToDrop(Lnet/minecraft/entity/player/PlayerEntity;)I
    • isBreedingItem

      public boolean isBreedingItem(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official n Lbhl;n(Lbue;)Z
      intermediary method_6481 Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
      named isBreedingItem Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
    • interactMob

      public ActionResult interactMob(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official b Laxj;b(Lbnr;Lavp;)Lavq;
      intermediary method_5992 Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      named interactMob Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
    • eat

      protected void eat(PlayerEntity player, Hand hand, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhl;a(Lbnr;Lavp;Lbue;)V
      intermediary method_6475 Lnet/minecraft/class_1429;method_6475(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)V
      named eat Lnet/minecraft/entity/passive/AnimalEntity;eat(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;)V
    • canEat

      public boolean canEat()
      Mappings:
      Namespace Name Mixin selector
      official fB Lbhl;fB()Z
      intermediary method_6482 Lnet/minecraft/class_1429;method_6482()Z
      named canEat Lnet/minecraft/entity/passive/AnimalEntity;canEat()Z
    • lovePlayer

      public void lovePlayer(@Nullable @Nullable PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official g Lbhl;g(Lbnr;)V
      intermediary method_6480 Lnet/minecraft/class_1429;method_6480(Lnet/minecraft/class_1657;)V
      named lovePlayer Lnet/minecraft/entity/passive/AnimalEntity;lovePlayer(Lnet/minecraft/entity/player/PlayerEntity;)V
    • setLoveTicks

      public void setLoveTicks(int loveTicks)
      Mappings:
      Namespace Name Mixin selector
      official s Lbhl;s(I)V
      intermediary method_6476 Lnet/minecraft/class_1429;method_6476(I)V
      named setLoveTicks Lnet/minecraft/entity/passive/AnimalEntity;setLoveTicks(I)V
    • getLoveTicks

      public int getLoveTicks()
      Mappings:
      Namespace Name Mixin selector
      official fC Lbhl;fC()I
      intermediary method_29270 Lnet/minecraft/class_1429;method_29270()I
      named getLoveTicks Lnet/minecraft/entity/passive/AnimalEntity;getLoveTicks()I
    • getLovingPlayer

      @Nullable public @Nullable ServerPlayerEntity getLovingPlayer()
      Mappings:
      Namespace Name Mixin selector
      official fD Lbhl;fD()Ladj;
      intermediary method_6478 Lnet/minecraft/class_1429;method_6478()Lnet/minecraft/class_3222;
      named getLovingPlayer Lnet/minecraft/entity/passive/AnimalEntity;getLovingPlayer()Lnet/minecraft/server/network/ServerPlayerEntity;
    • isInLove

      public boolean isInLove()
      Mappings:
      Namespace Name Mixin selector
      official fE Lbhl;fE()Z
      intermediary method_6479 Lnet/minecraft/class_1429;method_6479()Z
      named isInLove Lnet/minecraft/entity/passive/AnimalEntity;isInLove()Z
    • resetLoveTicks

      public void resetLoveTicks()
      Mappings:
      Namespace Name Mixin selector
      official fF Lbhl;fF()V
      intermediary method_6477 Lnet/minecraft/class_1429;method_6477()V
      named resetLoveTicks Lnet/minecraft/entity/passive/AnimalEntity;resetLoveTicks()V
    • canBreedWith

      public boolean canBreedWith(AnimalEntity other)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhl;a(Lbhl;)Z
      intermediary method_6474 Lnet/minecraft/class_1429;method_6474(Lnet/minecraft/class_1429;)Z
      named canBreedWith Lnet/minecraft/entity/passive/AnimalEntity;canBreedWith(Lnet/minecraft/entity/passive/AnimalEntity;)Z
    • breed

      public void breed(ServerWorld world, AnimalEntity other)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhl;a(Ladi;Lbhl;)V
      intermediary method_24650 Lnet/minecraft/class_1429;method_24650(Lnet/minecraft/class_3218;Lnet/minecraft/class_1429;)V
      named breed Lnet/minecraft/entity/passive/AnimalEntity;breed(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/AnimalEntity;)V
    • handleStatus

      public void handleStatus(byte status)
      Overrides:
      handleStatus in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lawt;a(B)V
      intermediary method_5711 Lnet/minecraft/class_1297;method_5711(B)V
      named handleStatus Lnet/minecraft/entity/Entity;handleStatus(B)V