Skip to content

Instantly share code, notes, and snippets.

@porl
Created June 9, 2013 15:34
Show Gist options
  • Save porl/5743956 to your computer and use it in GitHub Desktop.
Save porl/5743956 to your computer and use it in GitHub Desktop.
Scala Version
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