15 lines
315 B
Kotlin
15 lines
315 B
Kotlin
|
package at.petrak.hex.casting
|
||
|
|
||
|
import net.minecraft.server.level.ServerLevel
|
||
|
import net.minecraft.server.level.ServerPlayer
|
||
|
|
||
|
/**
|
||
|
* Info about the moment the spell started being cast.
|
||
|
*/
|
||
|
@JvmRecord
|
||
|
data class CastingContext(
|
||
|
val caster: ServerPlayer,
|
||
|
) {
|
||
|
val world: ServerLevel get() = caster.getLevel()
|
||
|
}
|