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

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

    • plant

      public final T extends BasePlant & IRangedAttacker plant
    • postAttackRandomDelay

      public boolean postAttackRandomDelay
    • verticalOffset

      public double verticalOffset
    • aimAtLocInstead

      public boolean aimAtLocInstead
    • minRange

      public double minRange
    • maxRange

      public double maxRange
    • isAnimStarted

      public boolean isAnimStarted
    • isActionPerformed

      public boolean isActionPerformed
  • Constructor Details

    • PlantAttackGoal

      public PlantAttackGoal(T plant)
    • PlantAttackGoal

      public PlantAttackGoal(T plant, double minimumRange, double maximumRange)
    • PlantAttackGoal

      public PlantAttackGoal(T plant, boolean aimAtLocInstead)
    • PlantAttackGoal

      public PlantAttackGoal(T abstractPlant, PlantAttackGoal.GoalInfo info)
  • 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
    • checkAndPerformActions

      public void checkAndPerformActions(net.minecraft.world.entity.Entity target, double distance)
    • timeToStartAnim

      public boolean timeToStartAnim()
    • timeToStartShooting

      public boolean timeToStartShooting()
    • reset

      public boolean reset()
    • setLookAtEntity

      public void setLookAtEntity(net.minecraft.world.entity.LivingEntity entity)