mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 21:05:07 +00:00
Added Scheduled Tasks system for NPC scripting.
Allows for scripting the scheduling of runnable methods in sequence within the NPC's AI An example sequence of tasks: 1. Dashes towards player (might take 3-5 seconds, doesn't matter, task durations are dynamic so it can take as long as it needs). 2. Punches player away 3. Waits 10 ticks - Fires a ki blast 4. Teleports behind player 5. Knocks player out
This commit is contained in:
1 parent
3cfe8be056
commit
e13c6762f3
3 files changed
+127
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package noppes.npcs.api.entity;
|
||||
|
||||
import net.minecraft.entity.EntityCreature;
|
||||
import noppes.npcs.api.IActionManager;
|
||||
import noppes.npcs.api.IPos;
|
||||
import noppes.npcs.api.ITimers;
|
||||
import noppes.npcs.api.entity.data.IModelData;
|
||||
@@ -933,4 +934,10 @@ public interface ICustomNpc<T extends EntityCreature> extends IEntityLiving<T>,
|
||||
void updateClient();
|
||||
|
||||
void updateAI();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return the action manager responsible for scheduling actions to the NPC's AI
|
||||
*/
|
||||
IActionManager getActionManager();
|
||||
}
|
||||
Reference in new issue
Block a user