Class RabbitEntity.EatCarrotCropGoal

Enclosing class:
RabbitEntity

static class RabbitEntity.EatCarrotCropGoal extends MoveToTargetPosGoal
Mappings:
Namespace Name
official xe$g
intermediary net/minecraft/class_2623$class_2631
named net/minecraft/entity/passive/RabbitEntity$EatCarrotCropGoal
  • Field Details

    • rabbit

      private final RabbitEntity rabbit
      Mappings:
      Namespace Name Mixin selector
      official c Lxe$g;c:Lxe;
      intermediary field_12003 Lnet/minecraft/class_2623$class_2631;field_12003:Lnet/minecraft/class_2623;
      named rabbit Lnet/minecraft/entity/passive/RabbitEntity$EatCarrotCropGoal;rabbit:Lnet/minecraft/entity/passive/RabbitEntity;
    • wantsCarrots

      private boolean wantsCarrots
      Mappings:
      Namespace Name Mixin selector
      official d Lxe$g;d:Z
      intermediary field_12004 Lnet/minecraft/class_2623$class_2631;field_12004:Z
      named wantsCarrots Lnet/minecraft/entity/passive/RabbitEntity$EatCarrotCropGoal;wantsCarrots:Z
    • hasTarget

      private boolean hasTarget
      Mappings:
      Namespace Name Mixin selector
      official e Lxe$g;e:Z
      intermediary field_12005 Lnet/minecraft/class_2623$class_2631;field_12005:Z
      named hasTarget Lnet/minecraft/entity/passive/RabbitEntity$EatCarrotCropGoal;hasTarget:Z
  • Constructor Details

    • EatCarrotCropGoal

      public EatCarrotCropGoal(RabbitEntity rabbit)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lxe$g;<init>(Lxe;)V
      intermediary <init> Lnet/minecraft/class_2623$class_2631;<init>(Lnet/minecraft/class_2623;)V
      named <init> Lnet/minecraft/entity/passive/RabbitEntity$EatCarrotCropGoal;<init>(Lnet/minecraft/entity/passive/RabbitEntity;)V
  • Method Details

    • canStart

      public boolean canStart()
      Overrides:
      canStart in class MoveToTargetPosGoal
      Mappings:
      Namespace Name Mixin selector
      official a Lui;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 MoveToTargetPosGoal
      Mappings:
      Namespace Name Mixin selector
      official b Lui;b()Z
      intermediary method_2744 Lnet/minecraft/class_896;method_2744()Z
      named shouldContinue Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
    • tick

      public void tick()
      Overrides:
      tick in class MoveToTargetPosGoal
      Mappings:
      Namespace Name Mixin selector
      official e Lui;e()V
      intermediary method_2746 Lnet/minecraft/class_896;method_2746()V
      named tick Lnet/minecraft/entity/ai/goal/Goal;tick()V
    • isTargetPos

      protected boolean isTargetPos(World world, BlockPos pos)
      Specified by:
      isTargetPos in class MoveToTargetPosGoal
      Mappings:
      Namespace Name Mixin selector
      official a Luu;a(Lajs;Lco;)Z
      intermediary method_11012 Lnet/minecraft/class_2615;method_11012(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Z
      named isTargetPos Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;isTargetPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z