Skip to content

Commit

Permalink
Rename vanilla staff handlers
Browse files Browse the repository at this point in the history
Package name already contains what they are
  • Loading branch information
opekope2 committed Jan 16, 2024
1 parent 98a88c9 commit 0be7adc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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())
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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())
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 0be7adc

Please sign in to comment.