Skip to content

Instantly share code, notes, and snippets.

@ft975
Created June 26, 2013 21:14
Show Gist options
  • Save ft975/5871755 to your computer and use it in GitHub Desktop.
Save ft975/5871755 to your computer and use it in GitHub Desktop.
def setupBlocks() {
blockLamp = new BlockLamp(blockID)
blockLamp.setLightOpacity(0)
GameRegistry.registerBlock(blockLamp, classOf[ItemLamp], "BlockLamp", ModInfo.modID)
blockLamp.setCreativeTab(CreativeTabs.tabBlock)
for (col: Colors <- Colors.vals;
sha: Shapes <- Shapes.vals) {
val iS = ItemLamp.buildStack(1, col, sha, true)
LanguageRegistry.addName(iS, col.name + " " + sha.name)
DebugOnly {
log.log(Level.INFO, "registered " + col + sha)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment