Class FleeSunGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.FleeSunGoal
Direct Known Subclasses:
FoxEntity.FindShelterGoal

public class FleeSunGoal extends Goal
  • Field Details

    • mob

      protected final CreatureEntity mob
    • wantedX

      private double wantedX
    • wantedY

      private double wantedY
    • wantedZ

      private double wantedZ
    • speedModifier

      private final double speedModifier
    • level

      private final World level
  • Constructor Details

    • FleeSunGoal

      public FleeSunGoal(CreatureEntity p_i1623_1_, double p_i1623_2_)
  • 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 Vector3d getHidePos()