Class EscapeSunlightGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.EscapeSunlightGoal
Direct Known Subclasses:
FoxEntity.AvoidDaylightGoal

public class EscapeSunlightGoal
extends Goal
  • Field Details

    • mob

      protected final PathAwareEntity mob
    • targetX

      private double targetX
    • targetY

      private double targetY
    • targetZ

      private double targetZ
    • speed

      private final double speed
    • world

      private final World world
  • Constructor Details

    • EscapeSunlightGoal

      public EscapeSunlightGoal​(PathAwareEntity mob, double speed)
  • Method Details

    • canStart

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

      protected boolean targetShadedPos()
    • shouldContinue

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

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

      @Nullable protected Vec3d locateShadedPos()