Class ActionConfig

java.lang.Object
nokunami.floral_warfare.common.entity.ActionConfig

public class ActionConfig extends Object
  • 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

      public Predicate<net.minecraft.world.entity.LivingEntity> goalPredicate()
    • canUseGoal

      public boolean canUseGoal(net.minecraft.world.entity.LivingEntity entity)
    • preAction

      public ActionConfig.PreAction preAction()
    • postAction

      public ActionConfig.PostAction postAction()
    • actStatus

      public ActionConfig actStatus(boolean config)

      Sets the Act Status whilest performing action, useful for animations and texture swaping.

    • repeat

      public ActionConfig repeat(boolean repeat)

      Whether to repeat the attack animation or not, only applies to burst attacks.

    • action

      public ActionConfig action(int interval, int preDelay, int postDelay)
      Parameters:
      interval - Sets the interval for action.
      preDelay - Sets the ticks before animation.
      postDelay - Sets the ticks before animation.
    • predicate

      public ActionConfig predicate(Predicate<net.minecraft.world.entity.LivingEntity> predicate)
      Parameters:
      predicate - Defines a custom predicate.
    • preAction

      public ActionConfig preAction(ActionConfig.PreAction action)
      Parameters:
      action - Defines a action when the animation plays.
    • postAction

      public ActionConfig postAction(ActionConfig.PostAction action)
      Parameters:
      action - Defines a action after.