mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 21:59:05 +00:00
All ScriptHandlers that send packets now directly define their data through the ScriptHandler class itself, NOT through their own GuiScript extended class.
14 lines
485 B
Java
14 lines
485 B
Java
package noppes.npcs.client.gui.script;
|
|
|
|
import noppes.npcs.controllers.data.IScriptHandlerPacket;
|
|
import noppes.npcs.controllers.data.DataScript;
|
|
import noppes.npcs.entity.EntityNPCInterface;
|
|
|
|
public class GuiNPCEventScripts extends GuiScriptInterface {
|
|
public GuiNPCEventScripts(EntityNPCInterface npc) {
|
|
this.handler = new DataScript(npc);
|
|
if (this.handler instanceof IScriptHandlerPacket)
|
|
((IScriptHandlerPacket) this.handler).requestData();
|
|
}
|
|
}
|