Files
CustomNPC-Plus/src/main/java/noppes/npcs/client/gui/script/GuiNPCEventScripts.java
T
bigguy345 50e9f1b3e5 HUGE IScriptHandlerPacket merge.
All ScriptHandlers that send packets now directly define their data through the ScriptHandler class itself, NOT through their own GuiScript extended class.
2026-01-22 20:05:07 +02:00

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();
}
}