Update ModAPI.java

Please don't use this.
This commit is contained in:
sima5982 2024-05-08 17:05:01 -05:00 committed by GitHub
parent a250f3c00a
commit 1ff9e9f081
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,4 @@
//Please don't break
package net.eaglerforge.api;
import net.eaglerforge.gui.ModGUI;
@ -95,7 +96,7 @@ public class ModAPI {
newEvent("update");
newEvent("frame");
/*newEvent("packetjoingame");
newEvent("packetjoingame");
newEvent("packetspawnobject");
newEvent("packetspawnxporb");
newEvent("packetspawnglobalentity");
@ -214,7 +215,7 @@ public class ModAPI {
getModAPI().setCallbackInt("getFPS", () -> {
return getDebugFPS();
});
/*getModAPI().setCallbackVoidWithDataArg("displayParticleAtPlayer", (BaseData params) -> {
getModAPI().setCallbackVoidWithDataArg("displayParticleAtPlayer", (BaseData params) -> {
if (params.getString("type") == "EXPLOSION_NORMAL") {
mc.effectRenderer.emitParticleAtEntity(mc.thePlayer, EnumParticleTypes.EXPLOSION_NORMAL);
} else if (params.getString("type") == "EXPLOSION_LARGE") {
@ -300,7 +301,7 @@ public class ModAPI {
} else if (params.getString("type") == "MOB_APPEARANCE") {
mc.effectRenderer.emitParticleAtEntity(mc.thePlayer, EnumParticleTypes.MOB_APPEARANCE);
}
});*/
});
getModAPI().set("clientBrand", ClientBrandRetriever.getClientModName());
setGlobal("enchantments", Enchantment.makeModDataStatic());