mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 04:57:27 +00:00
Scripting for Attribute Handling on Players, Items, Totals, etc
This commit is contained in:
1 parent
7f5ba9a1c4
commit
9691c90ffc
13 files changed
+242
-46
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package noppes.npcs.scripted.entity;
|
||||
|
||||
import kamkeel.npcs.controllers.AttributeController;
|
||||
import kamkeel.npcs.network.PacketHandler;
|
||||
import kamkeel.npcs.network.packets.data.AchievementPacket;
|
||||
import kamkeel.npcs.network.packets.data.ChatAlertPacket;
|
||||
@@ -836,4 +837,6 @@ public class ScriptPlayer<T extends EntityPlayerMP> extends ScriptLivingBase<T>
|
||||
public IMagicData getMagicData() {
|
||||
return this.getData().magicData;
|
||||
}
|
||||
|
||||
public IPlayerAttributes getAttributes(){ return AttributeController.getTracker(this.player); }
|
||||
}
|
||||
Reference in new issue
Block a user