Class FleeSunGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.FleeSunGoal
Direct Known Subclasses:
Fox.SeekShelterGoal

public class FleeSunGoal extends Goal
  • Field Details

    • mob

      protected final PathfinderMob mob
    • wantedX

      private double wantedX
    • wantedY

      private double wantedY
    • wantedZ

      private double wantedZ
    • speedModifier

      private final double speedModifier
    • level

      private final Level level
  • Constructor Details

    • FleeSunGoal

      public FleeSunGoal(PathfinderMob p_25221_, double p_25222_)
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • setWantedPos

      protected boolean setWantedPos()
    • canContinueToUse

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

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

      @Nullable protected Vec3 getHidePos()