electrodynamics/src/main/scala/edx/core/resource/content/ItemAlloyDust.scala

22 lines
665 B
Scala
Raw Normal View History

2015-01-14 12:06:03 +01:00
package edx.core.resource.content
2015-01-13 15:53:38 +01:00
2015-01-14 12:06:03 +01:00
import edx.core.Reference
import edx.core.resource.alloy.{AlloyUtility, TAlloyItem}
2015-01-13 15:53:38 +01:00
import net.minecraft.item.{Item, ItemStack}
/**
* An alloy dust is a dust that contains mixed metals
* TODO: Considering combining the alloy with the non-alloy dusts via NBT
* @author Calclavia
*/
class ItemAlloyDust extends Item with TAlloyItem
{
2015-01-14 12:19:04 +01:00
//TODO: Check creative tab correctness
2021-04-05 14:41:30 +02:00
//setCreativeTab(null)
2015-01-13 15:53:38 +01:00
setTextureName(Reference.prefix + "oreDust")
setUnlocalizedName(Reference.prefix + "alloyDust")
override def getColorFromItemStack(itemStack: ItemStack, p_82790_2_ : Int): Int = AlloyUtility.getAlloy(itemStack).color
}