implement torch on wall

This commit is contained in:
LabyStudio
2022-02-13 04:17:03 +01:00
parent 9078d34ab0
commit bcdbe4240b
9 changed files with 215 additions and 40 deletions
@@ -22,6 +22,31 @@ window.EnumBlockFace = class {
return this.z !== 0;
}
opposite() {
if (this === EnumBlockFace.TOP) {
return EnumBlockFace.BOTTOM;
}
if (this === EnumBlockFace.BOTTOM) {
return EnumBlockFace.TOP;
}
if (this === EnumBlockFace.NORTH) {
return EnumBlockFace.SOUTH;
}
if (this === EnumBlockFace.SOUTH) {
return EnumBlockFace.NORTH;
}
if (this === EnumBlockFace.EAST) {
return EnumBlockFace.WEST;
}
if (this === EnumBlockFace.WEST) {
return EnumBlockFace.EAST;
}
return null;
}
static values() {
return [
EnumBlockFace.TOP,