Skip to content

Commit cc7f648

Browse files
committed
Rename debug cast envs to reflect their actual uses
1 parent 6cf743f commit cc7f648

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Common/src/main/kotlin/gay/object/hexdebug/casting/eval/DebugItemCastEnv.kt renamed to Common/src/main/kotlin/gay/object/hexdebug/casting/eval/DebuggerCastEnv.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import net.minecraft.network.chat.Component
88
import net.minecraft.server.level.ServerPlayer
99
import net.minecraft.world.InteractionHand
1010

11-
class DebugItemCastEnv(
11+
class DebuggerCastEnv(
1212
caster: ServerPlayer,
1313
castingHand: InteractionHand,
1414
) : PackagedItemCastEnv(caster, castingHand), IDebugCastEnv {

Common/src/main/kotlin/gay/object/hexdebug/casting/eval/DebugStaffCastEnv.kt renamed to Common/src/main/kotlin/gay/object/hexdebug/casting/eval/EvaluatorCastEnv.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import net.minecraft.network.chat.Component
88
import net.minecraft.server.level.ServerPlayer
99
import net.minecraft.world.InteractionHand
1010

11-
class DebugStaffCastEnv(
11+
class EvaluatorCastEnv(
1212
caster: ServerPlayer,
1313
castingHand: InteractionHand,
1414
) : StaffCastEnv(caster, castingHand), IDebugCastEnv {

Common/src/main/kotlin/gay/object/hexdebug/items/ItemDebugger.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import at.petrak.hexcasting.common.items.magic.ItemPackagedHex
1010
import at.petrak.hexcasting.xplat.IXplatAbstractions
1111
import gay.`object`.hexdebug.HexDebug
1212
import gay.`object`.hexdebug.adapter.DebugAdapterManager
13-
import gay.`object`.hexdebug.casting.eval.DebugItemCastEnv
13+
import gay.`object`.hexdebug.casting.eval.DebuggerCastEnv
1414
import gay.`object`.hexdebug.debugger.CastArgs
1515
import gay.`object`.hexdebug.utils.getWrapping
1616
import gay.`object`.hexdebug.utils.itemPredicate
@@ -87,7 +87,7 @@ class ItemDebugger(properties: Properties) : ItemPackagedHex(properties) {
8787
}
8888
} ?: return InteractionResultHolder.fail(stack)
8989

90-
val ctx = DebugItemCastEnv(serverPlayer, usedHand)
90+
val ctx = DebuggerCastEnv(serverPlayer, usedHand)
9191
val args = CastArgs(instrs, ctx, serverLevel)
9292

9393
if (!debugAdapter.startDebugging(args)) {

Common/src/main/kotlin/gay/object/hexdebug/items/ItemEvaluator.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import at.petrak.hexcasting.common.msgs.*
77
import at.petrak.hexcasting.xplat.IXplatAbstractions
88
import gay.`object`.hexdebug.HexDebug
99
import gay.`object`.hexdebug.adapter.DebugAdapterManager
10-
import gay.`object`.hexdebug.casting.eval.DebugStaffCastEnv
10+
import gay.`object`.hexdebug.casting.eval.EvaluatorCastEnv
1111
import gay.`object`.hexdebug.utils.itemPredicate
1212
import net.minecraft.client.player.LocalPlayer
1313
import net.minecraft.client.renderer.item.ClampedItemPropertyFunction
@@ -83,7 +83,7 @@ class ItemEvaluator(properties: Properties) : ItemStaff(properties) {
8383
return
8484
}
8585

86-
val env = DebugStaffCastEnv(sender, msg.handUsed)
86+
val env = EvaluatorCastEnv(sender, msg.handUsed)
8787
val clientInfo = debugAdapter.evaluate(env, msg.pattern) ?: return
8888

8989
debugger.evaluatorUIPatterns.clear()

0 commit comments

Comments
 (0)