Skip to content

Commit 7e8c89c

Browse files
Merge branch 'main' into SlateLimit
2 parents 117020f + 871f938 commit 7e8c89c

File tree

31 files changed

+298
-174
lines changed

31 files changed

+298
-174
lines changed

Common/src/generated/resources/assets/hexcasting/models/item/ancient_cypher_5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"parent": "minecraft:item/generated",
2+
"parent": "minecraft:item/handheld_rod",
33
"textures": {
44
"layer0": "hexcasting:item/cad/5_ancient_cypher"
55
}

Common/src/generated/resources/assets/hexcasting/models/item/ancient_cypher_5_filled.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"parent": "minecraft:item/generated",
2+
"parent": "minecraft:item/handheld_rod",
33
"textures": {
44
"layer0": "hexcasting:item/cad/5_ancient_cypher",
55
"layer1": "hexcasting:item/cad/5_ancient_cypher_overlay"

Common/src/generated/resources/assets/hexcasting/models/item/artifact_5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"parent": "minecraft:item/generated",
2+
"parent": "minecraft:item/handheld_rod",
33
"textures": {
44
"layer0": "hexcasting:item/cad/5_artifact"
55
}

Common/src/generated/resources/assets/hexcasting/models/item/artifact_5_filled.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"parent": "minecraft:item/generated",
2+
"parent": "minecraft:item/handheld_rod",
33
"textures": {
44
"layer0": "hexcasting:item/cad/5_artifact",
55
"layer1": "hexcasting:item/cad/5_artifact_overlay"

Common/src/generated/resources/assets/hexcasting/models/item/cypher_5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"parent": "minecraft:item/generated",
2+
"parent": "minecraft:item/handheld_rod",
33
"textures": {
44
"layer0": "hexcasting:item/cad/5_cypher"
55
}

Common/src/generated/resources/assets/hexcasting/models/item/cypher_5_filled.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"parent": "minecraft:item/generated",
2+
"parent": "minecraft:item/handheld_rod",
33
"textures": {
44
"layer0": "hexcasting:item/cad/5_cypher",
55
"layer1": "hexcasting:item/cad/5_cypher_overlay"

Common/src/generated/resources/assets/hexcasting/models/item/trinket_5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"parent": "minecraft:item/generated",
2+
"parent": "minecraft:item/handheld_rod",
33
"textures": {
44
"layer0": "hexcasting:item/cad/5_trinket"
55
}

Common/src/generated/resources/assets/hexcasting/models/item/trinket_5_filled.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"parent": "minecraft:item/generated",
2+
"parent": "minecraft:item/handheld_rod",
33
"textures": {
44
"layer0": "hexcasting:item/cad/5_trinket",
55
"layer1": "hexcasting:item/cad/5_trinket_overlay"

Common/src/main/java/at/petrak/hexcasting/api/casting/castables/Action.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import at.petrak.hexcasting.api.casting.eval.OperationResult
55
import at.petrak.hexcasting.api.casting.eval.vm.CastingImage
66
import at.petrak.hexcasting.api.casting.eval.vm.SpellContinuation
77
import at.petrak.hexcasting.api.casting.iota.Iota
8+
import at.petrak.hexcasting.api.casting.mishaps.Mishap
89
import net.minecraft.world.phys.Vec3
910
import java.text.DecimalFormat
1011

@@ -33,6 +34,7 @@ interface Action {
3334
* The userdata tag is copied for you, so you don't need to worry about mutation messing up things
3435
* behind the scenes.
3536
*/
37+
@Throws(Mishap::class)
3638
fun operate(
3739
env: CastingEnvironment,
3840
image: CastingImage,

Common/src/main/java/at/petrak/hexcasting/api/casting/castables/ConstMediaAction.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import at.petrak.hexcasting.api.casting.eval.sideeffects.OperatorSideEffect
66
import at.petrak.hexcasting.api.casting.eval.vm.CastingImage
77
import at.petrak.hexcasting.api.casting.eval.vm.SpellContinuation
88
import at.petrak.hexcasting.api.casting.iota.Iota
9+
import at.petrak.hexcasting.api.casting.mishaps.Mishap
910
import at.petrak.hexcasting.api.casting.mishaps.MishapNotEnoughArgs
1011
import at.petrak.hexcasting.api.casting.mishaps.MishapNotEnoughMedia
1112
import at.petrak.hexcasting.common.lib.hex.HexEvalSounds
@@ -18,8 +19,10 @@ interface ConstMediaAction : Action {
1819
val mediaCost: Long
1920
get() = 0
2021

22+
@Throws(Mishap::class)
2123
fun execute(args: List<Iota>, env: CastingEnvironment): List<Iota>
2224

25+
@Throws(Mishap::class)
2326
fun executeWithOpCount(args: List<Iota>, env: CastingEnvironment): CostMediaActionResult {
2427
val stack = this.execute(args, env)
2528
return CostMediaActionResult(stack)

0 commit comments

Comments
 (0)