Class PassiveEntity

All Implemented Interfaces:
CommandOutput, Nameable, EntityLike
Direct Known Subclasses:
AnimalEntity, MerchantEntity

public abstract class PassiveEntity extends PathAwareEntity
Mappings:
Namespace Name
official atd
intermediary net/minecraft/class_1296
named net/minecraft/entity/passive/PassiveEntity
  • Field Details

    • CHILD

      private static final TrackedData<Boolean> CHILD
      Mappings:
      Namespace Name Mixin selector
      official bS Latd;bS:Lwf;
      intermediary field_5949 Lnet/minecraft/class_1296;field_5949:Lnet/minecraft/class_2940;
      named CHILD Lnet/minecraft/entity/passive/PassiveEntity;CHILD:Lnet/minecraft/entity/data/TrackedData;
    • BABY_AGE

      public static final int BABY_AGE
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official b Latd;b:I
      intermediary field_29969 Lnet/minecraft/class_1296;field_29969:I
      named BABY_AGE Lnet/minecraft/entity/passive/PassiveEntity;BABY_AGE:I
    • field_29970

      private static final int field_29970
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official bT Latd;bT:I
      intermediary field_29970 Lnet/minecraft/class_1296;field_29970:I
      named field_29970 Lnet/minecraft/entity/passive/PassiveEntity;field_29970:I
    • breedingAge

      protected int breedingAge
      Mappings:
      Namespace Name Mixin selector
      official c Latd;c:I
      intermediary field_5950 Lnet/minecraft/class_1296;field_5950:I
      named breedingAge Lnet/minecraft/entity/passive/PassiveEntity;breedingAge:I
    • forcedAge

      protected int forcedAge
      Mappings:
      Namespace Name Mixin selector
      official d Latd;d:I
      intermediary field_5948 Lnet/minecraft/class_1296;field_5948:I
      named forcedAge Lnet/minecraft/entity/passive/PassiveEntity;forcedAge:I
    • happyTicksRemaining

      protected int happyTicksRemaining
      Mappings:
      Namespace Name Mixin selector
      official e Latd;e:I
      intermediary field_5947 Lnet/minecraft/class_1296;field_5947:I
      named happyTicksRemaining Lnet/minecraft/entity/passive/PassiveEntity;happyTicksRemaining:I
  • Constructor Details

    • PassiveEntity

      protected PassiveEntity(EntityType<? extends PassiveEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Latf;<init>(Latj;Lbwp;)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

    • initialize

      public EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData, @Nullable @Nullable NbtCompound entityNbt)
      Overrides:
      initialize in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Latv;a(Lbxd;Lary;Latx;Laul;Lna;)Laul;
      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_2487;)Lnet/minecraft/class_1315;
      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/nbt/NbtCompound;)Lnet/minecraft/entity/EntityData;
    • createChild

      @Nullable public abstract @Nullable PassiveEntity createChild(ServerWorld world, PassiveEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Latd;a(Labr;Latd;)Latd;
      intermediary method_5613 Lnet/minecraft/class_1296;method_5613(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1296;
      named createChild Lnet/minecraft/entity/passive/PassiveEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/PassiveEntity;
    • initDataTracker

      protected void initDataTracker()
      Overrides:
      initDataTracker in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a_ Latf;a_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • isReadyToBreed

      public boolean isReadyToBreed()
      Mappings:
      Namespace Name Mixin selector
      official g Latd;g()Z
      intermediary method_19184 Lnet/minecraft/class_1296;method_19184()Z
      named isReadyToBreed Lnet/minecraft/entity/passive/PassiveEntity;isReadyToBreed()Z
    • getBreedingAge

      public int getBreedingAge()
      Mappings:
      Namespace Name Mixin selector
      official j Latd;j()I
      intermediary method_5618 Lnet/minecraft/class_1296;method_5618()I
      named getBreedingAge Lnet/minecraft/entity/passive/PassiveEntity;getBreedingAge()I
    • growUp

      public void growUp(int age, boolean overGrow)
      Mappings:
      Namespace Name Mixin selector
      official a Latd;a(IZ)V
      intermediary method_5620 Lnet/minecraft/class_1296;method_5620(IZ)V
      named growUp Lnet/minecraft/entity/passive/PassiveEntity;growUp(IZ)V
    • growUp

      public void growUp(int age)
      Mappings:
      Namespace Name Mixin selector
      official a_ Latd;a_(I)V
      intermediary method_5615 Lnet/minecraft/class_1296;method_5615(I)V
      named growUp Lnet/minecraft/entity/passive/PassiveEntity;growUp(I)V
    • setBreedingAge

      public void setBreedingAge(int age)
      Mappings:
      Namespace Name Mixin selector
      official b_ Latd;b_(I)V
      intermediary method_5614 Lnet/minecraft/class_1296;method_5614(I)V
      named setBreedingAge Lnet/minecraft/entity/passive/PassiveEntity;setBreedingAge(I)V
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Overrides:
      writeCustomDataToNbt in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official b Latf;b(Lna;)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
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Overrides:
      readCustomDataFromNbt in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Latf;a(Lna;)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
    • onTrackedDataSet

      public void onTrackedDataSet(TrackedData<?> data)
      Overrides:
      onTrackedDataSet in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Latf;a(Lwf;)V
      intermediary method_5674 Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
      named onTrackedDataSet Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official u_ Latt;u_()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
    • onGrowUp

      protected void onGrowUp()
      Mappings:
      Namespace Name Mixin selector
      official n Latd;n()V
      intermediary method_5619 Lnet/minecraft/class_1296;method_5619()V
      named onGrowUp Lnet/minecraft/entity/passive/PassiveEntity;onGrowUp()V
    • isBaby

      public boolean isBaby()
      Overrides:
      isBaby in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official w_ Latt;w_()Z
      intermediary method_6109 Lnet/minecraft/class_1309;method_6109()Z
      named isBaby Lnet/minecraft/entity/LivingEntity;isBaby()Z
    • setBaby

      public void setBaby(boolean baby)
      Overrides:
      setBaby in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Latv;a(Z)V
      intermediary method_7217 Lnet/minecraft/class_1308;method_7217(Z)V
      named setBaby Lnet/minecraft/entity/mob/MobEntity;setBaby(Z)V