Class OcelotAttackGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.OcelotAttackGoal

public class OcelotAttackGoal extends Goal
  • Field Details

    • mob

      private final Mob mob
    • target

      private LivingEntity target
    • attackTime

      private int attackTime
  • Constructor Details

    • OcelotAttackGoal

      public OcelotAttackGoal(Mob p_25658_)
  • Method Details

    • canUse

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

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

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

      public boolean requiresUpdateEveryTick()
      Overrides:
      requiresUpdateEveryTick in class Goal
    • tick

      public void tick()
      Overrides:
      tick in class Goal