Examples of canRotate()


Examples of org.getspout.spoutapi.material.CustomBlock.canRotate()

              if (rot < 0) {
                rot += 4;
              }
              byte rotation;
              if (cb.canMirroredRotate() && mirrored) {
                rotation = cb.canRotate() ? (byte) (rot + 4) : 4;
              } else {
                rotation = cb.canRotate() ? (byte) rot : 0;
              }
              mm.overrideBlock(block, cb, rotation);
View Full Code Here

Examples of org.getspout.spoutapi.material.CustomBlock.canRotate()

              }
              byte rotation;
              if (cb.canMirroredRotate() && mirrored) {
                rotation = cb.canRotate() ? (byte) (rot + 4) : 4;
              } else {
                rotation = cb.canRotate() ? (byte) rot : 0;
              }
              mm.overrideBlock(block, cb, rotation);

              if (canPlaceAt(block, oldState, (SpoutBlock)event.getClickedBlock(), item, player)) {
                // Yay, take the item from inventory
View Full Code Here

Examples of org.getspout.spoutapi.material.CustomBlock.canRotate()

                  }
                }
                player.playSound(player.getLocation(), Sound.DIG_STONE, 1.0F, 0.7936508F);
                player.updateInventory();
                // Now we have placed a nice custom block! We should check its rotation and rotate the base block!
                if (cb.canRotate()) {
                  if (cb.canMirroredRotate() && mirrored) {
                    if (block.getType() == Material.LEVER || block.getType() == Material.TORCH || block.getType() == Material.STONE_BUTTON || block.getType() == Material.WOOD_BUTTON) {
                      // The below Types need a slightly different data value to assign correct positioning.
                      if (event.getBlockFace() == BlockFace.UP) {
                        block.setData((byte) 5);
View Full Code Here

Examples of powercrystals.core.position.IRotateableTile.canRotate()

        }
    TileEntity te = world.getBlockTileEntity(x, y, z);
    if(te instanceof IRotateableTile)
    {
      IRotateableTile tile = ((IRotateableTile)te);
      if (tile.canRotate())
      {
        tile.rotate();
        return true;
      }
    }
View Full Code Here

Examples of powercrystals.core.position.IRotateableTile.canRotate()

        }
    TileEntity te = world.getBlockTileEntity(x, y, z);
    if(te instanceof IRotateableTile)
    {
      IRotateableTile tile = ((IRotateableTile)te);
      if (tile.canRotate())
      {
        tile.rotate();
        return true;
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.