public class TARDISBlockSetters
extends java.lang.Object
Constructor and Description |
---|
TARDISBlockSetters(TARDIS plugin) |
Modifier and Type | Method and Description |
---|---|
static void |
setBlock(org.bukkit.Location l,
org.bukkit.block.data.BlockData bd)
Sets a block to the specified block data.
|
static void |
setBlock(org.bukkit.Location l,
org.bukkit.Material material)
Sets a block to the specified block data.
|
static void |
setBlock(org.bukkit.Location l,
java.lang.String d)
Sets a block to the specified block data.
|
static void |
setBlock(org.bukkit.World w,
int x,
int y,
int z,
org.bukkit.block.data.BlockData data)
Sets a block to the specified typeId and data.
|
static void |
setBlock(org.bukkit.World w,
int x,
int y,
int z,
org.bukkit.Material material)
Sets a block to the specified Material.
|
static void |
setBlock(org.bukkit.World w,
int x,
int y,
int z,
java.lang.String data)
Sets a block to the specified block data.
|
static void |
setBlockAndRemember(org.bukkit.block.Block b,
org.bukkit.Material m,
int id,
int type)
Sets a block to the specified type and data and remembers its location and block data.
|
static void |
setBlockAndRemember(org.bukkit.World w,
int x,
int y,
int z,
org.bukkit.block.data.BlockData data,
int id)
Sets a block to the specified type and data and remembers its location and block data.
|
static void |
setBlockAndRemember(org.bukkit.World w,
int x,
int y,
int z,
org.bukkit.Material material,
int id)
Sets a block to the specified type and data and remembers its location and block data.
|
static void |
setUnderDoorBlock(org.bukkit.World w,
int x,
int y,
int z,
int id,
boolean portal)
Sets the block under the TARDIS Police Box door to the specified typeId and data and remembers the block for
replacement later on.
|
public TARDISBlockSetters(TARDIS plugin)
public static void setBlock(org.bukkit.Location l, java.lang.String d)
l
- the location of the block.d
- the block data to set the block to.public static void setBlock(org.bukkit.Location l, org.bukkit.block.data.BlockData bd)
l
- the location of the block.bd
- the block data to set the block to.public static void setBlock(org.bukkit.Location l, org.bukkit.Material material)
l
- the location of the block.material
- the block type to set the block to.public static void setBlock(org.bukkit.World w, int x, int y, int z, org.bukkit.block.data.BlockData data)
w
- the world the block is in.x
- the x co-ordinate of the block.y
- the y co-ordinate of the block.z
- the z co-ordinate of the block.data
- the block data to apply to the block.public static void setBlock(org.bukkit.World w, int x, int y, int z, java.lang.String data)
w
- the world the block is in.x
- the x co-ordinate of the block.y
- the y co-ordinate of the block.z
- the z co-ordinate of the block.data
- the block data to apply to the block.public static void setBlock(org.bukkit.World w, int x, int y, int z, org.bukkit.Material material)
w
- the world the block is in.x
- the x co-ordinate of the block.y
- the y co-ordinate of the block.z
- the z co-ordinate of the block.material
- the Material to apply to the block.public static void setBlockAndRemember(org.bukkit.World w, int x, int y, int z, org.bukkit.block.data.BlockData data, int id)
w
- the world the block is in.x
- the x co-ordinate of the block.y
- the y co-ordinate of the block.z
- the z co-ordinate of the block.data
- the block data to apply to the block.id
- the TARDIS this block belongs to.public static void setBlockAndRemember(org.bukkit.World w, int x, int y, int z, org.bukkit.Material material, int id)
w
- the world the block is in.x
- the x co-ordinate of the block.y
- the y co-ordinate of the block.z
- the z co-ordinate of the block.material
- the material to set the block.id
- the TARDIS this block belongs to.public static void setBlockAndRemember(org.bukkit.block.Block b, org.bukkit.Material m, int id, int type)
b
- the block to set and rememberm
- the typeId to set the block toid
- the TARDIS this block belongs totype
- the police_box type (0 = interior, 1 = police box, 2 = beacon up block)public static void setUnderDoorBlock(org.bukkit.World w, int x, int y, int z, int id, boolean portal)
w
- the world the block is in.x
- the x coordinate of the block.y
- the y coordinate of the block.z
- the z coordinate of the block.id
- the TARDIS this block belongs to.portal
- whether a chest can be in the portal block location