Class PassiveEntity

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

public abstract class PassiveEntity extends PathAwareEntity
Mappings:
Namespace Name
official ban
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 bX Lban;bX:Lzr;
      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:
      Mappings:
      Namespace Name Mixin selector
      official b Lban;b:I
      intermediary field_29969 Lnet/minecraft/class_1296;field_29969:I
      named BABY_AGE Lnet/minecraft/entity/passive/PassiveEntity;BABY_AGE:I
    • HAPPY_TICKS

      private static final int HAPPY_TICKS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bY Lban;bY:I
      intermediary field_29970 Lnet/minecraft/class_1296;field_29970:I
      named HAPPY_TICKS Lnet/minecraft/entity/passive/PassiveEntity;HAPPY_TICKS:I
    • breedingAge

      protected int breedingAge
      Mappings:
      Namespace Name Mixin selector
      official c Lban;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 Lban;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 Lban;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> Lbaq;<init>(Lbau;Lcga;)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 Lbbh;a(Lcgp;Lazk;Lbbj;Lbbx;Lpj;)Lbbx;
      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 Lban;a(Lafo;Lban;)Lban;
      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_ Lbaq;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 Lban;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 Lban;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 Lban;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_ Lban;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_ Lban;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 Lbaq;b(Lpj;)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 Lbaq;a(Lpj;)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 Lbaq;a(Lzr;)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 w_ Lbbf;w_()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 Lban;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 y_ Lbbf;y_()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 Lbbh;a(Z)V
      intermediary method_7217 Lnet/minecraft/class_1308;method_7217(Z)V
      named setBaby Lnet/minecraft/entity/mob/MobEntity;setBaby(Z)V
    • toGrowUpAge

      public static int toGrowUpAge(int breedingAge)
      Calculates the age to pass to growUp(int) in seconds.
      Parameters:
      breedingAge - the current, negated breeding age (in ticks)
      API Note:
      When passing the value from getBreedingAge(), make sure to negate the value; otherwise, the entity's age will decrease.
      Mappings:
      Namespace Name Mixin selector
      official c Lban;c(I)I
      intermediary method_41321 Lnet/minecraft/class_1296;method_41321(I)I
      named toGrowUpAge Lnet/minecraft/entity/passive/PassiveEntity;toGrowUpAge(I)I