public interface BlockData
Modifier and Type | Method and Description |
---|---|
org.bukkit.block.Block |
getBlock()
Get the block object from the location.
|
int |
getCombinedId()
Get the combined id of the block.
|
org.bukkit.inventory.ItemStack[] |
getContents()
Get the container contents of the block.
|
byte |
getData()
Get the data value of the block.
|
org.bukkit.Location |
getLocation()
Get the location object of the block.
|
org.bukkit.Material |
getType()
Get the type of the block.
|
int |
getTypeId()
Get the type id of the block.
|
org.bukkit.World |
getWorld()
Get the world of the block.
|
int |
getX()
Get the x location of the block.
|
int |
getY()
Get the y location of the block.
|
int |
getZ()
Get the z location of the block.
|
boolean |
hasContents()
Check whether or not this block has container contents or not.
|
void |
setContents(org.bukkit.inventory.ItemStack[] contents)
Set container contents of the block.
|
org.bukkit.Material getType()
int getTypeId()
byte getData()
int getCombinedId()
org.bukkit.World getWorld()
int getX()
int getY()
int getZ()
org.bukkit.Location getLocation()
org.bukkit.block.Block getBlock()
boolean hasContents()
void setContents(org.bukkit.inventory.ItemStack[] contents)
contents
- The contents to set.org.bukkit.inventory.ItemStack[] getContents()