HexCasting/src/main/java/at/petrak/hex/casting/operators/OpGetCaster.kt
2021-12-25 10:58:16 -06:00

12 lines
384 B
Kotlin

package at.petrak.hex.casting.operators
import at.petrak.hex.casting.CastingContext
import at.petrak.hex.casting.SpellDatum
import net.minecraft.world.entity.Entity
object OpGetCaster : SpellOperator {
override val argc = 0
override fun execute(args: List<SpellDatum<*>>, ctx: CastingContext): List<SpellDatum<*>> =
SpellOperator.spellListOf(ctx.caster as Entity)
}