From 162dbaed0f61bd8f5900b233b1a7d809fbaa2d53 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Wed, 22 Feb 2012 23:17:05 -0800 Subject: [PATCH] Removed unused methods from m.java --- src/main/java/com/gmail/nossr50/m.java | 46 -------------------------- 1 file changed, 46 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/m.java b/src/main/java/com/gmail/nossr50/m.java index 266f58f80..ebbc89a19 100644 --- a/src/main/java/com/gmail/nossr50/m.java +++ b/src/main/java/com/gmail/nossr50/m.java @@ -62,18 +62,6 @@ public class m } } - public static Double getDouble(String string) - { - if(isDouble(string)) - { - return Double.parseDouble(string); - } - else - { - return (double) 0; - } - } - public static boolean isDouble(String string) { try @@ -178,40 +166,6 @@ public class m return true; } } - - public static boolean isBlockAround(Location loc, Integer radius, Integer typeid) - { - Block blockx = loc.getBlock(); - int ox = blockx.getX(); - int oy = blockx.getY(); - int oz = blockx.getZ(); - for (int cx = -radius; cx <= radius; cx++) { - for (int cy = -radius; cy <= radius; cy++) { - for (int cz = -radius; cz <= radius; cz++) { - Block block = loc.getWorld().getBlockAt(ox + cx, oy + cy, oz + cz); - if (block.getTypeId() == typeid) { - return true; - } - } - } - } - return false; - } - - public static Integer calculateHealth(Integer health, Integer newvalue){ - if((health + newvalue) > 20){ - return 20; - } else { - return health+newvalue; - } - } - public Integer calculateMinusHealth(Integer health, Integer newvalue){ - if((health - newvalue) < 1){ - return 0; - } else { - return health-newvalue; - } - } public static boolean isInt(String string) {