Java Code Examples for cn.nukkit.block.BlockSapling#JUNGLE
The following examples show how to use
cn.nukkit.block.BlockSapling#JUNGLE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ObjectTree.java From Nukkit with GNU General Public License v3.0 | 6 votes |
public static void growTree(ChunkManager level, int x, int y, int z, NukkitRandom random, int type) { ObjectTree tree; switch (type) { case BlockSapling.SPRUCE: tree = new ObjectSpruceTree(); break; case BlockSapling.BIRCH: tree = new ObjectBirchTree(); break; case BlockSapling.JUNGLE: tree = new ObjectJungleTree(); break; case BlockSapling.BIRCH_TALL: tree = new ObjectTallBirchTree(); break; case BlockSapling.OAK: default: tree = new ObjectOakTree(); //todo: more complex treeeeeeeeeeeeeeeee break; } if (tree.canPlaceObject(level, x, y, z, random)) { tree.placeObject(level, x, y, z, random); } }
Example 2
Source File: ObjectTree.java From Jupiter with GNU General Public License v3.0 | 5 votes |
public static void growTree(ChunkManager level, int x, int y, int z, NukkitRandom random, int type) { ObjectTree tree; switch (type) { case BlockSapling.SPRUCE: if (random.nextBoundedInt(39) == 0) { tree = new ObjectSpruceTree(); } else { tree = new ObjectSpruceTree(); } break; case BlockSapling.BIRCH: if (random.nextBoundedInt(39) == 0) { tree = new ObjectTallBirchTree(); } else { tree = new ObjectBirchTree(); } break; case BlockSapling.JUNGLE: tree = new ObjectJungleTree(); break; case BlockSapling.OAK: default: tree = new ObjectOakTree(); //todo: more complex treeeeeeeeeeeeeeeee break; } if (tree.canPlaceObject(level, x, y, z, random)) { tree.placeObject(level, x, y, z, random); } }
Example 3
Source File: ObjectTree.java From Nukkit with GNU General Public License v3.0 | 5 votes |
public static void growTree(ChunkManager level, int x, int y, int z, NukkitRandom random, int type) { ObjectTree tree; switch (type) { case BlockSapling.SPRUCE: if (random.nextBoundedInt(39) == 0) { tree = new ObjectSpruceTree(); } else { tree = new ObjectSpruceTree(); } break; case BlockSapling.BIRCH: if (random.nextBoundedInt(39) == 0) { tree = new ObjectTallBirchTree(); } else { tree = new ObjectBirchTree(); } break; case BlockSapling.JUNGLE: tree = new ObjectJungleTree(); break; case BlockSapling.OAK: default: tree = new ObjectOakTree(); //todo: more complex treeeeeeeeeeeeeeeee break; } if (tree.canPlaceObject(level, x, y, z, random)) { tree.placeObject(level, x, y, z, random); } }
Example 4
Source File: JungleTreePopulator.java From Jupiter with GNU General Public License v3.0 | 4 votes |
public JungleTreePopulator() { this(BlockSapling.JUNGLE); }
Example 5
Source File: JungleBigTreePopulator.java From Jupiter with GNU General Public License v3.0 | 4 votes |
public JungleBigTreePopulator() { this(BlockSapling.JUNGLE); }
Example 6
Source File: JungleFloorPopulator.java From Nukkit with GNU General Public License v3.0 | 4 votes |
public JungleFloorPopulator() { this(BlockSapling.JUNGLE); }
Example 7
Source File: JungleTreePopulator.java From Nukkit with GNU General Public License v3.0 | 4 votes |
public JungleTreePopulator() { this(BlockSapling.JUNGLE); }
Example 8
Source File: JungleTreePopulator.java From Nukkit with GNU General Public License v3.0 | 4 votes |
public JungleTreePopulator() { this(BlockSapling.JUNGLE); }
Example 9
Source File: JungleBigTreePopulator.java From Nukkit with GNU General Public License v3.0 | 4 votes |
public JungleBigTreePopulator() { this(BlockSapling.JUNGLE); }