Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 44 lines 1.0 kB view raw
1package org.bukkit; 2 3/** 4 * A delegate for handling block changes. This serves as a direct interface 5 * between generation algorithms in the server implementation and utilizing 6 * code. 7 * 8 * @author sk89q 9 */ 10public interface BlockChangeDelegate { 11 12 /** 13 * Set a block type at the specified coordinates. 14 * 15 * @param x 16 * @param y 17 * @param z 18 * @param typeId 19 * @return true if the block was set successfully 20 */ 21 public boolean setRawTypeId(int x, int y, int z, int typeId); 22 23 /** 24 * Set a block type and data at the specified coordinates. 25 * 26 * @param x 27 * @param y 28 * @param z 29 * @param typeId 30 * @param data 31 * @return true if the block was set successfully 32 */ 33 public boolean setRawTypeIdAndData(int x, int y, int z, int typeId, int data); 34 35 /** 36 * Get the block type at the location. 37 * 38 * @param x 39 * @param y 40 * @param z 41 * @return 42 */ 43 public int getTypeId(int x, int y, int z); 44}