public class CuboidObject
extends java.lang.Object
| Constructor and Description |
|---|
CuboidObject(java.lang.String CuboidName,
org.bukkit.Location loc1,
org.bukkit.Location loc2) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCube()
Clear cuboid
|
void |
cubBlock()
Remove blocks in cuboid
|
java.lang.Integer |
generateWalls(org.bukkit.Material material)
Generate walls
|
java.util.List<org.bukkit.block.Block> |
getBlockList()
Get block into a cuboid
|
java.util.List<org.bukkit.block.Block> |
getBlockListWithFilter(java.util.List<org.bukkit.block.Block> filter)
Get block into a cuboid with filter
|
java.util.List<org.bukkit.block.Block> |
getBlockListWithFilterWithoutAir(java.util.List<org.bukkit.block.Block> filter)
Get block into a cuboid with filter without air
|
java.util.List<org.bukkit.block.Block> |
getBlockListWithoutAIR()
Get block without air
|
org.bukkit.Location |
getCenter()
Get cuboid center
|
java.lang.String |
getCuboidName()
Get cuboid name
|
org.bukkit.Location |
getMaxLocation()
Get max location
|
org.bukkit.Location |
getMinLocation()
Get min location
|
java.util.List<org.bukkit.block.Block> |
getWalls()
Get blocks in walls
|
org.bukkit.World |
getWorld()
Get world
|
java.lang.Boolean |
isInCube(org.bukkit.block.Block b)
Check if block is in cube
|
java.lang.Boolean |
isInCube(org.bukkit.entity.Entity ent)
Check if entity is in cube
|
java.lang.Boolean |
isInCube(org.bukkit.Location loc)
Check if location is in cube
|
java.lang.Integer |
replaceBlocks(org.bukkit.Material material)
Replace all blocks
|
java.lang.Integer |
replaceBlocksByBlock(org.bukkit.Material toReplace,
org.bukkit.Material New)
Replace specified blocks
|
java.lang.Integer |
replaceBlocksInWallsByBlock(org.bukkit.Material toReplace,
org.bukkit.Material New)
Replace specified blocks in walls
|
java.lang.Integer |
replaceWalls(org.bukkit.Material material)
Replace walls
|
public CuboidObject(java.lang.String CuboidName,
org.bukkit.Location loc1,
org.bukkit.Location loc2)
public java.lang.String getCuboidName()
public org.bukkit.Location getMinLocation()
public org.bukkit.Location getMaxLocation()
public org.bukkit.World getWorld()
public java.lang.Integer replaceBlocks(org.bukkit.Material material)
loc1 - loc2 - material - public java.lang.Integer replaceBlocksByBlock(org.bukkit.Material toReplace,
org.bukkit.Material New)
loc1 - loc2 - toReplace - New - public java.lang.Integer replaceWalls(org.bukkit.Material material)
loc1 - loc2 - material - public java.lang.Integer replaceBlocksInWallsByBlock(org.bukkit.Material toReplace,
org.bukkit.Material New)
loc1 - loc2 - toReplace - New - public java.lang.Integer generateWalls(org.bukkit.Material material)
loc1 - loc2 - material - public void clearCube()
loc1 - loc2 - public void cubBlock()
loc1 - loc2 - public java.util.List<org.bukkit.block.Block> getWalls()
loc1 - loc2 - public java.util.List<org.bukkit.block.Block> getBlockList()
min - max - public java.util.List<org.bukkit.block.Block> getBlockListWithFilter(java.util.List<org.bukkit.block.Block> filter)
min - max - filter - public java.util.List<org.bukkit.block.Block> getBlockListWithFilterWithoutAir(java.util.List<org.bukkit.block.Block> filter)
filter - public java.util.List<org.bukkit.block.Block> getBlockListWithoutAIR()
min - max - public java.lang.Boolean isInCube(org.bukkit.block.Block b)
b - loc1 - loc2 - public java.lang.Boolean isInCube(org.bukkit.Location loc)
loc - corner1 - corner2 - public java.lang.Boolean isInCube(org.bukkit.entity.Entity ent)
ent - loc1 - loc2 - public org.bukkit.Location getCenter()