Class ActionConfig
java.lang.Object
nokunami.floral_warfare.common.entity.ActionConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction(int interval, int preDelay, int postDelay) intbooleanactStatus(boolean config) Sets the Act Status whilest performing action, useful for animations and texture swaping.booleancanUseGoal(net.minecraft.world.entity.LivingEntity entity) Predicate<net.minecraft.world.entity.LivingEntity>postAction(ActionConfig.PostAction action) intpreAction(ActionConfig.PreAction action) intrepeat(boolean repeat) Whether to repeat the attack animation or not, only applies to burst attacks.boolean
-
Constructor Details
-
ActionConfig
public ActionConfig()
-
-
Method Details
-
actionState
public boolean actionState() -
repeatAnim
public boolean repeatAnim() -
preActionDelay
public int preActionDelay() -
postActionDelay
public int postActionDelay() -
actionInterval
public int actionInterval() -
goalPredicate
-
canUseGoal
public boolean canUseGoal(net.minecraft.world.entity.LivingEntity entity) -
preAction
-
postAction
-
actStatus
Sets the Act Status whilest performing action, useful for animations and texture swaping.
-
repeat
Whether to repeat the attack animation or not, only applies to burst attacks.
-
action
- Parameters:
interval- Sets the interval for action.preDelay- Sets the ticks before animation.postDelay- Sets the ticks before animation.
-
predicate
- Parameters:
predicate- Defines a custom predicate.
-
preAction
- Parameters:
action- Defines a action when the animation plays.
-
postAction
- Parameters:
action- Defines a action after.
-