Package org.bukkit

Examples of org.bukkit.GrassSpecies


                    return 0;
            }

        }
        else if (type == Material.LONG_GRASS) {
            GrassSpecies species = ((LongGrass) data).getSpecies();
            if (species == null) {
                return 0;
            }

            switch (species) {
View Full Code Here


                setData((byte) 5);
            } else {
                setData((byte) 6);
            }
        } else if (mat == Material.LONG_GRASS) {
            GrassSpecies species = ((LongGrass) materialData).getSpecies();

            if (species == GrassSpecies.FERN_LIKE) {
                setData((byte) 11);
            }
        }
View Full Code Here

                sourceY > 0) {
            sourceY--;
        }

        // the grass species can change on each decoration pass
        GrassSpecies species = GrassSpecies.NORMAL;
        final Biome biome = world.getBiome(sourceX, sourceZ);
        if (biomesFernDensity.containsKey(biome)) {
            double density = biomesFernDensity.get(biome);
            if (random.nextFloat() < density) {
                species = GrassSpecies.FERN_LIKE;
View Full Code Here

          if (species == null)
            return def;
          tdat.setSpecies(species);
        } else if (dat instanceof LongGrass) {
          LongGrass ldat = (LongGrass) dat;
          GrassSpecies species = parseEnum(GrassSpecies.class, text, null);
          if (species == null)
            return def;
          ldat.setSpecies(species);
        } else {
          return def;
View Full Code Here

TOP

Related Classes of org.bukkit.GrassSpecies

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.