Class WolfBegGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.WolfBegGoal

public class WolfBegGoal extends Goal
Mappings:
Namespace Name
official bbb
intermediary net/minecraft/class_1337
named net/minecraft/entity/ai/goal/WolfBegGoal
  • Field Details

    • wolf

      private final WolfEntity wolf
      Mappings:
      Namespace Name Mixin selector
      official a Lbbb;a:Lbhc;
      intermediary field_6384 Lnet/minecraft/class_1337;field_6384:Lnet/minecraft/class_1493;
      named wolf Lnet/minecraft/entity/ai/goal/WolfBegGoal;wolf:Lnet/minecraft/entity/passive/WolfEntity;
    • begFrom

      @Nullable private @Nullable PlayerEntity begFrom
      Mappings:
      Namespace Name Mixin selector
      official b Lbbb;b:Lbmh;
      intermediary field_6383 Lnet/minecraft/class_1337;field_6383:Lnet/minecraft/class_1657;
      named begFrom Lnet/minecraft/entity/ai/goal/WolfBegGoal;begFrom:Lnet/minecraft/entity/player/PlayerEntity;
    • world

      private final World world
      Mappings:
      Namespace Name Mixin selector
      official c Lbbb;c:Lbyv;
      intermediary field_6381 Lnet/minecraft/class_1337;field_6381:Lnet/minecraft/class_1937;
      named world Lnet/minecraft/entity/ai/goal/WolfBegGoal;world:Lnet/minecraft/world/World;
    • begDistance

      private final float begDistance
      Mappings:
      Namespace Name Mixin selector
      official d Lbbb;d:F
      intermediary field_6380 Lnet/minecraft/class_1337;field_6380:F
      named begDistance Lnet/minecraft/entity/ai/goal/WolfBegGoal;begDistance:F
    • timer

      private int timer
      Mappings:
      Namespace Name Mixin selector
      official e Lbbb;e:I
      intermediary field_6382 Lnet/minecraft/class_1337;field_6382:I
      named timer Lnet/minecraft/entity/ai/goal/WolfBegGoal;timer:I
    • validPlayerPredicate

      private final TargetPredicate validPlayerPredicate
      Mappings:
      Namespace Name Mixin selector
      official f Lbbb;f:Lbfd;
      intermediary field_18085 Lnet/minecraft/class_1337;field_18085:Lnet/minecraft/class_4051;
      named validPlayerPredicate Lnet/minecraft/entity/ai/goal/WolfBegGoal;validPlayerPredicate:Lnet/minecraft/entity/ai/TargetPredicate;
  • Constructor Details

    • WolfBegGoal

      public WolfBegGoal(WolfEntity wolf, float begDistance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbbb;<init>(Lbhc;F)V
      intermediary <init> Lnet/minecraft/class_1337;<init>(Lnet/minecraft/class_1493;F)V
      named <init> Lnet/minecraft/entity/ai/goal/WolfBegGoal;<init>(Lnet/minecraft/entity/passive/WolfEntity;F)V
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
      Mappings:
      Namespace Name Mixin selector
      official a Lbbs;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 Lbbs;b()Z
      intermediary method_6266 Lnet/minecraft/class_1352;method_6266()Z
      named shouldContinue Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
    • start

      public void start()
      Overrides:
      start in class Goal
      Mappings:
      Namespace Name Mixin selector
      official c Lbbs;c()V
      intermediary method_6269 Lnet/minecraft/class_1352;method_6269()V
      named start Lnet/minecraft/entity/ai/goal/Goal;start()V
    • stop

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

      public boolean shouldRunEveryTick()
      Returns if the goal should run every tick or not.

      This returns false by default. If this returns false, the goal will tick once after the entity is spawned, and will tick every other tick.

      Overrides:
      shouldRunEveryTick in class Goal
      Returns:
      if the goal should run every tick or not
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lbbs;f()Z
      intermediary method_38846 Lnet/minecraft/class_1352;method_38846()Z
      named shouldRunEveryTick Lnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
    • tick

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

      private boolean isAttractive(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lbbb;a(Lbmh;)Z
      intermediary method_6244 Lnet/minecraft/class_1337;method_6244(Lnet/minecraft/class_1657;)Z
      named isAttractive Lnet/minecraft/entity/ai/goal/WolfBegGoal;isAttractive(Lnet/minecraft/entity/player/PlayerEntity;)Z