From 0be7adc9632c33f1b7bd99809bba01487602c2de Mon Sep 17 00:00:00 2001 From: opekope2 Date: Tue, 16 Jan 2024 19:40:36 +0100 Subject: [PATCH] Rename vanilla staff handlers Package name already contains what they are --- .../{BoneBlockItemHandler.kt => BoneBlockHandler.kt} | 4 ++-- .../{SnowBlockItemHandler.kt => SnowBlockHandler.kt} | 4 ++-- .../internal/staff_item_handler/VanillaStaffItemHandlers.kt | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/{BoneBlockItemHandler.kt => BoneBlockHandler.kt} (97%) rename StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/{SnowBlockItemHandler.kt => SnowBlockHandler.kt} (96%) diff --git a/StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/BoneBlockItemHandler.kt b/StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/BoneBlockHandler.kt similarity index 97% rename from StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/BoneBlockItemHandler.kt rename to StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/BoneBlockHandler.kt index 6fa475583..48c0434a7 100644 --- a/StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/BoneBlockItemHandler.kt +++ b/StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/BoneBlockHandler.kt @@ -32,7 +32,7 @@ import net.minecraft.world.event.GameEvent import opekope2.avm_staff.api.initializer.IStaffModInitializationContext import opekope2.avm_staff.api.item.StaffItemHandler -class BoneBlockItemHandler : StaffItemHandler() { +class BoneBlockHandler : StaffItemHandler() { override fun useOnBlock( staffStack: ItemStack, world: World, @@ -67,7 +67,7 @@ class BoneBlockItemHandler : StaffItemHandler() { companion object { fun registerStaffItemHandler(context: IStaffModInitializationContext) { - context.registerStaffItemHandler(Identifier("bone_block"), BoneBlockItemHandler()) + context.registerStaffItemHandler(Identifier("bone_block"), BoneBlockHandler()) } } } diff --git a/StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/SnowBlockItemHandler.kt b/StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/SnowBlockHandler.kt similarity index 96% rename from StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/SnowBlockItemHandler.kt rename to StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/SnowBlockHandler.kt index 71d16336d..85c3e1eb5 100644 --- a/StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/SnowBlockItemHandler.kt +++ b/StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/SnowBlockHandler.kt @@ -31,7 +31,7 @@ import net.minecraft.world.World import opekope2.avm_staff.api.initializer.IStaffModInitializationContext import opekope2.avm_staff.api.item.StaffItemHandler -class SnowBlockItemHandler : StaffItemHandler() { +class SnowBlockHandler : StaffItemHandler() { override val maxUseTime = 72000 override fun use( @@ -66,7 +66,7 @@ class SnowBlockItemHandler : StaffItemHandler() { companion object { fun registerStaffItemHandler(context: IStaffModInitializationContext) { - context.registerStaffItemHandler(Identifier("snow_block"), SnowBlockItemHandler()) + context.registerStaffItemHandler(Identifier("snow_block"), SnowBlockHandler()) } } } diff --git a/StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/VanillaStaffItemHandlers.kt b/StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/VanillaStaffItemHandlers.kt index 4a7f94274..898b5ee5e 100644 --- a/StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/VanillaStaffItemHandlers.kt +++ b/StaffMod/src/main/kotlin/opekope2/avm_staff/internal/staff_item_handler/VanillaStaffItemHandlers.kt @@ -22,7 +22,7 @@ import opekope2.avm_staff.api.initializer.IStaffModInitializationContext @Suppress("unused") fun register(context: IStaffModInitializationContext) { - BoneBlockItemHandler.registerStaffItemHandler(context) + BoneBlockHandler.registerStaffItemHandler(context) - SnowBlockItemHandler.registerStaffItemHandler(context) + SnowBlockHandler.registerStaffItemHandler(context) }