From 1773ed4e9e58f1851796f2a9a6af1f93618b89ef Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Tue, 8 Nov 2022 12:03:58 +0100 Subject: Abiphone favourites (#415) * Added abiphone favourites. * less empty lines * getProfileSpecific cant be null * Add support for using 'favourite item' keybind to toggle favourite contacts * Use item instead of ugly panel highlight (thanks nea) * no more random static methods, fixed profileSpecific errors (thanks nea) * Better wording * Less random gray out names * F3+H support * Allow calling non favourite contacts while in "all contacts" view * Made the code sane + made it work with non removable contacts * Made the code even more sane. * This is a NEU feature and not made by hypixel * Support for deleting contacts again, blocks this in favourite only mode. Support shift+right click to toggle favourites, ignored f3+h totally + made better looking lore order * fixed click problems (thanks jani) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Co-authored-by: nopo --- .../java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java index 726acb32..8ea94615 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java @@ -36,6 +36,7 @@ import io.github.moulberry.notenoughupdates.listener.NEUEventListener; import io.github.moulberry.notenoughupdates.listener.OldAnimationChecker; import io.github.moulberry.notenoughupdates.listener.RenderListener; import io.github.moulberry.notenoughupdates.listener.WorldListener; +import io.github.moulberry.notenoughupdates.miscfeatures.AbiphoneFavourites; import io.github.moulberry.notenoughupdates.miscfeatures.AbiphoneWarning; import io.github.moulberry.notenoughupdates.miscfeatures.AntiCoopAdd; import io.github.moulberry.notenoughupdates.miscfeatures.AuctionBINWarning; @@ -338,6 +339,7 @@ public class NotEnoughUpdates { MinecraftForge.EVENT_BUS.register(new GlowingMushroomHighlighter()); MinecraftForge.EVENT_BUS.register(new WorldListener(this)); MinecraftForge.EVENT_BUS.register(TitleUtil.getInstance()); + MinecraftForge.EVENT_BUS.register(AbiphoneFavourites.getInstance()); if (Minecraft.getMinecraft().getResourceManager() instanceof IReloadableResourceManager) { IReloadableResourceManager manager = (IReloadableResourceManager) Minecraft.getMinecraft().getResourceManager(); -- cgit