java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
nokunami.floral_warfare.common.entity.ai.goal.plants.AbstractActionGoal<T>
Direct Known Subclasses:
ChompActionGoal, ExplodeActionGoal, PlantSupportGoal1, RangeAttackActionGoal, SunProducerGoal

public abstract class AbstractActionGoal<T extends AbstractPlant & IPlantAction> extends net.minecraft.world.entity.ai.goal.Goal
  • Field Details

    • plant

      public T extends AbstractPlant & IPlantAction plant
    • isAnimStarted

      public boolean isAnimStarted
    • isActionPerformed

      public boolean isActionPerformed
    • aggressive

      public boolean aggressive
  • Constructor Details

    • AbstractActionGoal

      public AbstractActionGoal(T actionPlant)
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse 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
    • tick

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

      protected void tickAct()
    • preAction

      protected void preAction()
    • performAction

      protected void performAction()
    • postAction

      protected void postAction()
    • resetCycle

      protected void resetCycle()
    • shouldTickAction

      public boolean shouldTickAction()
    • timeToStartAnim

      public boolean timeToStartAnim()
    • timeToPerformAction

      public boolean timeToPerformAction()
    • timeToTickPostAction

      public boolean timeToTickPostAction()
    • timeToResetCycle

      public boolean timeToResetCycle()
    • getActionSpeed

      public float getActionSpeed()
    • adjustedTickDelay

      public int adjustedTickDelay(int adjustment)
      Overrides:
      adjustedTickDelay in class net.minecraft.world.entity.ai.goal.Goal
    • reducedTickDelay

      public static int reducedTickDelay(int reduction)
    • setAggressive

      public void setAggressive(boolean shouldBeAggressive)