| Package | Description |
|---|---|
| org.block.api | |
| org.block.api.load |
| Modifier and Type | Field and Description |
|---|---|
private java.util.ArrayList<CustomBlock> |
BlockAPI.customBlocks |
| Modifier and Type | Method and Description |
|---|---|
CustomBlock |
BlockAPI.getCustomBlock(org.bukkit.block.Block block)
Get the custom block of this block.
|
CustomBlock |
BlockAPI.getCustomBlock(org.bukkit.inventory.ItemStack item)
Get the custom block from a book item
If none match return null
|
CustomBlock |
BlockAPI.getCustomBlock(java.lang.String identifier)
Get the custom block with the specified identifier.
|
private CustomBlock |
BlockAPI.getCustomBlockFromName(java.lang.String name)
Get the custom block from its name
If none was found return null
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<CustomBlock> |
BlockAPI.getCustomBlocks() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
BlockAPI.addMyCustomBlock(CustomBlock block)
Add your own custom block
|
int |
BlockAPI.addMyCustomBlocks(CustomBlock... blocks)
Add your own custom blocks
|
static org.bukkit.inventory.ItemStack |
BlockAPI.getItem(CustomBlock block)
Get a book that will match to the format of this custom block
|
static org.bukkit.block.Block |
BlockAPI.setBlock(CustomBlock cblock,
org.bukkit.block.Block block)
Change that block to the given custom block
|
| Modifier and Type | Method and Description |
|---|---|
int |
BlockAPI.addMyCustomBlocks(java.util.List<CustomBlock> blockList)
Add your own custom blocks
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<CustomBlock> |
BlockLoader.load(BlockAPI plugin) |