Java Code Examples for cn.nukkit.math.BlockFace#rotateY()
The following examples show how to use
cn.nukkit.math.BlockFace#rotateY() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BlockRedstoneDiode.java From Jupiter with GNU General Public License v3.0 | 5 votes |
protected int getPowerOnSides() { Vector3 pos = getLocation(); BlockFace face = getFacing(); BlockFace face1 = face.rotateY(); BlockFace face2 = face.rotateYCCW(); return Math.max(this.getPowerOnSide(pos.getSide(face1), face1), this.getPowerOnSide(pos.getSide(face2), face2)); }
Example 2
Source File: BlockRedstoneDiode.java From Nukkit with GNU General Public License v3.0 | 5 votes |
protected int getPowerOnSides() { Vector3 pos = getLocation(); BlockFace face = getFacing(); BlockFace face1 = face.rotateY(); BlockFace face2 = face.rotateYCCW(); return Math.max(this.getPowerOnSide(pos.getSide(face1), face1), this.getPowerOnSide(pos.getSide(face2), face2)); }
Example 3
Source File: BlockRedstoneDiode.java From Nukkit with GNU General Public License v3.0 | 5 votes |
protected int getPowerOnSides() { Vector3 pos = getLocation(); BlockFace face = getFacing(); BlockFace face1 = face.rotateY(); BlockFace face2 = face.rotateYCCW(); return Math.max(this.getPowerOnSide(pos.getSide(face1), face1), this.getPowerOnSide(pos.getSide(face2), face2)); }