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/IcebergClient.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/IcebergClient.java')
-rw-r--r-- | src/main/java/com/anthonyhilyard/iceberg/IcebergClient.java | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/src/main/java/com/anthonyhilyard/iceberg/IcebergClient.java b/src/main/java/com/anthonyhilyard/iceberg/IcebergClient.java index 3a860a2..edbfc1b 100644 --- a/src/main/java/com/anthonyhilyard/iceberg/IcebergClient.java +++ b/src/main/java/com/anthonyhilyard/iceberg/IcebergClient.java @@ -5,7 +5,7 @@ import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; -@Mod.EventBusSubscriber(modid = Loader.MODID, bus = Bus.MOD, value = Dist.CLIENT) +@Mod.EventBusSubscriber(modid = Loader.MODID, bus = Bus.FORGE, value = Dist.CLIENT) public class IcebergClient { public IcebergClient() @@ -14,13 +14,24 @@ public class IcebergClient public void onClientSetup(FMLClientSetupEvent event) { - event.enqueueWork(new Runnable() - { - @Override - public void run() - { - - } - }); + } + + // @SubscribeEvent + // public static void onTooltipPre(RenderTooltipEvent.Pre event) + // { + // Loader.LOGGER.info("tooltip pre"); + // } + + // @SubscribeEvent + // public static void onTooltipColor(RenderTooltipEvent.Color event) + // { + // Loader.LOGGER.info("tooltip color"); + // } + + // @SubscribeEvent + // public static void onTooltipPost(RenderTooltipExtEvent.Post event) + // { + // Loader.LOGGER.info("tooltip post"); + // } } |