-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1582b6
commit e8ce4af
Showing
8 changed files
with
103 additions
and
16 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
common/src/main/java/miyucomics/hexical/casting/patterns/operators/OpGetEntityBurning.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package miyucomics.hexical.casting.patterns.operators | ||
|
||
import at.petrak.hexcasting.api.spell.ConstMediaAction | ||
import at.petrak.hexcasting.api.spell.casting.CastingContext | ||
import at.petrak.hexcasting.api.spell.getEntity | ||
import at.petrak.hexcasting.api.spell.iota.BooleanIota | ||
import at.petrak.hexcasting.api.spell.iota.Iota | ||
|
||
class OpGetEntityBurning : ConstMediaAction { | ||
override val argc = 1 | ||
|
||
override fun execute(args: List<Iota>, ctx: CastingContext): List<Iota> { | ||
return listOf(BooleanIota(args.getEntity(0, argc).isOnFire)) | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
common/src/main/java/miyucomics/hexical/casting/patterns/operators/OpGetEntityBurningTime.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package miyucomics.hexical.casting.patterns.operators | ||
|
||
import at.petrak.hexcasting.api.spell.ConstMediaAction | ||
import at.petrak.hexcasting.api.spell.casting.CastingContext | ||
import at.petrak.hexcasting.api.spell.getEntity | ||
import at.petrak.hexcasting.api.spell.iota.DoubleIota | ||
import at.petrak.hexcasting.api.spell.iota.Iota | ||
|
||
class OpGetEntityBurningTime : ConstMediaAction { | ||
override val argc = 1 | ||
|
||
override fun execute(args: List<Iota>, ctx: CastingContext): List<Iota> { | ||
return listOf(DoubleIota(args.getEntity(0, argc).fireTicks.toDouble())) | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
common/src/main/java/miyucomics/hexical/casting/patterns/operators/OpGetEntityWet.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package miyucomics.hexical.casting.patterns.operators | ||
|
||
import at.petrak.hexcasting.api.spell.ConstMediaAction | ||
import at.petrak.hexcasting.api.spell.casting.CastingContext | ||
import at.petrak.hexcasting.api.spell.getEntity | ||
import at.petrak.hexcasting.api.spell.iota.BooleanIota | ||
import at.petrak.hexcasting.api.spell.iota.Iota | ||
|
||
class OpGetEntityWet : ConstMediaAction { | ||
override val argc = 1 | ||
|
||
override fun execute(args: List<Iota>, ctx: CastingContext): List<Iota> { | ||
return listOf(BooleanIota(args.getEntity(0, argc).isWet)) | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ns/operators/lamp/OpGetPlayerSprinting.kt → ...atterns/operators/OpGetPlayerSprinting.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 31 additions & 3 deletions
34
...data/hexical/patchouli_books/hexicalbook/en_us/entries/patterns/entity_purifications.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,43 @@ | ||
{ | ||
"name": "hexical.page.entity_purifications", | ||
"name": "hexical.page.entity_purifications.title", | ||
"icon": "minecraft:spyglass", | ||
"category": "hexcasting:patterns", | ||
"pages": [ | ||
{ | ||
"type": "patchouli:text", | ||
"text": "hexical.page.entity_purifications" | ||
}, | ||
{ | ||
"type": "hexcasting:pattern", | ||
"op_id": "hexical:is_burning", | ||
"anchor": "hexical:is_burning", | ||
"input": "entity", | ||
"output": "boolean", | ||
"text": "hexical.page.is_burning" | ||
}, | ||
{ | ||
"type": "hexcasting:pattern", | ||
"op_id": "hexical:burning_time", | ||
"anchor": "hexical:burning_time", | ||
"input": "entity", | ||
"output": "number", | ||
"text": "hexical.page.burning_time" | ||
}, | ||
{ | ||
"type": "hexcasting:pattern", | ||
"op_id": "hexical:is_wet", | ||
"anchor": "hexical:is_wet", | ||
"input": "entity", | ||
"output": "boolean", | ||
"text": "hexical.page.is_wet" | ||
}, | ||
{ | ||
"type": "hexcasting:pattern", | ||
"op_id": "hexical:is_sprinting", | ||
"anchor": "hexical:is_sprinting", | ||
"input": "entity", | ||
"input": "player entity", | ||
"output": "boolean", | ||
"text": "hexical.page.is_sprinting" | ||
} | ||
] | ||
} | ||
} |