Class TurtleEntity.PlayerTemptGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.passive.TurtleEntity.PlayerTemptGoal
Enclosing class:
TurtleEntity

static class TurtleEntity.PlayerTemptGoal extends Goal
  • Field Details

    • TEMPT_TARGETING

      private static final EntityPredicate TEMPT_TARGETING
    • turtle

      private final TurtleEntity turtle
    • speedModifier

      private final double speedModifier
    • player

      private PlayerEntity player
    • calmDown

      private int calmDown
    • items

      private final Set<Item> items
  • Constructor Details

    • PlayerTemptGoal

      PlayerTemptGoal(TurtleEntity p_i48812_1_, double p_i48812_2_, Item p_i48812_4_)
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • shouldFollowItem

      private boolean shouldFollowItem(ItemStack p_203131_1_)
    • canContinueToUse

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class Goal
    • stop

      public void stop()
      Overrides:
      stop in class Goal
    • tick

      public void tick()
      Overrides:
      tick in class Goal