Package extrabiomes.module.summa.worldgen

Examples of extrabiomes.module.summa.worldgen.WorldGenLegendOak


                            {
                                (new WorldGenSakuraBlossomTree(true)).generate(player.worldObj, player.worldObj.rand, x, y, z);
                            }
                            else if (cmds[1].equals("legend"))
                            {
                                (new WorldGenLegendOak(true)).generate(player.worldObj, player.worldObj.rand, x, y, z);
                            }
                            else
                            {
                                treeNames(player);
                            }
                        }
                        catch (Exception e)
                        {
                            sendChatMessage(player, "X, Y and Z must be valid numbers.");
                        }
                    }
                    else if (cmds.length == 6)
                    {
                        try
                        {
                            int x = Integer.parseInt(cmds[2]);
                            int y = Integer.parseInt(cmds[3]);
                            int z = Integer.parseInt(cmds[4]);
                            long seed = Long.parseLong(cmds[5]);

                            if (cmds[1].equals("acacia"))
                            {
                                (new WorldGenAcacia(true)).generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("cypress"))
                            {
                                (new WorldGenCypressTree(true)).generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("baldcypress"))
                            {
                                (new WorldGenBaldCypressTree(true)).generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("rainbow"))
                            {
                                (new WorldGenRainbowEucalyptusTree(true)).generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("japanesemaple"))
                            {
                                (new WorldGenJapaneseMapleTree(true)).generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("japanesemapleshrub"))
                            {
                                (new WorldGenJapaneseMapleShrub(true)).generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("fir"))
                            {
                                (new WorldGenFirTree(true)).generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("redwood"))
                            {
                                (new WorldGenNewRedwood(true)).generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("largeFir"))
                            {
                                (new WorldGenFirTreeHuge(true)).generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("brown"))
                            {
                                WorldGenAutumnTree tree = new WorldGenAutumnTree(true, AutumnTreeType.BROWN);
                                WorldGenAutumnTree.setTrunkBlock(Block.getBlockFromItem(Element.LOG_AUTUMN.get().getItem()), Element.LOG_AUTUMN.get().getItemDamage());
                                tree.generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("orange"))
                            {
                                WorldGenAutumnTree tree = new WorldGenAutumnTree(true, AutumnTreeType.ORANGE);
                                WorldGenAutumnTree.setTrunkBlock(Block.getBlockFromItem(Element.LOG_AUTUMN.get().getItem()), Element.LOG_AUTUMN.get().getItemDamage());
                                tree.generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("red"))
                            {
                                WorldGenAutumnTree tree = new WorldGenAutumnTree(true, AutumnTreeType.PURPLE);
                                WorldGenAutumnTree.setTrunkBlock(Block.getBlockFromItem(Element.LOG_AUTUMN.get().getItem()), Element.LOG_AUTUMN.get().getItemDamage());
                                tree.generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("yellow"))
                            {
                                WorldGenAutumnTree tree = new WorldGenAutumnTree(true, AutumnTreeType.YELLOW);
                                WorldGenAutumnTree.setTrunkBlock(Block.getBlockFromItem(Element.LOG_AUTUMN.get().getItem()), Element.LOG_AUTUMN.get().getItemDamage());
                                tree.generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("largeBrown"))
                            {
                                WorldGenBigAutumnTree tree = new WorldGenBigAutumnTree(true, AutumnTreeType.BROWN);
                                WorldGenBigAutumnTree.setTrunkBlock(Block.getBlockFromItem(Element.LOG_AUTUMN.get().getItem()), Element.LOG_AUTUMN.get().getItemDamage());
                                tree.generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("largeorange"))
                            {
                                WorldGenBigAutumnTree tree = new WorldGenBigAutumnTree(true, AutumnTreeType.ORANGE);
                                WorldGenBigAutumnTree.setTrunkBlock(Block.getBlockFromItem(Element.LOG_AUTUMN.get().getItem()), Element.LOG_AUTUMN.get().getItemDamage());
                                tree.generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("largered"))
                            {
                                WorldGenBigAutumnTree tree = new WorldGenBigAutumnTree(true, AutumnTreeType.PURPLE);
                                WorldGenBigAutumnTree.setTrunkBlock(Block.getBlockFromItem(Element.LOG_AUTUMN.get().getItem()), Element.LOG_AUTUMN.get().getItemDamage());
                                tree.generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("largeyellow"))
                            {
                                WorldGenBigAutumnTree tree = new WorldGenBigAutumnTree(true, AutumnTreeType.YELLOW);
                                WorldGenBigAutumnTree.setTrunkBlock(Block.getBlockFromItem(Element.LOG_AUTUMN.get().getItem()), Element.LOG_AUTUMN.get().getItemDamage());
                                tree.generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("sakura"))
                            {
                                (new WorldGenSakuraBlossomTree(true)).generate(player.worldObj, seed, x, y, z);
                            }
                            else if (cmds[1].equals("legend"))
                            {
                                (new WorldGenLegendOak(true)).generate(player.worldObj, player.worldObj.rand, x, y, z);
                                sendChatMessage(player, "The Legend Oak does not currently support seeding.");
                            }
                            else
                            {
                                treeNames(player);
View Full Code Here

TOP

Related Classes of extrabiomes.module.summa.worldgen.WorldGenLegendOak

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.