Package org.bukkit.block

Examples of org.bukkit.block.BlockState.update()


    current.setData(this.warzone.getWarzoneMaterials().getMainBlock().getData());
    current.update(true);
    current = this.warzone.getWorld().getBlockAt(x - 1, y - 1, z).getState();
    current.setType(this.warzone.getWarzoneMaterials().getMainBlock().getType());
    current.setData(this.warzone.getWarzoneMaterials().getMainBlock().getData());
    current.update(true);
    current = this.warzone.getWorld().getBlockAt(x - 1, y - 1, z - 1).getState();
    current.setType(this.warzone.getWarzoneMaterials().getLightBlock().getType());
    current.setData(this.warzone.getWarzoneMaterials().getLightBlock().getData());
    current.update(true);
View Full Code Here


    current.setData(this.warzone.getWarzoneMaterials().getMainBlock().getData());
    current.update(true);
    current = this.warzone.getWorld().getBlockAt(x - 1, y - 1, z - 1).getState();
    current.setType(this.warzone.getWarzoneMaterials().getLightBlock().getType());
    current.setData(this.warzone.getWarzoneMaterials().getLightBlock().getData());
    current.update(true);

    // block holder
    current = this.warzone.getWorld().getBlockAt(x, y, z).getState();
    current.setType(this.warzone.getWarzoneMaterials().getStandBlock().getType());
    current.setData(this.warzone.getWarzoneMaterials().getStandBlock().getData());
View Full Code Here

    // block holder
    current = this.warzone.getWorld().getBlockAt(x, y, z).getState();
    current.setType(this.warzone.getWarzoneMaterials().getStandBlock().getType());
    current.setData(this.warzone.getWarzoneMaterials().getStandBlock().getData());
    current.update(true);
    this.warzone.getWorld().getBlockAt(x, y + 1, z).setType(Material.CAKE_BLOCK);
  }

  public boolean isCakeBlock(Location otherLocation) {
    int x = this.location.getBlockX();
View Full Code Here

    // center
    BlockState current = this.warzone.getWorld().getBlockAt(x, y - 1, z).getState();
    current.setType(main);
    current.setData(mainData);
    current.update(true);

    // inner ring
    current = this.warzone.getWorld().getBlockAt(x + 1, y - 1, z + 1).getState();
    current.setType(main);
    current.setData(mainData);
View Full Code Here

    // inner ring
    current = this.warzone.getWorld().getBlockAt(x + 1, y - 1, z + 1).getState();
    current.setType(main);
    current.setData(mainData);
    current.update(true);
    current = this.warzone.getWorld().getBlockAt(x + 1, y - 1, z).getState();
    current.setType(main);
    current.setData(mainData);
    current.update(true);
    current = this.warzone.getWorld().getBlockAt(x + 1, y - 1, z - 1).getState();
View Full Code Here

    current.setData(mainData);
    current.update(true);
    current = this.warzone.getWorld().getBlockAt(x + 1, y - 1, z).getState();
    current.setType(main);
    current.setData(mainData);
    current.update(true);
    current = this.warzone.getWorld().getBlockAt(x + 1, y - 1, z - 1).getState();
    current.setType(main);
    current.setData(mainData);
    current.update(true);
View Full Code Here

    current.setData(mainData);
    current.update(true);
    current = this.warzone.getWorld().getBlockAt(x + 1, y - 1, z - 1).getState();
    current.setType(main);
    current.setData(mainData);
    current.update(true);

    current = this.warzone.getWorld().getBlockAt(x, y - 1, z + 1).getState();
    current.setType(main);
    current.setData(mainData);
    current.update(true);
View Full Code Here

    current.update(true);

    current = this.warzone.getWorld().getBlockAt(x, y - 1, z + 1).getState();
    current.setType(main);
    current.setData(mainData);
    current.update(true);
    current = this.warzone.getWorld().getBlockAt(x, y - 1, z - 1).getState();
    current.setType(main);
    current.setData(mainData);
    current.update(true);
View Full Code Here

    current.setData(mainData);
    current.update(true);
    current = this.warzone.getWorld().getBlockAt(x, y - 1, z - 1).getState();
    current.setType(main);
    current.setData(mainData);
    current.update(true);

    current = this.warzone.getWorld().getBlockAt(x - 1, y - 1, z + 1).getState();
    current.setType(main);
    current.setData(mainData);
    current.update(true);
View Full Code Here

    current.update(true);

    current = this.warzone.getWorld().getBlockAt(x - 1, y - 1, z + 1).getState();
    current.setType(main);
    current.setData(mainData);
    current.update(true);
    current = this.warzone.getWorld().getBlockAt(x - 1, y - 1, z).getState();
    current.setType(main);
    current.setData(mainData);
    current.update(true);
    current = this.warzone.getWorld().getBlockAt(x - 1, y - 1, z - 1).getState();
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.