@Voidi did you forget the "int chances" in the new method by any chance
or why weren't they there?
This commit is contained in:
Yulife committed 2015-09-26 11:11:22 +02:00
1 parent 8d9572af5c
commit ccd9a73ece
3 files changed
+13 -1

No files matched your search

@@ -24,11 +24,21 @@ public class ToolStats {
MineTweakerAPI.apply(new SetToolStats(material, "", new ToolMaterial(material, name, level, durability, speed, damage, (float) handle, reinforced, (float) stonebound, style, 0xFFFFFF)));
}
/**
* @deprecated
*/
@java.lang.Deprecated
@ZenMethod
public static void set(String material, @Optional String name, int level, int durability, int speed, int damage, double handle, int reinforced, double stonebound, String style, int primaryColor) {
if (name == null) name = material + " ";
MineTweakerAPI.apply(new SetToolStats(material, "", new ToolMaterial(material, name, level, durability, speed, damage, (float) handle, reinforced, (float) stonebound, style, primaryColor)));
}
@ZenMethod
public static void setStats(String material, @Optional String name, int level, int durability, int speed, int damage, double handle, int reinforced, double stonebound, String style, int primaryColor) {
if (name == null) name = material + " ";
MineTweakerAPI.apply(new SetToolStats(material, "", new ToolMaterial(material, name, level, durability, speed, damage, (float) handle, reinforced, (float) stonebound, style, primaryColor)));
}
@ZenMethod
public static void setDisplayName(String material, String name) {