make bools actually work

This commit is contained in:
gamma-delta 2022-11-06 12:21:40 -06:00
parent 982208ba0f
commit c74fffa6b7
4 changed files with 11 additions and 11 deletions

View file

@ -12,7 +12,7 @@ import org.jetbrains.annotations.Nullable;
public class BooleanIota extends Iota { public class BooleanIota extends Iota {
public BooleanIota(boolean d) { public BooleanIota(boolean d) {
super(HexIotaTypes.DOUBLE, d); super(HexIotaTypes.BOOLEAN, d);
} }
public boolean getBool() { public boolean getBool() {

View file

@ -61,7 +61,7 @@ public class RegisterPatterns {
OpGetCaster.INSTANCE); OpGetCaster.INSTANCE);
PatternRegistry.mapPattern(HexPattern.fromAngles("aa", HexDir.EAST), modLoc("entity_pos/eye"), PatternRegistry.mapPattern(HexPattern.fromAngles("aa", HexDir.EAST), modLoc("entity_pos/eye"),
new OpEntityPos(false)); new OpEntityPos(false));
PatternRegistry.mapPattern(HexPattern.fromAngles("dd", HexDir.NORTH_WEST), modLoc("entity_pos/foot"), PatternRegistry.mapPattern(HexPattern.fromAngles("dd", HexDir.NORTH_EAST), modLoc("entity_pos/foot"),
new OpEntityPos(true)); new OpEntityPos(true));
PatternRegistry.mapPattern(HexPattern.fromAngles("wa", HexDir.EAST), modLoc("get_entity_look"), PatternRegistry.mapPattern(HexPattern.fromAngles("wa", HexDir.EAST), modLoc("get_entity_look"),
OpEntityLook.INSTANCE); OpEntityLook.INSTANCE);

View file

@ -792,7 +792,7 @@
"hexcasting.entry.basics_pattern": "Basic Patterns", "hexcasting.entry.basics_pattern": "Basic Patterns",
"hexcasting.page.basics_pattern.get_caster": "Adds me, the caster, to the stack.", "hexcasting.page.basics_pattern.get_caster": "Adds me, the caster, to the stack.",
"hexcasting.page.basics_pattern.entity_pos/eye": "Transforms an entity on the stack into the position of its eyes. I should probably use this on myself.", "hexcasting.page.basics_pattern.entity_pos/eye": "Transforms an entity on the stack into the position of its eyes. I should probably use this on myself.",
"hexcasting.page.basics_pattern.entity_pos/feet": "Transforms an entity on the stack into the position it is standing. I should probably use this on other entities.", "hexcasting.page.basics_pattern.entity_pos/foot": "Transforms an entity on the stack into the position it is standing. I should probably use this on other entities.",
"hexcasting.page.basics_pattern.get_entity_look": "Transforms an entity on the stack into the direction it's looking in, as a unit vector.", "hexcasting.page.basics_pattern.get_entity_look": "Transforms an entity on the stack into the direction it's looking in, as a unit vector.",
"hexcasting.page.basics_pattern.print": "Displays the top iota of the stack to me.", "hexcasting.page.basics_pattern.print": "Displays the top iota of the stack to me.",
"hexcasting.page.basics_pattern.raycast.1": "Combines two vectors (a position and a direction) into the answer to the question: If I stood at the position and looked in the direction, what block would I be looking at? Costs a negligible amount of _media.", "hexcasting.page.basics_pattern.raycast.1": "Combines two vectors (a position and a direction) into the answer to the question: If I stood at the position and looked in the direction, what block would I be looking at? Costs a negligible amount of _media.",

View file

@ -38,14 +38,6 @@
"output": "vector", "output": "vector",
"text": "hexcasting.page.basics_pattern.get_entity_look" "text": "hexcasting.page.basics_pattern.get_entity_look"
}, },
{
"type": "hexcasting:pattern",
"op_id": "hexcasting:print",
"anchor": "hexcasting:print",
"input": "any",
"output": "any",
"text": "hexcasting.page.basics_pattern.print"
},
{ {
"type": "hexcasting:pattern", "type": "hexcasting:pattern",
"op_id": "hexcasting:raycast", "op_id": "hexcasting:raycast",
@ -78,6 +70,14 @@
"output": "entity", "output": "entity",
"text": "hexcasting.page.basics_pattern.raycast/entity" "text": "hexcasting.page.basics_pattern.raycast/entity"
}, },
{
"type": "hexcasting:pattern",
"op_id": "hexcasting:print",
"anchor": "hexcasting:print",
"input": "any",
"output": "any",
"text": "hexcasting.page.basics_pattern.print"
},
{ {
"type": "hexcasting:pattern", "type": "hexcasting:pattern",
"op_id": "hexcasting:get_entity_height", "op_id": "hexcasting:get_entity_height",