From 1ff9e9f081a248930192d15d3f1ecc8134bb1bee Mon Sep 17 00:00:00 2001 From: sima5982 <121527708+sima5982@users.noreply.github.com> Date: Wed, 8 May 2024 17:05:01 -0500 Subject: [PATCH] Update ModAPI.java Please don't use this. --- sources/main/java/net/eaglerforge/api/ModAPI.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sources/main/java/net/eaglerforge/api/ModAPI.java b/sources/main/java/net/eaglerforge/api/ModAPI.java index b50299a..e6c02b8 100644 --- a/sources/main/java/net/eaglerforge/api/ModAPI.java +++ b/sources/main/java/net/eaglerforge/api/ModAPI.java @@ -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());