Class FoxEntity.EatSweetBerriesGoal

Enclosing class:
FoxEntity

public class FoxEntity.EatSweetBerriesGoal
extends MoveToTargetPosGoal
Mappings:
Namespace Name
official bbs$f
intermediary net/minecraft/class_4019$class_4025
named net/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal
  • Field Details

    • timer

      protected int timer
      Mappings:
      Namespace Name Mixin selector
      official g Lbbs$f;g:I
      intermediary field_17974 Lnet/minecraft/class_4019$class_4025;field_17974:I
      named timer Lnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;timer:I
  • Constructor Details

    • EatSweetBerriesGoal

      public EatSweetBerriesGoal​(double speed, int range, int maxYDifference)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbbs$f;<init>(Lbbs;DII)V
      intermediary <init> Lnet/minecraft/class_4019$class_4025;<init>(Lnet/minecraft/class_4019;DII)V
      named <init> Lnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;<init>(Lnet/minecraft/entity/passive/FoxEntity;DII)V
  • Method Details

    • getDesiredSquaredDistanceToTarget

      public double getDesiredSquaredDistanceToTarget()
      Overrides:
      getDesiredSquaredDistanceToTarget in class MoveToTargetPosGoal
      Mappings:
      Namespace Name Mixin selector
      official h Laxl;h()D
      intermediary method_6291 Lnet/minecraft/class_1367;method_6291()D
      named getDesiredSquaredDistanceToTarget Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;getDesiredSquaredDistanceToTarget()D
    • shouldResetPath

      public boolean shouldResetPath()
      Overrides:
      shouldResetPath in class MoveToTargetPosGoal
      Mappings:
      Namespace Name Mixin selector
      official k Laxl;k()Z
      intermediary method_6294 Lnet/minecraft/class_1367;method_6294()Z
      named shouldResetPath Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;shouldResetPath()Z
    • isTargetPos

      protected boolean isTargetPos​(WorldView world, BlockPos pos)
      Specified by:
      isTargetPos in class MoveToTargetPosGoal
      Mappings:
      Namespace Name Mixin selector
      official a Laxl;a(Lbty;Lfx;)Z
      intermediary method_6296 Lnet/minecraft/class_1367;method_6296(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
      named isTargetPos Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;isTargetPos(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
    • tick

      public void tick()
      Overrides:
      tick in class MoveToTargetPosGoal
      Mappings:
      Namespace Name Mixin selector
      official e Lawx;e()V
      intermediary method_6268 Lnet/minecraft/class_1352;method_6268()V
      named tick Lnet/minecraft/entity/ai/goal/Goal;tick()V
    • eatSweetBerry

      protected void eatSweetBerry()
      Mappings:
      Namespace Name Mixin selector
      official n Lbbs$f;n()V
      intermediary method_18307 Lnet/minecraft/class_4019$class_4025;method_18307()V
      named eatSweetBerry Lnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;eatSweetBerry()V
    • method_33586

      private void method_33586​(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Lbbs$f;a(Lcht;)V
      intermediary method_33586 Lnet/minecraft/class_4019$class_4025;method_33586(Lnet/minecraft/class_2680;)V
      named method_33586 Lnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;method_33586(Lnet/minecraft/block/BlockState;)V
    • method_33587

      private void method_33587​(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official b Lbbs$f;b(Lcht;)V
      intermediary method_33587 Lnet/minecraft/class_4019$class_4025;method_33587(Lnet/minecraft/class_2680;)V
      named method_33587 Lnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;method_33587(Lnet/minecraft/block/BlockState;)V
    • canStart

      public boolean canStart()
      Overrides:
      canStart in class MoveToTargetPosGoal
      Mappings:
      Namespace Name Mixin selector
      official a Lawx;a()Z
      intermediary method_6264 Lnet/minecraft/class_1352;method_6264()Z
      named canStart Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
    • start

      public void start()
      Overrides:
      start in class MoveToTargetPosGoal
      Mappings:
      Namespace Name Mixin selector
      official c Lawx;c()V
      intermediary method_6269 Lnet/minecraft/class_1352;method_6269()V
      named start Lnet/minecraft/entity/ai/goal/Goal;start()V