|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aranai.dungeonator.generator.Cuboid
public class Cuboid
The Cuboid class allows for cubic regions of variable size and thickness to be specified at a given offset from the chunk origin. This is useful for specifying walls, rooms, and other cubic volumes with minimal fuss.
Field Summary | |
---|---|
private int |
offsetX
The x offset from the chunk origin. |
private int |
offsetY
The y offset from the chunk origin. |
private int |
offsetZ
The z offset from the chunk origin. |
private int |
sizeX
The cuboid width. |
private int |
sizeY
The cuboid height. |
private int |
sizeZ
The cuboid depth. |
private int |
thickness
The cuboid wall thickness, or 0 if the cuboid is solid. |
Constructor Summary | |
---|---|
Cuboid()
Instantiates a new cuboid with default values. |
|
Cuboid(int x,
int y,
int z)
Instantiates a new cuboid with size values. |
|
Cuboid(int x,
int y,
int z,
int t)
Instantiates a new cuboid with size and thickness values. |
|
Cuboid(int offX,
int offY,
int offZ,
int x,
int y,
int z)
Instantiates a new cuboid with size and offset values. |
|
Cuboid(int offX,
int offY,
int offZ,
int x,
int y,
int z,
int t)
Instantiates a new cuboid with all values. |
Method Summary | |
---|---|
org.bukkit.Location |
getOffsetLocation()
Gets the offset as a location. |
int |
getOffsetX()
Gets the x offset from chunk origin. |
int |
getOffsetY()
Gets the y offset from chunk origin. |
int |
getOffsetZ()
Gets the z offset from chunk origin |
int |
getSizeX()
Gets the cuboid's width. |
int |
getSizeY()
Gets the cuboid's height. |
int |
getSizeZ()
Gets the cuboid's depth. |
private int |
getThickness()
Gets the cuboid's wall thickness. |
boolean |
isSolid()
Checks if the cuboid is solid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int offsetX
private int offsetY
private int offsetZ
private int sizeX
private int sizeY
private int sizeZ
private int thickness
Constructor Detail |
---|
public Cuboid()
public Cuboid(int x, int y, int z)
x
- the cuboid's widthy
- the cuboid's heightz
- the cuboid's depthpublic Cuboid(int x, int y, int z, int t)
x
- the cuboid's widthy
- the cuboid's heightz
- the cuboid's deptht
- the cuboid's wall thicknesspublic Cuboid(int offX, int offY, int offZ, int x, int y, int z)
offX
- the x offset from chunk originoffY
- the y offset from chunk originoffZ
- the z offset from chunk originx
- the cuboid's widthy
- the cuboid's heightz
- the cuboid's depthpublic Cuboid(int offX, int offY, int offZ, int x, int y, int z, int t)
offX
- the x offset from chunk originoffY
- the y offset from chunk originoffZ
- the z offset from chunk originx
- the cuboid's widthy
- the cuboid's heightz
- the cuboid's deptht
- the cuboid's wall thicknessMethod Detail |
---|
public boolean isSolid()
private int getThickness()
public int getOffsetX()
public int getOffsetY()
public int getOffsetZ()
public org.bukkit.Location getOffsetLocation()
public int getSizeX()
public int getSizeY()
public int getSizeZ()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |