blob: 126f1ee825e90a9962cdf97c43bbd8c9791fe59f [file] [log] [blame] [raw]
package li.cil.oc.common.block
import java.util
import li.cil.oc.common.tileentity
import li.cil.oc.integration.Mods
import li.cil.oc.util.Tooltip
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 protected def tooltipTail(metadata: Int, stack: ItemStack, player: EntityPlayer, tooltip: util.List[String], advanced: Boolean) {
super.tooltipTail(metadata, stack, player, tooltip, advanced)
if (Mods.ProjectRedTransmission.isAvailable) {
tooltip.addAll(Tooltip.get("RedstoneCard.ProjectRed"))
}
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()
}