Examples of Directional


Examples of de.ailis.jollada.model.Directional

    public Directional buildDirectional()
    {
        if (this.color == null)
            throw new IllegalStateException("color must be set");
        return new Directional(this.color);
    }
View Full Code Here

Examples of org.bukkit.material.Directional

                return;
            case BlockID.REDSTONE_REPEATER_OFF:
            case BlockID.REDSTONE_REPEATER_ON:
            case BlockID.COMPARATOR_OFF:
            case BlockID.COMPARATOR_ON:
                Directional diode = (Directional) block.getState().getData();
                BlockFace f = diode.getFacing();
                handleDirectWireInput(new WorldVector(w, x + f.getModX(), y, z + f.getModZ()), block, oldLevel, newLevel);
                if(block.getRelative(f).getTypeId() != 0) {
                    handleDirectWireInput(new WorldVector(w, x + f.getModX(), y - 1, z + f.getModZ()), block, oldLevel, newLevel);
                    handleDirectWireInput(new WorldVector(w, x + f.getModX(), y + 1, z + f.getModZ()), block, oldLevel, newLevel);
                    handleDirectWireInput(new WorldVector(w, x + f.getModX() + 1, y - 1, z + f.getModZ()), block, oldLevel, newLevel);
View Full Code Here

Examples of org.bukkit.material.Directional

   *
   * @param directional block
   * @return facing direction
   */
  public static BlockFace getFacing(org.bukkit.block.Block directional) {
    Directional data = getData(directional, Directional.class);
    return data == null ? BlockFace.NORTH : data.getFacing();
  }
View Full Code Here

Examples of org.spout.vanilla.material.block.Directional

  public void setBlockMaterial(int xx, int yy, int zz, BlockMaterial material, short data) {
    final Vector3f transformed = transform(xx, yy, zz);
    position.getWorld().setBlockMaterial(transformed.getFloorX(), transformed.getFloorY(), transformed.getFloorZ(),
        material, data, null);
    if (material instanceof Directional) {
      final Directional directional = (Directional) material;
      final Block block = position.getWorld().getBlock(transformed);
      final BlockFace face = directional.getFacing(block);
      if (face != BlockFace.BOTTOM && face != BlockFace.TOP) {
        directional.setFacing(block, BlockFace.fromYaw(face.getDirection().getAxesAngleDeg().getY()
            + rotation.getAxesAngleDeg().getY()));
      }
    } else if (material instanceof Attachable) {
      final Attachable attachable = (Attachable) material;
      final Block block = position.getWorld().getBlock(transformed);
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.