Glow can be disabled/enabled on skin overlays

This commit is contained in:
Luis C.M committed 2022-05-16 22:04:54 -05:00
1 parent dbfbab7be2
commit 6f9358c1ca
9 files changed
+91 -20

No files matched your search

+12 -4
View File
@@ -316,16 +316,14 @@ public class NpcAPI extends AbstractNpcAPI {
return MinecraftServer.getServer().getTickCounter();
}
public ICustomGui createCustomGui(int id, int width, int height, boolean pauseGame) {
return new ScriptGui(id, width, height, pauseGame);
}
public boolean arePlayerScriptsEnabled() {
return CustomNpcs.GlobalPlayerScripts;
}
public boolean areForgeScriptsEnabled() {
return CustomNpcs.GlobalForgeScripts;
}
public boolean areGlobalNPCScriptsEnabled() {
return CustomNpcs.GlobalNPCScripts;
}
@@ -333,14 +331,24 @@ public class NpcAPI extends AbstractNpcAPI {
public void enablePlayerScripts(boolean enable) {
CustomNpcs.GlobalPlayerScripts = enable;
}
public void enableForgeScripts(boolean enable) {
CustomNpcs.GlobalForgeScripts = enable;
}
public void enableGlobalNPCScripts(boolean enable) {
CustomNpcs.GlobalNPCScripts = enable;
}
public ICustomGui createCustomGui(int id, int width, int height, boolean pauseGame) {
return new ScriptGui(id, width, height, pauseGame);
}
public ICustomOverlay createCustomOverlay(int id) {
return new ScriptOverlay(id);
}
public ISkinOverlay createSkinOverlay(String texture) {
return new ScriptSkinOverlay(texture);
}
}