Class EscapeSunlightGoal

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

public class EscapeSunlightGoal extends Goal
Mappings:
Namespace Name
official tg
intermediary net/minecraft/class_892
named net/minecraft/entity/ai/goal/EscapeSunlightGoal
  • Field Details

    • mob

      private PathAwareEntity mob
      Mappings:
      Namespace Name Mixin selector
      official a Ltg;a:Lsh;
      intermediary field_3485 Lnet/minecraft/class_892;field_3485:Lnet/minecraft/class_877;
      named mob Lnet/minecraft/entity/ai/goal/EscapeSunlightGoal;mob:Lnet/minecraft/entity/PathAwareEntity;
    • targetX

      private double targetX
      Mappings:
      Namespace Name Mixin selector
      official b Ltg;b:D
      intermediary field_3486 Lnet/minecraft/class_892;field_3486:D
      named targetX Lnet/minecraft/entity/ai/goal/EscapeSunlightGoal;targetX:D
    • targetY

      private double targetY
      Mappings:
      Namespace Name Mixin selector
      official c Ltg;c:D
      intermediary field_3487 Lnet/minecraft/class_892;field_3487:D
      named targetY Lnet/minecraft/entity/ai/goal/EscapeSunlightGoal;targetY:D
    • targetZ

      private double targetZ
      Mappings:
      Namespace Name Mixin selector
      official d Ltg;d:D
      intermediary field_3488 Lnet/minecraft/class_892;field_3488:D
      named targetZ Lnet/minecraft/entity/ai/goal/EscapeSunlightGoal;targetZ:D
    • speed

      private double speed
      Mappings:
      Namespace Name Mixin selector
      official e Ltg;e:D
      intermediary field_6840 Lnet/minecraft/class_892;field_6840:D
      named speed Lnet/minecraft/entity/ai/goal/EscapeSunlightGoal;speed:D
    • world

      private World world
      Mappings:
      Namespace Name Mixin selector
      official f Ltg;f:Laht;
      intermediary field_3490 Lnet/minecraft/class_892;field_3490:Lnet/minecraft/class_1150;
      named world Lnet/minecraft/entity/ai/goal/EscapeSunlightGoal;world:Lnet/minecraft/world/World;
  • Constructor Details

    • EscapeSunlightGoal

      public EscapeSunlightGoal(PathAwareEntity mob, double speed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ltg;<init>(Lsh;D)V
      intermediary <init> Lnet/minecraft/class_892;<init>(Lnet/minecraft/class_877;D)V
      named <init> Lnet/minecraft/entity/ai/goal/EscapeSunlightGoal;<init>(Lnet/minecraft/entity/PathAwareEntity;D)V
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
      Mappings:
      Namespace Name Mixin selector
      official a Ltk;a()Z
      intermediary method_2742 Lnet/minecraft/class_896;method_2742()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 Ltk;b()Z
      intermediary method_2744 Lnet/minecraft/class_896;method_2744()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 Ltk;c()V
      intermediary method_2747 Lnet/minecraft/class_896;method_2747()V
      named start Lnet/minecraft/entity/ai/goal/Goal;start()V
    • locateShadedPos

      @Nullable private Vec3d locateShadedPos()
      Mappings:
      Namespace Name Mixin selector
      official f Ltg;f()Lbbh;
      intermediary method_2741 Lnet/minecraft/class_892;method_2741()Lnet/minecraft/class_236;
      named locateShadedPos Lnet/minecraft/entity/ai/goal/EscapeSunlightGoal;locateShadedPos()Lnet/minecraft/util/math/Vec3d;