Created
June 9, 2013 15:34
-
-
Save porl/5743956 to your computer and use it in GitHub Desktop.
Scala Version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package porl.scalatest | |
import net.minecraft.block.Block | |
import net.minecraft.block.material.Material | |
import net.minecraft.creativetab.CreativeTabs | |
import cpw.mods.fml.relauncher.{SideOnly, Side} | |
import net.minecraft.client.renderer.texture.IconRegister | |
/** | |
* Created with IntelliJ IDEA. | |
* User: porl | |
* Date: 9/06/13 | |
* Time: 9:17 PM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
class BlockTutorialBlock2(id: Int, par2Material: Material) extends Block(id, par2Material){ | |
this.setCreativeTab(CreativeTabPorlMods) | |
@SideOnly(Side.CLIENT) | |
override def registerIcons(par1IconRegister: IconRegister) { | |
this.blockIcon = par1IconRegister.registerIcon(ScalaTestId.modid + ":" + this.getUnlocalizedName2) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment