浏览代码

Removed unused methods from m.java

nossr50 13 年之前
父节点
当前提交
162dbaed0f
共有 1 个文件被更改,包括 0 次插入46 次删除
  1. 0 46
      src/main/java/com/gmail/nossr50/m.java

+ 0 - 46
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)
 	{