Skip to content

Instantly share code, notes, and snippets.

@ft975
Last active December 20, 2015 00:59
Show Gist options
  • Select an option

  • Save ft975/6045813 to your computer and use it in GitHub Desktop.

Select an option

Save ft975/6045813 to your computer and use it in GitHub Desktop.

Revisions

  1. ft975 revised this gist Jul 20, 2013. 2 changed files with 9 additions and 8 deletions.
    9 changes: 9 additions & 0 deletions LightingMod.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    CreativeTabs creativeTabLamp = new CreativeTabs("ftLighting") {
    {
    LanguageRegistry.instance.addStringLocalization("itemGroup.ftLighting", "en_US", "Lighting");
    ItemStack icon = ItemLamp.buildStack(0, Colors.Magenta, Shapes.Block, isOn = true);
    }

    public ItemStack getIconItemStack(){return icon;}
    }
    blockLamp.setCreativeTab(creativeTabLamp);
    8 changes: 0 additions & 8 deletions LightingMod.scala
    Original file line number Diff line number Diff line change
    @@ -1,8 +0,0 @@
    val creativeTabLamp = new CreativeTabs("ftLighting") {
    LanguageRegistry.instance.addStringLocalization("itemGroup.ftLighting", "en_US", "Lighting")
    val icon = ItemLamp.buildStack(0, Colors.Magenta, Shapes.Block, isOn = true)

    override def getIconItemStack = icon
    }

    blockLamp.setCreativeTab(creativeTabLamp)
  2. ft975 created this gist Jul 20, 2013.
    8 changes: 8 additions & 0 deletions LightingMod.scala
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    val creativeTabLamp = new CreativeTabs("ftLighting") {
    LanguageRegistry.instance.addStringLocalization("itemGroup.ftLighting", "en_US", "Lighting")
    val icon = ItemLamp.buildStack(0, Colors.Magenta, Shapes.Block, isOn = true)

    override def getIconItemStack = icon
    }

    blockLamp.setCreativeTab(creativeTabLamp)