aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-06-30 11:47:51 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-06-30 11:47:51 +0200
commit19606e3e9eda872c7f8036197213026d1326db45 (patch)
treef682f26a8d8379a0798de0a97403e19f86258129 /src/main/java
parentdd24ac5cbd234b656ac69804fa34059d08767fda (diff)
downloadskyhanni-19606e3e9eda872c7f8036197213026d1326db45.tar.gz
skyhanni-19606e3e9eda872c7f8036197213026d1326db45.tar.bz2
skyhanni-19606e3e9eda872c7f8036197213026d1326db45.zip
formatting
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt38
1 files changed, 20 insertions, 18 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt
index 13afcac42..bb3753c13 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt
@@ -42,7 +42,7 @@ object HoppityEggsManager {
*/
val eggFoundPattern by ChocolateFactoryAPI.patternGroup.pattern(
"egg.found",
- "§d§lHOPPITY'S HUNT §r§dYou found a §r§.Chocolate (?<meal>\\w+) Egg §r§d(?<note>.*)§r§d!"
+ "§d§lHOPPITY'S HUNT §r§dYou found a §r§.Chocolate (?<meal>\\w+) Egg §r§d(?<note>.*)§r§d!",
)
/**
@@ -51,7 +51,7 @@ object HoppityEggsManager {
*/
val eggBoughtPattern by ChocolateFactoryAPI.patternGroup.pattern(
"egg.bought",
- "§aYou bought §r§.(?<rabbitname>.*?) §r§afor §r§6((\\d|,)*) Coins§r§a!"
+ "§aYou bought §r§.(?<rabbitname>.*?) §r§afor §r§6((\\d|,)*) Coins§r§a!",
)
/**
@@ -61,7 +61,7 @@ object HoppityEggsManager {
*/
val rabbitFoundPattern by ChocolateFactoryAPI.patternGroup.pattern(
"rabbit.found",
- "§D§LHOPPITY'S HUNT §7You found (?<name>.*) §7\\((?<rarity>.*)§7\\)!"
+ "§D§LHOPPITY'S HUNT §7You found (?<name>.*) §7\\((?<rarity>.*)§7\\)!",
)
/**
@@ -71,23 +71,23 @@ object HoppityEggsManager {
*/
val newRabbitFound by ChocolateFactoryAPI.patternGroup.pattern(
"rabbit.found.new",
- "§d§lNEW RABBIT! (?:((§6\\+(?<chocolate>.*) Chocolate §7and )?§6\\+(?<perSecond>.*)x Chocolate §7per second!)|(?<other>.*))"
+ "§d§lNEW RABBIT! (?:((§6\\+(?<chocolate>.*) Chocolate §7and )?§6\\+(?<perSecond>.*)x Chocolate §7per second!)|(?<other>.*))",
)
private val noEggsLeftPattern by ChocolateFactoryAPI.patternGroup.pattern(
"egg.noneleft",
- "§cThere are no hidden Chocolate Rabbit Eggs nearby! Try again later!"
+ "§cThere are no hidden Chocolate Rabbit Eggs nearby! Try again later!",
)
private val eggSpawnedPattern by ChocolateFactoryAPI.patternGroup.pattern(
"egg.spawned",
- "§d§lHOPPITY'S HUNT §r§dA §r§.Chocolate (?<meal>\\w+) Egg §r§dhas appeared!"
+ "§d§lHOPPITY'S HUNT §r§dA §r§.Chocolate (?<meal>\\w+) Egg §r§dhas appeared!",
)
private val eggAlreadyCollectedPattern by ChocolateFactoryAPI.patternGroup.pattern(
"egg.alreadycollected",
- "§cYou have already collected this Chocolate (?<meal>\\w+) Egg§r§c! Try again when it respawns!"
+ "§cYou have already collected this Chocolate (?<meal>\\w+) Egg§r§c! Try again when it respawns!",
)
private val hoppityEventNotOn by ChocolateFactoryAPI.patternGroup.pattern(
"egg.notevent",
- "§cThis only works during Hoppity's Hunt!"
+ "§cThis only works during Hoppity's Hunt!",
)
private var lastMeal: HoppityEggType? = null
@@ -168,7 +168,7 @@ object HoppityEggsManager {
HoppityEggType.getMealByName(group("meal")) ?: run {
ErrorManager.skyHanniError(
"Unknown meal: ${group("meal")}",
- "message" to event.message
+ "message" to event.message,
)
}
@@ -188,7 +188,7 @@ object HoppityEggsManager {
onClick = onClick,
"§eClick to share!",
expireAt = 30.seconds.fromNow(),
- oneTimeClick = true
+ oneTimeClick = true,
)
}
}
@@ -215,11 +215,13 @@ object HoppityEggsManager {
}
if (displayList.size == 1) return
- val clickableDisplayList = listOf(Renderable.clickAndHover(
- Renderable.verticalContainer(displayList.map(Renderable::string)),
- tips = listOf("§eClick to ${"/warp ${config.warpDestination}".trim()}!"),
- onClick = { HypixelCommands.warp(config.warpDestination) }
- ))
+ val clickableDisplayList = listOf(
+ Renderable.clickAndHover(
+ Renderable.verticalContainer(displayList.map(Renderable::string)),
+ tips = listOf("§eClick to ${"/warp ${config.warpDestination}".trim()}!"),
+ onClick = { HypixelCommands.warp(config.warpDestination) },
+ ),
+ )
config.position.renderRenderables(clickableDisplayList, posLabel = "Hoppity Eggs")
}
@@ -262,13 +264,13 @@ object HoppityEggsManager {
ChatUtils.clickableChat(
message,
onClick = { HypixelCommands.warp(config.warpDestination) },
- "§eClick to ${"/warp ${config.warpDestination}".trim()}!"
+ "§eClick to ${"/warp ${config.warpDestination}".trim()}!",
)
} else {
ChatUtils.clickableChat(
message,
onClick = { HypixelCommands.skyblock() },
- "§eClick to join /skyblock!"
+ "§eClick to join /skyblock!",
)
}
} else ChatUtils.chat(message)
@@ -283,7 +285,7 @@ object HoppityEggsManager {
event.move(
44,
"event.chocolateFactory.highlightHoppityShop",
- "event.chocolateFactory.hoppityEggs.highlightHoppityShop"
+ "event.chocolateFactory.hoppityEggs.highlightHoppityShop",
)
event.move(44, "event.chocolateFactory.hoppityEggs", "event.hoppityEggs")
}