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
@@ -11,23 +11,39 @@ public abstract class CustomMaterial
|
||||
public final ItemStack input;
|
||||
public final ItemStack craftingItem;
|
||||
public final String oredict;
|
||||
public final int color;
|
||||
|
||||
@Deprecated
|
||||
public CustomMaterial(int materialID, int value, ItemStack input, ItemStack craftingItem)
|
||||
{
|
||||
this(materialID, value, input, craftingItem, 0xffffffff);
|
||||
}
|
||||
|
||||
|
||||
public CustomMaterial(int materialID, int value, ItemStack input, ItemStack craftingItem, int color)
|
||||
{
|
||||
this.materialID = materialID;
|
||||
this.value = value;
|
||||
this.input = input;
|
||||
this.craftingItem = craftingItem;
|
||||
this.oredict = null;
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public CustomMaterial(int materialID, int value, String oredict, ItemStack craftingItem)
|
||||
{
|
||||
this(materialID, value, oredict, craftingItem, 0xffffffff);
|
||||
}
|
||||
|
||||
public CustomMaterial(int materialID, int value, String oredict, ItemStack craftingItem, int color)
|
||||
{
|
||||
this.materialID = materialID;
|
||||
this.value = value;
|
||||
this.input = null;
|
||||
this.craftingItem = craftingItem;
|
||||
this.oredict = oredict;
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user