blob: 03f7f4284e41505f5b670a855d367cf9340748e8 [file] [log] [blame] [raw]
package li.cil.oc.common.block
import li.cil.oc.Settings
import li.cil.oc.client.Textures
import li.cil.oc.common.tileentity
import net.minecraft.client.renderer.texture.IIconRegister
import net.minecraft.world.World
class Geolyzer extends SimpleBlock {
setLightLevel(0.14f)
override protected def customTextures = Array(
None,
Some("GeolyzerTop"),
Some("GeolyzerSide"),
Some("GeolyzerSide"),
Some("GeolyzerSide"),
Some("GeolyzerSide")
)
override def registerBlockIcons(iconRegister: IIconRegister) = {
super.registerBlockIcons(iconRegister)
Textures.Geolyzer.iconTopOn = iconRegister.registerIcon(Settings.resourceDomain + ":GeolyzerTopOn")
}
// ----------------------------------------------------------------------- //
override def hasTileEntity(metadata: Int) = true
override def createTileEntity(world: World, metadata: Int) = new tileentity.Geolyzer()
}