Package org.bukkit.material

Examples of org.bukkit.material.NetherWarts


                }

                return true;

            case NETHER_WARTS:
                NetherWarts warts = (NetherWarts) blockState.getData();

                if (greenTerra || greenThumbStage > 2) {
                    warts.setState(NetherWartsState.STAGE_TWO);
                }
                else if (greenThumbStage == 2) {
                    warts.setState(NetherWartsState.STAGE_ONE);
                }
                else {
                    warts.setState(NetherWartsState.SEEDED);
                }

                return true;

            case COCOA:
View Full Code Here


        chunk.setBlock(x, y - 1, z, Material.MYCEL);
      chunk.setBlock(x, y, z, Material.RED_MUSHROOM);
      break;
    case NETHERWART:
      chunk.setBlockIfNot(x, y - 1, z, Material.SOUL_SAND);
      chunk.setBlock(x, y, z, Material.NETHER_WARTS, new NetherWarts(getRandomNetherWartGrowth())); //TODO: Bukkit type mismatch/missing
      break;
    case FIRE:
      chunk.setBlockIfNot(x, y - 1, z, Material.NETHERRACK);
      chunk.setBlock(x, y, z, Material.FIRE);
      break;
View Full Code Here

TOP

Related Classes of org.bukkit.material.NetherWarts

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.