blob: ece0a825985b40b21e1c5f43c3590a202b603e95 [file] [log] [blame] [raw]
package li.cil.oc.common.block
import java.util
import li.cil.oc.common.tileentity
import li.cil.oc.util.Tooltip
import li.cil.oc.util.mods.Mods
import net.minecraft.entity.player.EntityPlayer
import net.minecraft.item.ItemStack
import net.minecraft.world.World
class Redstone extends RedstoneAware {
override protected def customTextures = Array(
Some("RedstoneTop"),
Some("RedstoneTop"),
Some("RedstoneSide"),
Some("RedstoneSide"),
Some("RedstoneSide"),
Some("RedstoneSide")
)
// ----------------------------------------------------------------------- //
override def addInformation(metadata: Int, stack: ItemStack, player: EntityPlayer, tooltip: util.List[String], advanced: Boolean) {
super.addInformation(metadata, stack, player, tooltip, advanced)
if (Mods.RedLogic.isAvailable) {
tooltip.addAll(Tooltip.get("RedstoneCard.RedLogic"))
}
if (Mods.MineFactoryReloaded.isAvailable) {
tooltip.addAll(Tooltip.get("RedstoneCard.RedNet"))
}
}
// ----------------------------------------------------------------------- //
override def createTileEntity(world: World, metadata: Int) = new tileentity.Redstone()
}