aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-07 08:49:03 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-07 08:49:03 +0100
commit66f5d815188c15a97463baf249bfc8ecfcdd55e7 (patch)
treee064a488ab213c36f4c0a3f50ee373be82451a59 /src
parentea1822b746e682075a7b421dab7bd318b4a7e4eb (diff)
parentf365d1f6f2ebb3645ea7ad04736e98491781a284 (diff)
downloadSkyHanni-66f5d815188c15a97463baf249bfc8ecfcdd55e7.tar.gz
SkyHanni-66f5d815188c15a97463baf249bfc8ecfcdd55e7.tar.bz2
SkyHanni-66f5d815188c15a97463baf249bfc8ecfcdd55e7.zip
Merge branch 'dev'
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java183
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/Features.java13
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/core/GuiElementTextField.java6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Bingo.java14
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Chat.java7
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Hidden.java5
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Minions.java15
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Misc.java10
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt (renamed from src/main/java/at/hannibal2/skyhanni/data/ApiKeyGrabber.kt)37
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/EntityMovementData.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt (renamed from src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt)100
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/IslandType.kt22
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/ItemRenderBackground.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/ItemTipHelper.kt11
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/MinecraftData.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/SendTitleHelper.kt8
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/GuiContainerEvent.kt17
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/IslandChangeEvent.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/RenderInventoryItemTipEvent.kt3
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/anvil/AnvilCombineHelper.kt8
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarBestSellMethod.kt10
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarCancelledBuyOrderClipboard.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt3
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/chat/PlayerDeathMessages.kt13
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/chat/playerchat/PlayerChatModifier.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusUnopenedChestTracker.kt11
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt10
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonLevelColor.kt13
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt14
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/end/VoidlingExtremistColor.kt3
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt3
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureMessageShortener.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/TrophyFishMessages.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt19
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt12
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/ItemStars.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/RngMeterInventory.kt17
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/StatsTuning.kt22
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/itemabilities/FireVeilWandParticles.kt6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/minion/MinionData.kt5
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt123
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/BrewingStandOverlay.kt44
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/ButtonOnPause.kt (renamed from src/main/java/at/hannibal2/skyhanni/features/ButtonOnPause.kt)6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/CollectionCounter.kt194
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/CompactBingoChat.kt112
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/CompactSplashPotionMessage.kt36
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/CorruptedMobHighlight.kt (renamed from src/main/java/at/hannibal2/skyhanni/features/CorruptedMobHighlight.kt)9
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/CurrentPetDisplay.kt (renamed from src/main/java/at/hannibal2/skyhanni/features/CurrentPetDisplay.kt)8
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/ExpBottleOnGroundHider.kt (renamed from src/main/java/at/hannibal2/skyhanni/features/ExpBottleOnGroundHider.kt)4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/HideArmor.kt (renamed from src/main/java/at/hannibal2/skyhanni/features/HideArmor.kt)6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/HideDamageSplash.kt (renamed from src/main/java/at/hannibal2/skyhanni/features/HideDamageSplash.kt)4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/MarkedPlayerManager.kt (renamed from src/main/java/at/hannibal2/skyhanni/features/MarkedPlayerManager.kt)8
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt (renamed from src/main/java/at/hannibal2/skyhanni/features/NonGodPotEffectDisplay.kt)18
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/RealTime.kt (renamed from src/main/java/at/hannibal2/skyhanni/features/RealTime.kt)6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/ThunderSparksHighlight.kt (renamed from src/main/java/at/hannibal2/skyhanni/features/ThunderSparksHighlight.kt)4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/MilleniaAgedBlazeColor.kt3
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangBlazes.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangBlazingSouls.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangFreezeCooldown.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangHideDamageIndicator.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangHideParticles.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangNextResetCooldown.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt5
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/HideMobNames.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/HighlightSlayerMiniboss.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerQuestWarning.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerClearView.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerDaggerHelper.kt6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerFirePitsWarning.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerPillar.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/HellionShieldHelper.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/summonings/SummoningMobManager.kt10
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/summonings/SummoningSoulsName.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/mixins/transformers/gui/inventory/GuiEditSignMixin.java8
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt22
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/command/CopyItemCommand.kt1
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/APIUtil.kt9
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/InventoryUtils.kt20
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt44
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/MinecraftConsoleFilter.kt12
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt16
91 files changed, 1016 insertions, 434 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java
index eccfc78c9..f6190fb10 100644
--- a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java
+++ b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java
@@ -5,7 +5,6 @@ import at.hannibal2.skyhanni.config.Features;
import at.hannibal2.skyhanni.config.commands.Commands;
import at.hannibal2.skyhanni.data.*;
import at.hannibal2.skyhanni.data.repo.RepoManager;
-import at.hannibal2.skyhanni.features.*;
import at.hannibal2.skyhanni.features.anvil.AnvilCombineHelper;
import at.hannibal2.skyhanni.features.bazaar.BazaarApi;
import at.hannibal2.skyhanni.features.bazaar.BazaarBestSellMethod;
@@ -30,6 +29,7 @@ import at.hannibal2.skyhanni.features.inventory.*;
import at.hannibal2.skyhanni.features.itemabilities.FireVeilWandParticles;
import at.hannibal2.skyhanni.features.itemabilities.abilitycooldown.ItemAbilityCooldown;
import at.hannibal2.skyhanni.features.minion.MinionFeatures;
+import at.hannibal2.skyhanni.features.misc.*;
import at.hannibal2.skyhanni.features.nether.MilleniaAgedBlazeColor;
import at.hannibal2.skyhanni.features.nether.ashfang.*;
import at.hannibal2.skyhanni.features.slayer.EndermanSlayerBeacon;
@@ -62,7 +62,7 @@ import java.util.List;
public class SkyHanniMod {
public static final String MODID = "skyhanni";
- public static final String VERSION = "0.13";
+ public static final String VERSION = "0.14";
public static Features feature;
@@ -70,7 +70,7 @@ public class SkyHanniMod {
public static ConfigManager configManager;
private static Logger logger;
- public static List<Object> listenerClasses = new ArrayList<>();
+ public static List<Object> modules = new ArrayList<>();
public static Job globalJob = JobKt.Job(null);
public static CoroutineScope coroutineScope =
CoroutineScopeKt.CoroutineScope(
@@ -84,94 +84,98 @@ public class SkyHanniMod {
//API and utils
new BazaarApi();
- registerEvent(this);
- registerEvent(new ChatManager());
- registerEvent(new HypixelData());
- registerEvent(new DungeonData());
- registerEvent(new ScoreboardData());
- registerEvent(new ApiKeyGrabber());
- registerEvent(new SeaCreatureManager());
- registerEvent(new ItemRenderBackground());
- registerEvent(new EntityData());
- registerEvent(new EntityMovementData());
- registerEvent(new ItemClickData());
- registerEvent(new MinecraftData());
- registerEvent(new SendTitleHelper());
- registerEvent(new ItemTipHelper());
+ loadModule(this);
+ loadModule(new ChatManager());
+ loadModule(new HyPixelData());
+ loadModule(new DungeonData());
+ loadModule(new ScoreboardData());
+ loadModule(new ApiDataLoader());
+ loadModule(new SeaCreatureManager());
+ loadModule(new ItemRenderBackground());
+ loadModule(new EntityData());
+ loadModule(new EntityMovementData());
+ loadModule(new ItemClickData());
+ loadModule(new MinecraftData());
+ loadModule(new SendTitleHelper());
+ loadModule(new ItemTipHelper());
//features
- registerEvent(new BazaarOrderHelper());
- registerEvent(new ChatFilter());
- registerEvent(new PlayerChatModifier());
- registerEvent(new DungeonChatFilter());
- registerEvent(new HideNotClickableItems());
- registerEvent(new ItemDisplayOverlayFeatures());
- registerEvent(new CurrentPetDisplay());
- registerEvent(new ExpBottleOnGroundHider());
- registerEvent(new DamageIndicatorManager());
- registerEvent(new ItemAbilityCooldown());
- registerEvent(new DungeonHighlightClickedBlocks());
- registerEvent(new DungeonMilestonesDisplay());
- registerEvent(new DungeonDeathCounter());
- registerEvent(new DungeonCleanEnd());
- registerEvent(new DungeonBossMessages());
- registerEvent(new DungeonBossHideDamageSplash());
- registerEvent(new TrophyFishMessages());
- registerEvent(new BazaarBestSellMethod());
- registerEvent(new AnvilCombineHelper());
- registerEvent(new SeaCreatureMessageShortener());
+ loadModule(new BazaarOrderHelper());
+ loadModule(new ChatFilter());
+ loadModule(new PlayerChatModifier());
+ loadModule(new DungeonChatFilter());
+ loadModule(new HideNotClickableItems());
+ loadModule(new ItemDisplayOverlayFeatures());
+ loadModule(new CurrentPetDisplay());
+ loadModule(new ExpBottleOnGroundHider());
+ loadModule(new DamageIndicatorManager());
+ loadModule(new ItemAbilityCooldown());
+ loadModule(new DungeonHighlightClickedBlocks());
+ loadModule(new DungeonMilestonesDisplay());
+ loadModule(new DungeonDeathCounter());
+ loadModule(new DungeonCleanEnd());
+ loadModule(new DungeonBossMessages());
+ loadModule(new DungeonBossHideDamageSplash());
+ loadModule(new TrophyFishMessages());
+ loadModule(new BazaarBestSellMethod());
+ loadModule(new AnvilCombineHelper());
+ loadModule(new SeaCreatureMessageShortener());
// registerEvent(new GriffinBurrowFinder());
- registerEvent(new AshfangFreezeCooldown());
- registerEvent(new AshfangNextResetCooldown());
- registerEvent(new SummoningSoulsName());
- registerEvent(new AshfangGravityOrbs());
- registerEvent(new AshfangBlazingSouls());
- registerEvent(new AshfangBlazes());
- registerEvent(new AshfangHideParticles());
- registerEvent(new AshfangHideDamageIndicator());
- registerEvent(new ItemStars());
- registerEvent(new MinionFeatures());
- registerEvent(new RealTime());
- registerEvent(new RngMeterInventory());
- registerEvent(new WikiCommand());
- registerEvent(new SummoningMobManager());
- registerEvent(new VoidlingExtremistColor());
- registerEvent(new MilleniaAgedBlazeColor());<