Examples of dMaterial


Examples of net.aufdemrand.denizen.objects.dMaterial

            }

            //check if block is specified and if so, count it!
            for (String item_value : blocks) {
                dB.log("...checking value: " + item_value);
                dMaterial mat = dMaterial.valueOf(item_value);

                if (event.getBlock().getState().getType() == mat.getMaterial() &&
                        event.getBlock().getState().getData().equals(mat.getMaterialData())){
                    blocks_so_far++;
                    dB.log(ChatColor.YELLOW + "// " + player.getName()
                            + " broke a(n) " + event.getBlock().getType().toString()
                            + ".");
                    check();
View Full Code Here

Examples of net.aufdemrand.denizen.objects.dMaterial

                return;
            }

            //check if block is specified and if so, count it!
            for (String item_value : blocks) {
                dMaterial mat = dMaterial.valueOf(item_value);

                if (event.getItem().getItemStack().getType() == mat.getMaterial() &&
                        event.getItem().getItemStack().getData().equals(mat.getMaterialData())){
                    //If the specific item has been collected before, dont count it
                    if (itemsCollected.contains(event.getItem().getEntityId()))
                        return;
                    else itemsCollected.add(event.getItem().getEntityId());
View Full Code Here

Examples of net.aufdemrand.denizen.objects.dMaterial

                return;
            }

            //check if block is specified and if so, count it!
            for (String item_value : blocks) {
                dMaterial mat = dMaterial.valueOf(item_value);

                if (event.getBucket() == mat.getMaterial()){
                    blocks_so_far++;
                    dB.log(ChatColor.YELLOW + "// "
                            + player.getName() + " collected a "
                            + event.getBucket().name() + ".");
View Full Code Here

Examples of net.aufdemrand.denizen.objects.dMaterial

                return;
            }

            //check if block is specified and if so, count it!
            for (String item_value : blocks) {
                dMaterial mat = dMaterial.valueOf(item_value);

                if (event.getBlock().getState().getType() == mat.getMaterial() &&
                        event.getBlock().getState().getData().equals(mat.getMaterialData())){
                    blocks_so_far++;
                    dB.log(ChatColor.YELLOW + "// " + player.getName()
                            + " placed a(n) " + event.getBlock().getType().toString()
                            + ".");
                    check();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.