Compress Script Hooks and Context System

This commit is contained in:
Kam committed 2026-01-22 14:27:48 -05:00
1 parent e2ca76e626
commit 19b01e2099
17 files changed
+595 -770

No files matched your search

@@ -2,7 +2,7 @@ package noppes.npcs.controllers.data;
import kamkeel.npcs.network.packets.request.script.RecipeScriptPacket;
import net.minecraft.nbt.NBTTagCompound;
import noppes.npcs.api.handler.IScriptHookHandler;
import noppes.npcs.constants.ScriptContext;
/**
* Script handler for Recipe scripts (both carpentry and anvil).
@@ -33,8 +33,8 @@ public class RecipeScript extends SingleScriptHandler implements IScriptHandlerP
}
@Override
public String getHookContext() {
return IScriptHookHandler.CONTEXT_RECIPE;
public ScriptContext getContext() {
return ScriptContext.RECIPE;
}
@Override