Created
October 23, 2015 12:54
-
-
Save Choonster/4adc05d25283361e5b1d to your computer and use it in GitHub Desktop.
Minecraft Forge 1.8-11.14.3.1521 - A demonstration of adding a recipe using a vararg method in Scala http://www.minecraftforge.net/forum/index.php/topic,34579.0.html
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 com.choonster.testmod3.init | |
import net.minecraft.init.Items | |
import net.minecraft.item.ItemStack | |
import net.minecraftforge.fml.common.registry.GameRegistry | |
/** | |
* A Scala object that calls [[GameRegistry.addRecipe()]] to add a recipe. | |
*/ | |
object ScalaRecipes { | |
def addRecipes(): Unit = { | |
GameRegistry.addRecipe(new ItemStack(Items.beef), "AAA", "AAA", "AAA", 'A', Items.rotten_flesh) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment