From f5e245d2a8827b0500b752aea2d4bd1960aaba05 Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Wed, 3 Sep 2014 14:58:05 +0200 Subject: [PATCH] Fix backwards compatibility >_< --- .../library/TConstructRegistry.java | 35 ++++--------------- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/src/main/java/tconstruct/library/TConstructRegistry.java b/src/main/java/tconstruct/library/TConstructRegistry.java index 5898543ffe7..2d61aaf4906 100644 --- a/src/main/java/tconstruct/library/TConstructRegistry.java +++ b/src/main/java/tconstruct/library/TConstructRegistry.java @@ -275,39 +275,18 @@ public static void addToolMaterial (int materialID, String materialName, int har throw new IllegalArgumentException("[TCon API] Material ID " + materialID + " is already occupied by " + mat.materialName); } - /** - * Adds a tool material to the registry - * - * @param materialID - * Unique ID, stored for each part - * @param materialName - * Unique name for data lookup purposes - * @param displayName - * Unused. - * @param harvestLevel - * The materials which the tool can harvest. Pickaxe levels - 0: - * Wood, 1: Stone, 2: Redstone/Diamond, 3: Obsidian, 4: - * Cobalt/Ardite, 5: Manyullyn - * @param durability - * Base durability of the tool, affects tool heads. - * @param miningspeed - * Base mining speed, divided by 100 in use - * @param attack - * Base attack - * @param handleModifier - * Durability multiplier on the tool - * @param reinforced - * Reinforced level - * @param stonebound - * Amount of Stonebound to put on the tool. Negative numbers are - * Spiny. - */ + @Deprecated + public static void addToolMaterial (int materialID, String materialName, int harvestLevel, int durability, int miningspeed, int attack, float handleModifier, int reinforced, float stonebound, String style, String ability) + { + logger.warn("[TCon API] Using deprecated addToolMaterial with ability name. ability will be ignored, use languages files for that."); + addToolMaterial(materialID, materialName, harvestLevel, durability, miningspeed, attack, handleModifier, reinforced, stonebound, style); + } @Deprecated public static void addToolMaterial (int materialID, String materialName, String displayName, int harvestLevel, int durability, int miningspeed, int attack, float handleModifier, int reinforced, float stonebound, String style, String ability) { - logger.warn("[TCon API] Using deprecated addToolMaterial with display name. displayName and ability will be ignored, use languages files for that."); + logger.warn("[TCon API] Using deprecated addToolMaterial with display and ability name. displayName and ability will be ignored, use languages files for that."); addToolMaterial(materialID, materialName, harvestLevel, durability, miningspeed, attack, handleModifier, reinforced, stonebound, style); }