mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-20 04:19:44 +00:00
Commit 3
@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:
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) {
|
||||
|
||||
Reference in new issue
Block a user