Interface IFWAction

All Known Subinterfaces:
IChomper, IExplodingPlant, IFWMultiAction, IRangedAttacker, ISunProducer, ISupportPlant, IZombieAction
All Known Implementing Classes:
AbstractBrainMuncher, AbstractBrowncoat, AbstractChomper, AbstractExplodingPlant, AbstractGargantuar, AbstractImp, AbstractLobbingPlant, AbstractMint, AbstractPeaHead, AbstractPeashooter, AbstractPlant, AbstractRangedPlant, AbstractRangedShroom, AbstractShroom, AbstractSnapdragon, AbstractSpecialZombie, AbstractSprout, AbstractSunProducer, AbstractSupportPlant, AbstractWallPlant, Ampliflower, BackupDancerZombie, BalloonZombie, BasePlant, Blover, BobsledZombie, Browncoat, BungeeZombie, CabbagePult, Cactus, CatapultZombie, Cattail, CherryBomb, Chomper, CobCannon, CoffeeBean, ColdSnapdragon, Curendula, DancingZombie, DarkFlower, DiggerZombie, DolphinRiderZombie, DolphinZombie, DoomShroom, ElectroPea, EnforcemintPlant, EvolvedPlant, ExplodeONut, FirePea, FlowerPot, FootballZombie, FrostPea, FumeShroom, Gargantuar, Garlic, GatlingPea, GhostPepper, GloomShroom, GoldMagnet, GraveBuster, GreenShadow, HypnoShroom, IceShroom, Imp, JackInTheBocZombie, Jalapeno, KernelPult, KnightPea, LadderZombie, LatentSprout, LightningReed, LilyPad, MagnetShroom, Marigold, MelonPult, MeteorFlower, MoonFlower, MovcadiaPult, MugShroom, NewspaperZombie, Peashooter, PeaSprout, Plantern, PlantPartEntity, PogoZombie, PotatoMine, PrimalPeashooter, PrimalSunflower, PuffShroom, Pumpkin, Repeater, ScaredyShroom, ScatterTail, SeaShroom, ShadowPea, ShroomSprout, SkullPepper, Snapdragon, SnorkelZombie, SnowPea, SolarPea, Spikerock, Spikeweed, SplitPea, SplitPeaHead, Sprout, Squash, Starfruit, Sunflower, SunShroom, SunSprout, TallNut, TangleKelp, Threepeater, ThreepeaterHead, Toadstool, Torchwood, TreeOfWisdom, TwinSunflower, UmbrellaLeaf, WallNut, WarfareSunflower, WinterMelon, ZombieYeti, ZomboniDriverZombie

public interface IFWAction
  • Method Details

    • getAttackDamage

      double getAttackDamage()
    • getActionSpeed

      double getActionSpeed()
    • getFollowRange

      double getFollowRange()
    • playAttackSound

      void playAttackSound()
    • isAct

      boolean isAct()
    • setAct

      void setAct(boolean b)
    • getActTick

      float getActTick()
    • setActTick

      void setActTick(float tick)
    • getRepeats

      int getRepeats()
    • setRepeats

      void setRepeats(int tick)
    • decrementRepeat

      default void decrementRepeat()
    • getActionState

      ActionState getActionState()
    • setActionState

      void setActionState(ActionState state)
    • setActionStateIf

      default void setActionStateIf(ActionState state)
    • actConfig

      ActionConfig actConfig()
      Configuration for goal actions.
    • repeatActionAnim

      default boolean repeatActionAnim()
    • getDefaultDelay

      default int getDefaultDelay()
    • getStartAnimDelay

      default int getStartAnimDelay()
    • getPreAnimDelay

      default int getPreAnimDelay()
    • getPostAnimDelay

      default int getPostAnimDelay()
    • startAction

      default void startAction()
      Fires when the goal starts
    • stopAction

      default void stopAction()
      Fires when the goal ends
    • preAction

      void preAction()
      Fires when the animation starts.
    • performAction

      void performAction(double damage)
      Fires when the specified getStartAnimDelay() has been reached.
    • postActionTick

      void postActionTick()
      Ticks after performAction(double) fires. (won't work if post delay is 0)
    • resetAction

      void resetAction()
      Fires when at the end of a action cycle.
    • saveFWAction

      default void saveFWAction(net.minecraft.nbt.CompoundTag tag)
    • loadFWAction

      default void loadFWAction(net.minecraft.nbt.CompoundTag tag)