mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 16:34:46 +00:00
Create better Action Handling
- Conditional Actions - Action Manager on Player Data
This commit is contained in:
1 parent
868e7091f4
commit
666504e0a3
4 files changed
+172
-78
No files matched your search
@@ -29,6 +29,7 @@ import noppes.npcs.entity.data.DataTimers;
|
||||
import noppes.npcs.roles.RoleCompanion;
|
||||
import noppes.npcs.scripted.NpcAPI;
|
||||
import noppes.npcs.scripted.ScreenSize;
|
||||
import noppes.npcs.scripted.ScriptedActionManager;
|
||||
import noppes.npcs.util.CustomNPCsThreader;
|
||||
import noppes.npcs.util.NBTJsonUtil;
|
||||
|
||||
@@ -51,6 +52,7 @@ public class PlayerData implements IExtendedEntityProperties, IPlayerData {
|
||||
public DataSkinOverlays skinOverlays = new DataSkinOverlays(this);
|
||||
public MagicData magicData = new MagicData();
|
||||
|
||||
public ScriptedActionManager actionManager = new ScriptedActionManager();
|
||||
public PlayerDataScript scriptData;
|
||||
|
||||
public EntityNPCInterface editingNpc;
|
||||
@@ -96,6 +98,7 @@ public class PlayerData implements IExtendedEntityProperties, IPlayerData {
|
||||
|
||||
public void onLogout() {
|
||||
this.partyInvites.clear();
|
||||
this.actionManager.clear();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user