Package org.bukkit.material

Examples of org.bukkit.material.Wool


                    if (drop.getType() == Material.WOOL) {
                        if (sheep.isSheared()) {
                            return;
                        }

                        drop = new Wool(sheep.getColor()).toItemStack(drop.getAmount());
                        sheep.setSheared(true);
                    }
                    break;

                case SKELETON:
View Full Code Here


        testColorable(new Dye(Material.INK_SACK, dye.getDyeData()));
    }

    @Test
    public void getWoolDyeColor() {
        testColorable(new Wool(Material.WOOL, dye.getWoolData()));
    }
View Full Code Here

          Material mat = parseMaterial(text, null);
          if (mat == null)
            return def;
          tdat.setMaterial(mat);
        } else if (dat instanceof Wool) {
          Wool wdat = (Wool) dat;
          DyeColor color = parseEnum(DyeColor.class, text, null);
          if (color == null)
            return def;
          wdat.setColor(color);
        } else if (dat instanceof Tree) {
          Tree tdat = (Tree) dat;
          TreeSpecies species = parseTreeSpecies(text, null);
          if (species == null)
            return def;
View Full Code Here

TOP

Related Classes of org.bukkit.material.Wool

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.