diff options
author | Anthony Hilyard <anthony.hilyard@gmail.com> | 2021-12-04 21:27:28 -0800 |
---|---|---|
committer | Anthony Hilyard <anthony.hilyard@gmail.com> | 2021-12-04 21:27:28 -0800 |
commit | f5d35697f524cda1736740e739f8afd902651c53 (patch) | |
tree | 1b582f6420418f62fbef9755434fbaebe7644ff6 /src/main/java/com/anthonyhilyard/iceberg/Loader.java | |
parent | 36a1f98bba70892f4e06c3df8b2b0bb4d0d5fe03 (diff) | |
download | Iceberg-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.java | 27 |
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()); - // } - // } - } |