Class AnimalMateGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.AnimalMateGoal
Direct Known Subclasses:
FoxEntity.MateGoal, PandaEntity.PandaMateGoal, TurtleEntity.MateGoal

public class AnimalMateGoal extends Goal
Mappings:
Namespace Name
official bpn
intermediary net/minecraft/class_1341
named net/minecraft/entity/ai/goal/AnimalMateGoal
  • Field Details

    • VALID_MATE_PREDICATE

      private static final TargetPredicate VALID_MATE_PREDICATE
      Mappings:
      Namespace Name Mixin selector
      official d Lbpn;d:Lbts;
      intermediary field_18086 Lnet/minecraft/class_1341;field_18086:Lnet/minecraft/class_4051;
      named VALID_MATE_PREDICATE Lnet/minecraft/entity/ai/goal/AnimalMateGoal;VALID_MATE_PREDICATE:Lnet/minecraft/entity/ai/TargetPredicate;
    • animal

      protected final AnimalEntity animal
      Mappings:
      Namespace Name Mixin selector
      official a Lbpn;a:Lbur;
      intermediary field_6404 Lnet/minecraft/class_1341;field_6404:Lnet/minecraft/class_1429;
      named animal Lnet/minecraft/entity/ai/goal/AnimalMateGoal;animal:Lnet/minecraft/entity/passive/AnimalEntity;
    • entityClass

      private final Class<? extends AnimalEntity> entityClass
      Mappings:
      Namespace Name Mixin selector
      official e Lbpn;e:Ljava/lang/Class;
      intermediary field_6403 Lnet/minecraft/class_1341;field_6403:Ljava/lang/Class;
      named entityClass Lnet/minecraft/entity/ai/goal/AnimalMateGoal;entityClass:Ljava/lang/Class;
    • world

      protected final World world
      Mappings:
      Namespace Name Mixin selector
      official b Lbpn;b:Lcpv;
      intermediary field_6405 Lnet/minecraft/class_1341;field_6405:Lnet/minecraft/class_1937;
      named world Lnet/minecraft/entity/ai/goal/AnimalMateGoal;world:Lnet/minecraft/world/World;
    • mate

      @Nullable protected @Nullable AnimalEntity mate
      Mappings:
      Namespace Name Mixin selector
      official c Lbpn;c:Lbur;
      intermediary field_6406 Lnet/minecraft/class_1341;field_6406:Lnet/minecraft/class_1429;
      named mate Lnet/minecraft/entity/ai/goal/AnimalMateGoal;mate:Lnet/minecraft/entity/passive/AnimalEntity;
    • timer

      private int timer
      Mappings:
      Namespace Name Mixin selector
      official f Lbpn;f:I
      intermediary field_6402 Lnet/minecraft/class_1341;field_6402:I
      named timer Lnet/minecraft/entity/ai/goal/AnimalMateGoal;timer:I
    • speed

      private final double speed
      Mappings:
      Namespace Name Mixin selector
      official g Lbpn;g:D
      intermediary field_6407 Lnet/minecraft/class_1341;field_6407:D
      named speed Lnet/minecraft/entity/ai/goal/AnimalMateGoal;speed:D
  • Constructor Details

    • AnimalMateGoal

      public AnimalMateGoal(AnimalEntity animal, double speed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbpn;<init>(Lbur;D)V
      intermediary <init> Lnet/minecraft/class_1341;<init>(Lnet/minecraft/class_1429;D)V
      named <init> Lnet/minecraft/entity/ai/goal/AnimalMateGoal;<init>(Lnet/minecraft/entity/passive/AnimalEntity;D)V
    • AnimalMateGoal

      public AnimalMateGoal(AnimalEntity animal, double speed, Class<? extends AnimalEntity> entityClass)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbpn;<init>(Lbur;DLjava/lang/Class;)V
      intermediary <init> Lnet/minecraft/class_1341;<init>(Lnet/minecraft/class_1429;DLjava/lang/Class;)V
      named <init> Lnet/minecraft/entity/ai/goal/AnimalMateGoal;<init>(Lnet/minecraft/entity/passive/AnimalEntity;DLjava/lang/Class;)V
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
      Mappings:
      Namespace Name Mixin selector
      official a Lbqb;a()Z
      intermediary method_6264 Lnet/minecraft/class_1352;method_6264()Z
      named canStart Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
    • shouldContinue

      public boolean shouldContinue()
      Overrides:
      shouldContinue in class Goal
      Mappings:
      Namespace Name Mixin selector
      official b Lbqb;b()Z
      intermediary method_6266 Lnet/minecraft/class_1352;method_6266()Z
      named shouldContinue Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
    • stop

      public void stop()
      Overrides:
      stop in class Goal
      Mappings:
      Namespace Name Mixin selector
      official d Lbqb;d()V
      intermediary method_6270 Lnet/minecraft/class_1352;method_6270()V
      named stop Lnet/minecraft/entity/ai/goal/Goal;stop()V
    • tick

      public void tick()
      Overrides:
      tick in class Goal
      Mappings:
      Namespace Name Mixin selector
      official e Lbqb;e()V
      intermediary method_6268 Lnet/minecraft/class_1352;method_6268()V
      named tick Lnet/minecraft/entity/ai/goal/Goal;tick()V
    • findMate

      @Nullable private @Nullable AnimalEntity findMate()
      Mappings:
      Namespace Name Mixin selector
      official h Lbpn;h()Lbur;
      intermediary method_6250 Lnet/minecraft/class_1341;method_6250()Lnet/minecraft/class_1429;
      named findMate Lnet/minecraft/entity/ai/goal/AnimalMateGoal;findMate()Lnet/minecraft/entity/passive/AnimalEntity;
    • breed

      protected void breed()
      Mappings:
      Namespace Name Mixin selector
      official g Lbpn;g()V
      intermediary method_6249 Lnet/minecraft/class_1341;method_6249()V
      named breed Lnet/minecraft/entity/ai/goal/AnimalMateGoal;breed()V