Class newChomperChompGoal<T extends BasePlant & IChomper>

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
nokunami.floral_warfare.common.entity.ai.goal.plants.attack.newChomperChompGoal<T>

public class newChomperChompGoal<T extends BasePlant & IChomper> extends net.minecraft.world.entity.ai.goal.Goal
  • Field Details

    • mob

      public T extends BasePlant & IChomper mob
    • isAnimStarted

      public boolean isAnimStarted
    • isActionPerformed

      public boolean isActionPerformed
  • Constructor Details

    • newChomperChompGoal

      public newChomperChompGoal(T plant)
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class net.minecraft.world.entity.ai.goal.Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class net.minecraft.world.entity.ai.goal.Goal
    • start

      public void start()
      Overrides:
      start in class net.minecraft.world.entity.ai.goal.Goal
    • stop

      public void stop()
      Overrides:
      stop in class net.minecraft.world.entity.ai.goal.Goal
    • requiresUpdateEveryTick

      public boolean requiresUpdateEveryTick()
      Overrides:
      requiresUpdateEveryTick in class net.minecraft.world.entity.ai.goal.Goal
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.world.entity.ai.goal.Goal
    • checkAndPerformChomp

      public void checkAndPerformChomp(net.minecraft.world.entity.LivingEntity food, double distance)
    • isFoodWithinDistance

      public boolean isFoodWithinDistance(net.minecraft.world.entity.LivingEntity food, double distance)
    • getAttackReachSqr

      public double getAttackReachSqr(net.minecraft.world.entity.LivingEntity target)
    • isTimeToStartChompAnimation

      public boolean isTimeToStartChompAnimation()
    • isTimeToChomp

      public boolean isTimeToChomp()
    • resetChompCooldown

      public boolean resetChompCooldown()