mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
parent
e38178daaf
commit
b1f913a347
1 changed files with 6 additions and 6 deletions
|
@ -18,9 +18,9 @@ import net.minecraftforge.common.util.EnumHelper;
|
||||||
|
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
public final class BannerHelper{
|
public final class BannerHelper {
|
||||||
|
|
||||||
public static void init(){
|
public static void init() {
|
||||||
addCraftingPattern("drill", new ItemStack(InitItems.itemDrill, 1, 3));
|
addCraftingPattern("drill", new ItemStack(InitItems.itemDrill, 1, 3));
|
||||||
addCraftingPattern("leaf_blo", new ItemStack(InitItems.itemLeafBlower));
|
addCraftingPattern("leaf_blo", new ItemStack(InitItems.itemLeafBlower));
|
||||||
addCraftingPattern("phan_con", new ItemStack(InitItems.itemPhantomConnector));
|
addCraftingPattern("phan_con", new ItemStack(InitItems.itemPhantomConnector));
|
||||||
|
@ -44,10 +44,10 @@ public final class BannerHelper{
|
||||||
* An example of this would be the creeper skull being used for the creeper
|
* An example of this would be the creeper skull being used for the creeper
|
||||||
* pattern.
|
* pattern.
|
||||||
*/
|
*/
|
||||||
public static void addCraftingPattern(String name, ItemStack craftingStack){
|
public static void addCraftingPattern(String name, ItemStack craftingStack) {
|
||||||
Class<?>[] paramTypes = {String.class, String.class, ItemStack.class};
|
Class<?>[] paramTypes = { String.class, String.class, ItemStack.class };
|
||||||
Object[] paramValues = {ModUtil.MOD_ID+name, ModUtil.MOD_ID+name, craftingStack};
|
Object[] paramValues = { ModUtil.MOD_ID + "_" + name, ModUtil.MOD_ID + "_" + name, craftingStack };
|
||||||
EnumHelper.addEnum(BannerPattern.class, (ModUtil.MOD_ID+"_"+name).toUpperCase(Locale.ROOT), paramTypes, paramValues);
|
EnumHelper.addEnum(BannerPattern.class, (ModUtil.MOD_ID + "_" + name).toUpperCase(Locale.ROOT), paramTypes, paramValues);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue