mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
Take all the shortbow and arrow stuff out of the Tools module, and try to keep backwards compatibility >_>
This commit is contained in:
1 parent
bdbda639bb
commit
e7666e031b
17 files changed
+143
-240
No files matched your search
@@ -372,12 +372,18 @@ public class TConstructRegistry
|
||||
// Bow materials
|
||||
public static HashMap<Integer, BowMaterial> bowMaterials = new HashMap<Integer, BowMaterial>(40);
|
||||
|
||||
@Deprecated
|
||||
public static void addBowMaterial (int materialID, int durability, int drawSpeed, float speedMax)
|
||||
{
|
||||
addBowMaterial(materialID, drawSpeed, speedMax);
|
||||
}
|
||||
|
||||
public static void addBowMaterial (int materialID, int drawSpeed, float speedMax)
|
||||
{
|
||||
BowMaterial mat = bowMaterials.get(materialID);
|
||||
if (mat == null)
|
||||
{
|
||||
mat = new BowMaterial(durability, drawSpeed, speedMax);
|
||||
mat = new BowMaterial(drawSpeed, speedMax);
|
||||
bowMaterials.put(materialID, mat);
|
||||
}
|
||||
else
|
||||
@@ -396,12 +402,18 @@ public class TConstructRegistry
|
||||
|
||||
public static HashMap<Integer, ArrowMaterial> arrowMaterials = new HashMap<Integer, ArrowMaterial>(40);
|
||||
|
||||
@Deprecated
|
||||
public static void addArrowMaterial (int materialID, float mass, float breakChance, float accuracy)
|
||||
{
|
||||
addArrowMaterial(materialID, mass, breakChance, 0);
|
||||
}
|
||||
|
||||
public static void addArrowMaterial (int materialID, float mass, float breakChance)
|
||||
{
|
||||
ArrowMaterial mat = arrowMaterials.get(materialID);
|
||||
if (mat == null)
|
||||
{
|
||||
mat = new ArrowMaterial(mass, breakChance, accuracy);
|
||||
mat = new ArrowMaterial(mass, breakChance);
|
||||
arrowMaterials.put(materialID, mat);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user