1package com.runehive.game.action;
3import com.runehive.game.world.entity.mob.Mob;
5import java.util.LinkedList;
6import java.util.function.Consumer;
11 private LinkedList<Consumer<Action<T>>>
actions =
new LinkedList<>();
Action(T mob, int delay, boolean instant)
void addFirst(Consumer< Action< T > > action)
Adds an action to the actions list.
ConsecutiveAction(T mob)
Generates a new ConsecutiveAction object.
LinkedList< Consumer< Action< T > > > actions
The list of actions.
void add(Consumer< Action< T > > action)
Adds an action to the actions list.