|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.morbz.minecraft.world.DefaultLayers
public class DefaultLayers
This class can be used to define the default block layers of the part of the world that was created by J2Blocks. This results in a flat world where the blocks of each Y-coordinate are the same until they get overwritten. It is recommended to combine the DefaultLayers with the FlatGenerator to get a consistent world.
Constructor Summary | |
---|---|
DefaultLayers()
|
Method Summary | |
---|---|
Material |
getLayer(int y)
Get the material at the given Y-coordinate. |
void |
setLayer(int y,
Material material)
Sets the layer at the given Y-coordinate with the given material. |
void |
setLayers(int y1,
int y2,
Material material)
Sets the layers of the given range of Y-coordinates (including y1 and y2) with the given material. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultLayers()
Method Detail |
---|
public void setLayer(int y, Material material)
y
- The Y-coordinatematerial
- The materialpublic void setLayers(int y1, int y2, Material material)
y1
- The lower Y-coordinatey2
- The higher Y-coordinatematerial
- The materialpublic Material getLayer(int y)
y
- The Y-coordinate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |