aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-08 00:10:59 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-08 00:10:59 +0200
commit18ed601ab07382a6c4a002eeda6fb5b2bb54622e (patch)
tree349ac121b1e9e0bf18ed1f004df63bd780a3e12c /src/main/java
parentca686a46e4044108773d4e0422bedad9558f8afb (diff)
downloadskyhanni-18ed601ab07382a6c4a002eeda6fb5b2bb54622e.tar.gz
skyhanni-18ed601ab07382a6c4a002eeda6fb5b2bb54622e.tar.bz2
skyhanni-18ed601ab07382a6c4a002eeda6fb5b2bb54622e.zip
code cleanup events
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/BossHealthChangeEvent.kt3
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/BurrowDugEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/CollectionUpdateEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/ConfigLoadEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/CropClickEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/CropMilestoneUpdateEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/CropUpgradeUpdateEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/DamageIndicatorFinalBossEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/DungeonBossRoomEnterEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/DungeonEnterEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/DungeonStartEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/EntityClickEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/EntityEquipmentChangeEvent.kt10
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/EntityMoveEvent.kt7
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/FarmingContestEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/GuiRenderEvent.kt6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/InventoryCloseEvent.kt8
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt12
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/LorenzChatEvent.kt3
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/LorenzToolTipEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/LorenzWorldChangeEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/OwnInventorItemUpdateEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/ProfileJoinEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/RenderBlockInWorldEvent.kt3
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/RenderItemTipEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/RenderTooltipEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt7
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/ScoreboardChangeEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/ScoreboardRawChangeEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/SeaCreatureFishEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/SlayerChangeEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/SlayerProgressChangeEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/SlayerQuestCompleteEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/SoopyGuessBurrowEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/TabListLineRenderEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/TabListUpdateEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/TitleReceivedEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/VisitorArrivalEvent.kt2
38 files changed, 64 insertions, 53 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/BossHealthChangeEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/BossHealthChangeEvent.kt
index 71cce7c7a..e2837ea3f 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/BossHealthChangeEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/BossHealthChangeEvent.kt
@@ -2,4 +2,5 @@ package at.hannibal2.skyhanni.events
import at.hannibal2.skyhanni.features.damageindicator.EntityData
-class BossHealthChangeEvent(val entityData: EntityData, val lastHealth: Long, val health: Long, val maxHealth: Long): LorenzEvent() \ No newline at end of file
+class BossHealthChangeEvent(val entityData: EntityData, val lastHealth: Long, val health: Long, val maxHealth: Long) :
+ LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/BurrowDugEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/BurrowDugEvent.kt
index bd4963c88..d362cca09 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/BurrowDugEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/BurrowDugEvent.kt
@@ -2,4 +2,4 @@ package at.hannibal2.skyhanni.events
import at.hannibal2.skyhanni.utils.LorenzVec
-class BurrowDugEvent(val burrowLocation: LorenzVec): LorenzEvent() \ No newline at end of file
+class BurrowDugEvent(val burrowLocation: LorenzVec) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/CollectionUpdateEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/CollectionUpdateEvent.kt
index 02be903db..b62dcb149 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/CollectionUpdateEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/CollectionUpdateEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class CollectionUpdateEvent: LorenzEvent() \ No newline at end of file
+class CollectionUpdateEvent : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/ConfigLoadEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/ConfigLoadEvent.kt
index fa9da852a..b5afff547 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/ConfigLoadEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/ConfigLoadEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class ConfigLoadEvent: LorenzEvent() \ No newline at end of file
+class ConfigLoadEvent : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/CropClickEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/CropClickEvent.kt
index 848004262..469dee006 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/CropClickEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/CropClickEvent.kt
@@ -10,4 +10,4 @@ class CropClickEvent(
val blockState: IBlockState,
val clickType: ClickType,
val itemInHand: ItemStack?
-): LorenzEvent() \ No newline at end of file
+) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/CropMilestoneUpdateEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/CropMilestoneUpdateEvent.kt
index e243dadcd..9ca3bd56b 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/CropMilestoneUpdateEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/CropMilestoneUpdateEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class CropMilestoneUpdateEvent: LorenzEvent() \ No newline at end of file
+class CropMilestoneUpdateEvent : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/CropUpgradeUpdateEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/CropUpgradeUpdateEvent.kt
index 554cbdb8d..3deccc74c 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/CropUpgradeUpdateEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/CropUpgradeUpdateEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class CropUpgradeUpdateEvent: LorenzEvent() \ No newline at end of file
+class CropUpgradeUpdateEvent : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/DamageIndicatorFinalBossEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/DamageIndicatorFinalBossEvent.kt
index ffcde662a..88e41538a 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/DamageIndicatorFinalBossEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/DamageIndicatorFinalBossEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class DamageIndicatorFinalBossEvent(val id: Int): LorenzEvent() \ No newline at end of file
+class DamageIndicatorFinalBossEvent(val id: Int) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/DungeonBossRoomEnterEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/DungeonBossRoomEnterEvent.kt
index 872e6fe3f..243268181 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/DungeonBossRoomEnterEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/DungeonBossRoomEnterEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class DungeonBossRoomEnterEvent: LorenzEvent() \ No newline at end of file
+class DungeonBossRoomEnterEvent : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/DungeonEnterEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/DungeonEnterEvent.kt
index 819ae8c71..b980c7595 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/DungeonEnterEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/DungeonEnterEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class DungeonEnterEvent(dungeonFloor: String): LorenzEvent() \ No newline at end of file
+class DungeonEnterEvent(dungeonFloor: String) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/DungeonStartEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/DungeonStartEvent.kt
index 788d2fda6..b4de1e6c9 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/DungeonStartEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/DungeonStartEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class DungeonStartEvent(dungeonFloor: String): LorenzEvent() \ No newline at end of file
+class DungeonStartEvent(dungeonFloor: String) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/EntityClickEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/EntityClickEvent.kt
index 56aa97bf7..d5d7fe573 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/EntityClickEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/EntityClickEvent.kt
@@ -3,4 +3,4 @@ package at.hannibal2.skyhanni.events
import at.hannibal2.skyhanni.data.ClickType
import net.minecraft.entity.Entity
-class EntityClickEvent(val clickType: ClickType, val clickedEntity: Entity?): LorenzEvent() \ No newline at end of file
+class EntityClickEvent(val clickType: ClickType, val clickedEntity: Entity?) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/EntityEquipmentChangeEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/EntityEquipmentChangeEvent.kt
index 9d7bfd3a9..26705ab5e 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/EntityEquipmentChangeEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/EntityEquipmentChangeEvent.kt
@@ -11,10 +11,10 @@ data class EntityEquipmentChangeEvent(
val isHead get() = equipmentSlot == EQUIPMENT_SLOT_HEAD
companion object {
- val EQUIPMENT_SLOT_HEAD = 4
- val EQUIPMENT_SLOT_CHEST = 3
- val EQUIPMENT_SLOT_LEGGINGS = 2
- val EQUIPMENT_SLOT_FEET = 1
- val EQUIPMENT_SLOT_HAND = 0
+ const val EQUIPMENT_SLOT_HEAD = 4
+ const val EQUIPMENT_SLOT_CHEST = 3
+ const val EQUIPMENT_SLOT_LEGGINGS = 2
+ const val EQUIPMENT_SLOT_FEET = 1
+ const val EQUIPMENT_SLOT_HAND = 0
}
} \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/EntityMoveEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/EntityMoveEvent.kt
index 30b440d87..b09062543 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/EntityMoveEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/EntityMoveEvent.kt
@@ -3,4 +3,9 @@ package at.hannibal2.skyhanni.events
import at.hannibal2.skyhanni.utils.LorenzVec
import net.minecraft.entity.Entity
-class EntityMoveEvent(val entity: Entity, val oldLocation: LorenzVec, val newLocation: LorenzVec, val distance: Double) : LorenzEvent() \ No newline at end of file
+class EntityMoveEvent(
+ val entity: Entity,
+ val oldLocation: LorenzVec,
+ val newLocation: LorenzVec,
+ val distance: Double
+) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/FarmingContestEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/FarmingContestEvent.kt
index 194bcc5bf..75521bacd 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/FarmingContestEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/FarmingContestEvent.kt
@@ -3,4 +3,4 @@ package at.hannibal2.skyhanni.events
import at.hannibal2.skyhanni.features.garden.CropType
import at.hannibal2.skyhanni.features.garden.contest.FarmingContestPhase
-class FarmingContestEvent(val crop: CropType, val phase: FarmingContestPhase): LorenzEvent() \ No newline at end of file
+class FarmingContestEvent(val crop: CropType, val phase: FarmingContestPhase) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/GuiRenderEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/GuiRenderEvent.kt
index f7b02466c..8650f1c7c 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/GuiRenderEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/GuiRenderEvent.kt
@@ -1,6 +1,6 @@
package at.hannibal2.skyhanni.events
-open class GuiRenderEvent: LorenzEvent() {
- class ChestBackgroundRenderEvent: GuiRenderEvent()
- class GameOverlayRenderEvent: GuiRenderEvent()
+open class GuiRenderEvent : LorenzEvent() {
+ class ChestBackgroundRenderEvent : GuiRenderEvent()
+ class GameOverlayRenderEvent : GuiRenderEvent()
} \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/InventoryCloseEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/InventoryCloseEvent.kt
index 7346d4310..bf43a57f9 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/InventoryCloseEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/InventoryCloseEvent.kt
@@ -3,9 +3,9 @@ package at.hannibal2.skyhanni.events
import at.hannibal2.skyhanni.data.OtherInventoryData
import net.minecraft.item.ItemStack
-class InventoryCloseEvent(val inventory: OtherInventoryData.Inventory): LorenzEvent() {
+class InventoryCloseEvent(val inventory: OtherInventoryData.Inventory) : LorenzEvent() {
val inventoryId: Int by lazy { inventory.windowId }
- val inventoryName: String by lazy {inventory.title }
- val inventorySize: Int by lazy {inventory.slotCount }
- val inventoryItems: Map<Int, ItemStack> by lazy {inventory.items }
+ val inventoryName: String by lazy { inventory.title }
+ val inventorySize: Int by lazy { inventory.slotCount }
+ val inventoryItems: Map<Int, ItemStack> by lazy { inventory.items }
} \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt
index 2cd5a88f5..ca165c31c 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/InventoryFullyOpenedEvent.kt
@@ -3,13 +3,13 @@ package at.hannibal2.skyhanni.events
import at.hannibal2.skyhanni.data.OtherInventoryData
import net.minecraft.item.ItemStack
-open class InventoryOpenEvent(inventory: OtherInventoryData.Inventory): LorenzEvent() {
+open class InventoryOpenEvent(inventory: OtherInventoryData.Inventory) : LorenzEvent() {
val inventoryId: Int by lazy { inventory.windowId }
- val inventoryName: String by lazy {inventory.title }
- val inventorySize: Int by lazy {inventory.slotCount }
- val inventoryItems: Map<Int, ItemStack> by lazy {inventory.items }
+ val inventoryName: String by lazy { inventory.title }
+ val inventorySize: Int by lazy { inventory.slotCount }
+ val inventoryItems: Map<Int, ItemStack> by lazy { inventory.items }
}
-class InventoryFullyOpenedEvent(inventory: OtherInventoryData.Inventory): InventoryOpenEvent(inventory)
+class InventoryFullyOpenedEvent(inventory: OtherInventoryData.Inventory) : InventoryOpenEvent(inventory)
-class InventoryUpdatedEvent(inventory: OtherInventoryData.Inventory): InventoryOpenEvent(inventory) \ No newline at end of file
+class InventoryUpdatedEvent(inventory: OtherInventoryData.Inventory) : InventoryOpenEvent(inventory) \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/LorenzChatEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/LorenzChatEvent.kt
index 891ab340c..e20e05b01 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/LorenzChatEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/LorenzChatEvent.kt
@@ -2,4 +2,5 @@ package at.hannibal2.skyhanni.events
import net.minecraft.util.IChatComponent
-class LorenzChatEvent(val message: String, var chatComponent: IChatComponent, var blockedReason: String = "") : LorenzEvent() \ No newline at end of file
+class LorenzChatEvent(val message: String, var chatComponent: IChatComponent, var blockedReason: String = "") :
+ LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/LorenzToolTipEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/LorenzToolTipEvent.kt
index 992edd78d..538087fac 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/LorenzToolTipEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/LorenzToolTipEvent.kt
@@ -3,4 +3,4 @@ package at.hannibal2.skyhanni.events
import net.minecraft.inventory.Slot
import net.minecraft.item.ItemStack
-class LorenzToolTipEvent(val slot: Slot, val itemStack: ItemStack, var toolTip: MutableList<String>): LorenzEvent() \ No newline at end of file
+class LorenzToolTipEvent(val slot: Slot, val itemStack: ItemStack, var toolTip: MutableList<String>) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/LorenzWorldChangeEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/LorenzWorldChangeEvent.kt
index 35f9ddd63..c815e9630 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/LorenzWorldChangeEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/LorenzWorldChangeEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class LorenzWorldChangeEvent() : LorenzEvent() \ No newline at end of file
+class LorenzWorldChangeEvent : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/OwnInventorItemUpdateEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/OwnInventorItemUpdateEvent.kt
index 892651a3d..837cbf93b 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/OwnInventorItemUpdateEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/OwnInventorItemUpdateEvent.kt
@@ -5,4 +5,4 @@ import net.minecraft.item.ItemStack
/**
* Note: This event is async and may not be executed on the main minecraft thread.
*/
-data class OwnInventorItemUpdateEvent(val itemStack: ItemStack): LorenzEvent() \ No newline at end of file
+data class OwnInventorItemUpdateEvent(val itemStack: ItemStack) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/ProfileJoinEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/ProfileJoinEvent.kt
index ebf1e7b6d..68d8f075d 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/ProfileJoinEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/ProfileJoinEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class ProfileJoinEvent(val name: String): LorenzEvent()
+class ProfileJoinEvent(val name: String) : LorenzEvent()
diff --git a/src/main/java/at/hannibal2/skyhanni/events/RenderBlockInWorldEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/RenderBlockInWorldEvent.kt
index f72c81651..4aa3ef9dc 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/RenderBlockInWorldEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/RenderBlockInWorldEvent.kt
@@ -6,4 +6,5 @@ import net.minecraft.world.IBlockAccess
import net.minecraftforge.fml.common.eventhandler.Cancelable
@Cancelable
-data class RenderBlockInWorldEvent(@JvmField var state: IBlockState?, var world: IBlockAccess, var pos: BlockPos?) : LorenzEvent() \ No newline at end of file
+data class RenderBlockInWorldEvent(@JvmField var state: IBlockState?, var world: IBlockAccess, var pos: BlockPos?) :
+ LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/RenderItemTipEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/RenderItemTipEvent.kt
index f5ec1d257..8d841bcee 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/RenderItemTipEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/RenderItemTipEvent.kt
@@ -12,4 +12,4 @@ class RenderItemTipEvent(
}
}
-class RenderObject(val text: String, var offsetX: Int = 0, var offsetY: Int = 0,) \ No newline at end of file
+class RenderObject(val text: String, var offsetX: Int = 0, var offsetY: Int = 0) \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/RenderTooltipEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/RenderTooltipEvent.kt
index 0fbbc46d2..ff9e6b448 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/RenderTooltipEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/RenderTooltipEvent.kt
@@ -2,4 +2,4 @@ package at.hannibal2.skyhanni.events
import net.minecraft.item.ItemStack
-class RenderItemTooltipEvent(val stack: ItemStack): LorenzEvent() \ No newline at end of file
+class RenderItemTooltipEvent(val stack: ItemStack) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt
index 39d187326..06d10f505 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt
@@ -6,13 +6,16 @@ import com.google.gson.Gson
import com.google.gson.JsonObject
import java.io.File
-class RepositoryReloadEvent(val repoLocation: File, val gson: Gson): LorenzEvent() {
+class RepositoryReloadEvent(val repoLocation: File, val gson: Gson) : LorenzEvent() {
fun getConstant(constant: String) = getConstant<JsonObject>(constant)
inline fun <reified T : Any> getConstant(constant: String) = try {
RepoUtils.getConstant(repoLocation, constant, gson, T::class.java)
} catch (e: Exception) {
- CopyErrorCommand.logError(Exception("Repo parsing error while trying to read constant '$constant'", e), "Error reading repo data")
+ CopyErrorCommand.logError(
+ Exception("Repo parsing error while trying to read constant '$constant'", e),
+ "Error reading repo data"
+ )
null
}
} \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/ScoreboardChangeEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/ScoreboardChangeEvent.kt
index c2976629f..a9fa81a41 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/ScoreboardChangeEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/ScoreboardChangeEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class ScoreboardChangeEvent(val oldList: List<String>, val newList: List<String>): LorenzEvent() \ No newline at end of file
+class ScoreboardChangeEvent(val oldList: List<String>, val newList: List<String>) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/ScoreboardRawChangeEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/ScoreboardRawChangeEvent.kt
index 6f7301701..c1f667ee3 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/ScoreboardRawChangeEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/ScoreboardRawChangeEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class ScoreboardRawChangeEvent(val oldList: List<String>, val newList: List<String>): LorenzEvent() \ No newline at end of file
+class ScoreboardRawChangeEvent(val oldList: List<String>, val newList: List<String>) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/SeaCreatureFishEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/SeaCreatureFishEvent.kt
index 86c69549b..545b282ce 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/SeaCreatureFishEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/SeaCreatureFishEvent.kt
@@ -2,4 +2,4 @@ package at.hannibal2.skyhanni.events
import at.hannibal2.skyhanni.features.fishing.SeaCreature
-class SeaCreatureFishEvent(val seaCreature: SeaCreature, val chatEvent: LorenzChatEvent): LorenzEvent() \ No newline at end of file
+class SeaCreatureFishEvent(val seaCreature: SeaCreature, val chatEvent: LorenzChatEvent) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/SlayerChangeEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/SlayerChangeEvent.kt
index 9bbf1672a..7c70dde5d 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/SlayerChangeEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/SlayerChangeEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class SlayerChangeEvent(val oldSlayer: String, val newSlayer: String): LorenzEvent() \ No newline at end of file
+class SlayerChangeEvent(val oldSlayer: String, val newSlayer: String) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/SlayerProgressChangeEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/SlayerProgressChangeEvent.kt
index 909df1d6a..95ecf447f 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/SlayerProgressChangeEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/SlayerProgressChangeEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class SlayerProgressChangeEvent(val oldProgress: String, val newProgress: String): LorenzEvent() \ No newline at end of file
+class SlayerProgressChangeEvent(val oldProgress: String, val newProgress: String) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/SlayerQuestCompleteEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/SlayerQuestCompleteEvent.kt
index 5ed7ecac2..8c7aa753e 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/SlayerQuestCompleteEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/SlayerQuestCompleteEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class SlayerQuestCompleteEvent: LorenzEvent() \ No newline at end of file
+class SlayerQuestCompleteEvent : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/SoopyGuessBurrowEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/SoopyGuessBurrowEvent.kt
index 66537284e..c4b4683c5 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/SoopyGuessBurrowEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/SoopyGuessBurrowEvent.kt
@@ -2,4 +2,4 @@ package at.hannibal2.skyhanni.events
import at.hannibal2.skyhanni.utils.LorenzVec
-class SoopyGuessBurrowEvent(val guessLocation: LorenzVec): LorenzEvent() \ No newline at end of file
+class SoopyGuessBurrowEvent(val guessLocation: LorenzVec) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/TabListLineRenderEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/TabListLineRenderEvent.kt
index a8359b569..8916c55fa 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/TabListLineRenderEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/TabListLineRenderEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class TabListLineRenderEvent(var text: String): LorenzEvent() \ No newline at end of file
+class TabListLineRenderEvent(var text: String) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/TabListUpdateEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/TabListUpdateEvent.kt
index 4524cbd05..b3ab18bab 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/TabListUpdateEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/TabListUpdateEvent.kt
@@ -1,3 +1,3 @@
package at.hannibal2.skyhanni.events
-class TabListUpdateEvent(val tabList: List<String>): LorenzEvent() \ No newline at end of file
+class TabListUpdateEvent(val tabList: List<String>) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/TitleReceivedEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/TitleReceivedEvent.kt
index 76961ccf6..2576809cc 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/TitleReceivedEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/TitleReceivedEvent.kt
@@ -3,4 +3,4 @@ package at.hannibal2.skyhanni.events
import net.minecraftforge.fml.common.eventhandler.Cancelable
@Cancelable
-class TitleReceivedEvent(val title: String): LorenzEvent() \ No newline at end of file
+class TitleReceivedEvent(val title: String) : LorenzEvent() \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/events/VisitorArrivalEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/VisitorArrivalEvent.kt
index 6e92d85cf..91be1bbe5 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/VisitorArrivalEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/VisitorArrivalEvent.kt
@@ -2,4 +2,4 @@ package at.hannibal2.skyhanni.events
import at.hannibal2.skyhanni.features.garden.visitor.GardenVisitorFeatures.Visitor
-class VisitorArrivalEvent(val visitor: Visitor): LorenzEvent() \ No newline at end of file
+class VisitorArrivalEvent(val visitor: Visitor) : LorenzEvent() \ No newline at end of file