mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Add colors to the custom materials, same as regular tool materials
This commit is contained in:
1 parent
6ca11c5dbf
commit
7c3e21be8d
6 files changed
+63
-11
No files matched your search
@@ -8,19 +8,31 @@ public class FletchingMaterial extends CustomMaterial
|
||||
public final float breakChance;
|
||||
public final float mass;
|
||||
|
||||
public FletchingMaterial(int materialID, int value, ItemStack input, ItemStack craftingItem, float accuracy, float breakChance, float mass)
|
||||
public FletchingMaterial(int materialID, int value, ItemStack input, ItemStack craftingItem, float accuracy, float breakChance, float mass, int color)
|
||||
{
|
||||
super(materialID, value, input, craftingItem);
|
||||
super(materialID, value, input, craftingItem, color);
|
||||
this.accuracy = accuracy;
|
||||
this.breakChance = breakChance;
|
||||
this.mass = mass;
|
||||
}
|
||||
|
||||
public FletchingMaterial(int materialID, int value, String oredict, ItemStack craftingItem, float accuracy, float breakChance, float mass)
|
||||
@Deprecated
|
||||
public FletchingMaterial(int materialID, int value, ItemStack input, ItemStack craftingItem, float accuracy, float breakChance, float mass)
|
||||
{
|
||||
super(materialID, value, oredict, craftingItem);
|
||||
this(materialID, value, input, craftingItem, accuracy, breakChance, mass, 0xffffffff);
|
||||
}
|
||||
|
||||
public FletchingMaterial(int materialID, int value, String oredict, ItemStack craftingItem, float accuracy, float breakChance, float mass, int color)
|
||||
{
|
||||
super(materialID, value, oredict, craftingItem, color);
|
||||
this.accuracy = accuracy;
|
||||
this.breakChance = breakChance;
|
||||
this.mass = mass;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public FletchingMaterial(int materialID, int value, String oredict, ItemStack craftingItem, float accuracy, float breakChance, float mass)
|
||||
{
|
||||
this(materialID, value, oredict, craftingItem, accuracy, breakChance, mass, 0xffffffff);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user