Class AbstractActionGoal<T extends net.minecraft.world.entity.Mob & IFWAction>

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

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

    • entity

      public T extends net.minecraft.world.entity.Mob & IFWAction entity
    • isAnimStarted

      public boolean isAnimStarted
    • isActionPerformed

      public boolean isActionPerformed
    • aggressive

      public boolean aggressive
  • Constructor Details

    • AbstractActionGoal

      public AbstractActionGoal(T actionEntity)
  • Method Details

    • canUse

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

      public boolean requiresUpdateEveryTick()
      Overrides:
      requiresUpdateEveryTick 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
    • config

      protected ActionConfig config()
    • getActionInterval

      protected ActionInterval getActionInterval()
    • getRange

      protected ActionRange getRange()
    • getInterval

      protected int getInterval()
    • getPreDelay

      protected int getPreDelay()
    • getPostDelay

      protected int getPostDelay()
    • getStartAnimationDelay

      protected int getStartAnimationDelay()
    • resetRepeats

      protected boolean resetRepeats()
    • 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()
    • setAggressive

      public void setAggressive(boolean shouldBeAggressive)