Skip to content

Instantly share code, notes, and snippets.

@defeatedcrow
Created May 19, 2016 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save defeatedcrow/9aec752cbd857fb803090ada40892c3f to your computer and use it in GitHub Desktop.
Save defeatedcrow/9aec752cbd857fb803090ada40892c3f to your computer and use it in GitHub Desktop.
package // このファイルを置いた場所のpackageに合わせて下さい
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import com.peaceplantcraft.items.PPC_Items;
import cpw.mods.fml.common.Loader;
public class PPCOreDic {
private PPCOreDic() {
}
public static void load() {
if (Loader.isModLoaded("peaceplantcraft")) {
registerDic();
}
}
static void registerDic() {
OreDictionary.registerOre("cropBroccoli", new ItemStack(PPC_Items.Crop_Broccoli));
OreDictionary.registerOre("cropCabagge", new ItemStack(PPC_Items.Crop_Cabbage));
OreDictionary.registerOre("cabagge", new ItemStack(PPC_Items.Crop_Cabbage));
OreDictionary.registerOre("cropCarrot", new ItemStack(PPC_Items.Crop_Carrot));
OreDictionary.registerOre("cropChineseCabbage", new ItemStack(PPC_Items.Crop_ChineseCabbage));
OreDictionary.registerOre("cropCorn", new ItemStack(PPC_Items.Crop_Corn));
OreDictionary.registerOre("cropCucumber", new ItemStack(PPC_Items.Crop_Cucumber));
OreDictionary.registerOre("cropEggplant", new ItemStack(PPC_Items.Crop_Eggplant));
OreDictionary.registerOre("eggplant", new ItemStack(PPC_Items.Crop_Eggplant));
OreDictionary.registerOre("cropGarlic", new ItemStack(PPC_Items.Crop_Garlic));
OreDictionary.registerOre("cropGreenPepper", new ItemStack(PPC_Items.Crop_GreenPepper));
OreDictionary.registerOre("cropGreenSoybeans", new ItemStack(PPC_Items.Crop_GreenSoybeans));
OreDictionary.registerOre("cropLettuce", new ItemStack(PPC_Items.Crop_Lettuce));
OreDictionary.registerOre("cropLotusRoot", new ItemStack(PPC_Items.Crop_LotusRoot));
OreDictionary.registerOre("cropOnion", new ItemStack(PPC_Items.Crop_Onion));
OreDictionary.registerOre("onion", new ItemStack(PPC_Items.Crop_Onion));
OreDictionary.registerOre("cropPaprika", new ItemStack(PPC_Items.Crop_Paprika));
OreDictionary.registerOre("cropPotato", new ItemStack(PPC_Items.Crop_Potato));
OreDictionary.registerOre("cropPumpkin", new ItemStack(PPC_Items.Crop_Pumpkin));
OreDictionary.registerOre("cropRadish", new ItemStack(PPC_Items.Crop_Radish));
OreDictionary.registerOre("radish", new ItemStack(PPC_Items.Crop_Radish));
OreDictionary.registerOre("cropSpinach", new ItemStack(PPC_Items.Crop_Spinach));
OreDictionary.registerOre("cropSpringOnion", new ItemStack(PPC_Items.Crop_SpringOnion));
OreDictionary.registerOre("cropSweetPotato", new ItemStack(PPC_Items.Crop_SweetPotato));
OreDictionary.registerOre("cropTomato", new ItemStack(PPC_Items.Crop_Tomato));
OreDictionary.registerOre("tomato", new ItemStack(PPC_Items.Crop_Tomato));
OreDictionary.registerOre("cropTurnip", new ItemStack(PPC_Items.Crop_Turnip));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment