-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
40 additions
and
9 deletions.
There are no files selected for viewing
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
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
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
7 changes: 7 additions & 0 deletions
7
src/main/java/com/xir/NHUtilities/common/nhutilies/items/NHUtilitiesItems.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.xir.NHUtilities.common.nhutilies.items; | ||
|
||
public class NHUtilitiesItems { | ||
|
||
public static final ItemBasic gluttonyRing = new GluttonyRing(); | ||
public static final ItemBasic hungerRing = new HungerRing(); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
package com.xir.NHUtilities.loader; | ||
|
||
import com.xir.NHUtilities.common.nhutilies.items.GluttonyRing; | ||
import com.xir.NHUtilities.common.nhutilies.items.HungerRing; | ||
import com.xir.NHUtilities.common.nhutilies.items.NHUtilitiesItems; | ||
|
||
import cpw.mods.fml.common.registry.GameRegistry; | ||
|
||
public class ItemLoader { | ||
|
||
public static void registerNHUtilitiesItems() { | ||
GameRegistry.registerItem(new GluttonyRing(), "GluttonyRing"); | ||
GameRegistry.registerItem(new HungerRing(), "HungerRing"); | ||
GameRegistry.registerItem(NHUtilitiesItems.gluttonyRing, "GluttonyRing"); | ||
GameRegistry.registerItem(NHUtilitiesItems.hungerRing, "HungerRing"); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/com/xir/NHUtilities/loader/NHUtilitiesRecipe.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.xir.NHUtilities.loader; | ||
|
||
import net.minecraft.init.Items; | ||
import net.minecraft.item.ItemStack; | ||
|
||
import com.xir.NHUtilities.common.nhutilies.items.NHUtilitiesItems; | ||
|
||
import cpw.mods.fml.common.registry.GameRegistry; | ||
|
||
public class NHUtilitiesRecipe { | ||
|
||
public static void init() { | ||
GameRegistry.addShapedRecipe( | ||
new ItemStack(NHUtilitiesItems.gluttonyRing), | ||
new Object[] { "SIS", "IAI", "SIS", 'A', Items.apple, 'S', Items.string, 'I', Items.iron_ingot }); | ||
GameRegistry.addShapelessRecipe( | ||
new ItemStack(NHUtilitiesItems.hungerRing), | ||
new ItemStack(NHUtilitiesItems.gluttonyRing)); | ||
GameRegistry.addShapelessRecipe( | ||
new ItemStack(NHUtilitiesItems.gluttonyRing), | ||
new ItemStack(NHUtilitiesItems.hungerRing)); | ||
} | ||
} |