Package me.ulrich.clans.utils
Class Cuboid
java.lang.Object
me.ulrich.clans.utils.Cuboid
- All Implemented Interfaces:
Cloneable,Iterable<org.bukkit.block.Block>,org.bukkit.configuration.serialization.ConfigurationSerializable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleancontains(int x, int y, int z) booleancontains(org.bukkit.block.Block b) booleancontains(org.bukkit.Location l) booleancontainsOnly(org.bukkit.Material blockId) contract()org.bukkit.block.Block[]corners()expand(Cuboid.CuboidDirection dir, int amount) byteList<org.bukkit.block.Block>getBoundingCuboid(Cuboid other) org.bukkit.LocationList<org.bukkit.Chunk>org.bukkit.Locationintintintorg.bukkit.block.BlockgetRelativeBlock(int x, int y, int z) org.bukkit.block.BlockgetRelativeBlock(org.bukkit.World w, int x, int y, int z) intgetSizeX()intgetSizeY()intgetSizeZ()org.bukkit.Locationintintintintorg.bukkit.WorldgetWorld()inset(Cuboid.CuboidDirection dir, int amount) Iterator<org.bukkit.block.Block>iterator()outset(Cuboid.CuboidDirection dir, int amount) shift(Cuboid.CuboidDirection dir, int amount) toString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Cuboid
public Cuboid(org.bukkit.Location l1, org.bukkit.Location l2) -
Cuboid
public Cuboid(org.bukkit.Location l1) -
Cuboid
-
Cuboid
public Cuboid(org.bukkit.World world, int x1, int y1, int z1, int x2, int y2, int z2) -
Cuboid
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable
-
getLowerNE
public org.bukkit.Location getLowerNE() -
getUpperSW
public org.bukkit.Location getUpperSW() -
getBlocks
-
getCenter
public org.bukkit.Location getCenter() -
getWorld
public org.bukkit.World getWorld() -
getSizeX
public int getSizeX() -
getSizeY
public int getSizeY() -
getSizeZ
public int getSizeZ() -
getLowerX
public int getLowerX() -
getLowerY
public int getLowerY() -
getLowerZ
public int getLowerZ() -
getUpperX
public int getUpperX() -
getUpperY
public int getUpperY() -
getUpperZ
public int getUpperZ() -
corners
public org.bukkit.block.Block[] corners() -
expand
-
shift
-
outset
-
inset
-
contains
public boolean contains(int x, int y, int z) -
contains
public boolean contains(org.bukkit.block.Block b) -
contains
public boolean contains(org.bukkit.Location l) -
getVolume
public int getVolume() -
getAverageLightLevel
public byte getAverageLightLevel() -
contract
-
contract
-
getFace
-
containsOnly
public boolean containsOnly(org.bukkit.Material blockId) -
getBoundingCuboid
-
getRelativeBlock
public org.bukkit.block.Block getRelativeBlock(int x, int y, int z) -
getRelativeBlock
public org.bukkit.block.Block getRelativeBlock(org.bukkit.World w, int x, int y, int z) -
getChunks
-
iterator
-
clone
-
toString
-