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 Summary
Modifier and TypeMethodDescriptionConfiguration for goal actions.default voiddoublefloatdoubledefault intdoubledefault intdefault intintdefault intbooleanisAct()default voidloadFWAction(net.minecraft.nbt.CompoundTag tag) voidperformAction(double damage) Fires when the specifiedgetStartAnimDelay()has been reached.voidvoidTicks afterperformAction(double)fires.voidFires when the animation starts.default booleanvoidFires when at the end of a action cycle.default voidsaveFWAction(net.minecraft.nbt.CompoundTag tag) voidsetAct(boolean b) voidsetActionState(ActionState state) default voidsetActionStateIf(ActionState state) voidsetActTick(float tick) voidsetRepeats(int tick) default voidFires when the goal startsdefault voidFires when the goal ends
-
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
-
setActionStateIf
-
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 specifiedgetStartAnimDelay()has been reached. -
postActionTick
void postActionTick()Ticks afterperformAction(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)
-