Class WolfBegGoal

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

public class WolfBegGoal
extends Goal
  • Field Details

    • wolf

      private final WolfEntity wolf
    • begFrom

      private PlayerEntity begFrom
    • world

      private final World world
    • begDistance

      private final float begDistance
    • timer

      private int timer
    • validPlayerPredicate

      private final TargetPredicate validPlayerPredicate
  • Constructor Details

    • WolfBegGoal

      public WolfBegGoal​(WolfEntity wolf, float begDistance)
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
    • shouldContinue

      public boolean shouldContinue()
      Overrides:
      shouldContinue in class Goal
    • start

      public void start()
      Overrides:
      start in class Goal
    • stop

      public void stop()
      Overrides:
      stop in class Goal
    • tick

      public void tick()
      Overrides:
      tick in class Goal
    • isAttractive

      private boolean isAttractive​(PlayerEntity player)