aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/anthonyhilyard/iceberg/Loader.java
diff options
context:
space:
mode:
authorAnthony Hilyard <anthony.hilyard@gmail.com>2021-12-04 21:27:28 -0800
committerAnthony Hilyard <anthony.hilyard@gmail.com>2021-12-04 21:27:28 -0800
commitf5d35697f524cda1736740e739f8afd902651c53 (patch)
tree1b582f6420418f62fbef9755434fbaebe7644ff6 /src/main/java/com/anthonyhilyard/iceberg/Loader.java
parent36a1f98bba70892f4e06c3df8b2b0bb4d0d5fe03 (diff)
downloadIceberg-f5d35697f524cda1736740e739f8afd902651c53.tar.gz
Iceberg-f5d35697f524cda1736740e739f8afd902651c53.tar.bz2
Iceberg-f5d35697f524cda1736740e739f8afd902651c53.zip
Initial 1.18 port. Overhauled tooltip handling, added color code item
color support.
Diffstat (limited to 'src/main/java/com/anthonyhilyard/iceberg/Loader.java')
-rw-r--r--src/main/java/com/anthonyhilyard/iceberg/Loader.java27
1 files changed, 2 insertions, 25 deletions
diff --git a/src/main/java/com/anthonyhilyard/iceberg/Loader.java b/src/main/java/com/anthonyhilyard/iceberg/Loader.java
index 7b7911b..ae7db63 100644
--- a/src/main/java/com/anthonyhilyard/iceberg/Loader.java
+++ b/src/main/java/com/anthonyhilyard/iceberg/Loader.java
@@ -4,6 +4,7 @@ import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import net.minecraftforge.api.distmarker.Dist;
+import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.IExtensionPoint;
import net.minecraftforge.fml.ModLoadingContext;
@@ -23,6 +24,7 @@ public class Loader
if (FMLEnvironment.dist == Dist.CLIENT)
{
IcebergClient mod = new IcebergClient();
+ MinecraftForge.EVENT_BUS.register(IcebergClient.class);
FMLJavaModLoadingContext.get().getModEventBus().addListener(mod::onClientSetup);
}
else
@@ -38,29 +40,4 @@ public class Loader
{
}
-
- // Event testing.
- //
- // @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.FORGE)
- // public static class AdvancementEvents
- // {
- // @SubscribeEvent
- // public static void onCriterion(final CriterionEvent event)
- // {
- // LOGGER.info("{} gained {} for {}!", event.getPlayer().getName().getString(), event.getCriterionKey(), event.getAdvancement().getId().toString());
- // }
-
- // @SubscribeEvent
- // public static void onFluidEntered(final EntityFluidEvent.Entered event)
- // {
- // LOGGER.info("{} entered {}!", event.getEntity().getName().getString(), event.getFluid().getRegistryName().toString());
- // }
-
- // @SubscribeEvent
- // public static void onFluidExited(final EntityFluidEvent.Exited event)
- // {
- // LOGGER.info("{} exited {}!", event.getEntity().getName().getString(), event.getFluid().getRegistryName().toString());
- // }
- // }
-
}