コード例 #1
0
 @Override
 public void setFacing(Block block, BlockFace facing) {
   block.setData((short) (BlockFaces.EWNS.indexOf(facing, 0) + 2));
 }
コード例 #2
0
 @Override
 public BlockFace getFacing(Block block) {
   return BlockFaces.EWNS.get(block.getData() - 2);
 }