From 278a6b9de4cd132249f8e0a138fd03f09844123c Mon Sep 17 00:00:00 2001 From: Steven Tracey <70534545+nevetS-718@users.noreply.github.com> Date: Fri, 20 Nov 2020 09:39:27 -0500 Subject: [PATCH] Update Main.java added all apple varients in main class --- .../java/net/nevets/everythingvanilla/Main.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/nevets/everythingvanilla/Main.java b/src/main/java/net/nevets/everythingvanilla/Main.java index 9e279dd..0c7d7df 100644 --- a/src/main/java/net/nevets/everythingvanilla/Main.java +++ b/src/main/java/net/nevets/everythingvanilla/Main.java @@ -61,7 +61,14 @@ public class Main implements ModInitializer { public static final Block PLATINUMBLOCK = new PlatinumBlock(); public static final ArmorMaterial PLATINUM_ARMOR = new PlatinumArmorMaterial(); public static final IRONAPPLE = new IronApple(); - + public static final ENCHANTEDIRONAPPLE = new EnchantedIronApple(); + public static final DIAMONDAPPLE = new DiamondApple(); + public static final ENCHANTEDDIAMONDAPPLE = new EnchantedDiamondApple(); + public static final EMERALDAPPLE = new EmeraldApple(); + public static final ENCHANTEDEMERALDAPPLE = new EnchantedEmeraldApple(); + public static final PLATINUMAPPLE = new PlatinumApple(); + public static final ENCHANTEDPLATINUMAPPLE = new EnchantedPlatinumApple(); + //Platinum Ore Generation private static ConfiguredFeature ORE_PLATINUM_OVERWORLD = Feature.ORE .configure(new OreFeatureConfig( @@ -111,6 +118,13 @@ public class Main implements ModInitializer { Registry.register(Registry.ITEM, new Identifier("vanilla", "raw_villager_meat"), RAWVILLAGERMEAT); Registry.register(Registry.ITEM, new Identifier("vanilla", "cooked_villager_meat"), COOKEDVILLAGERMEAT); Registry.register(Registry.ITEM, new Identifier("vanilla", "iron_apple"), IRONAPPLE); + Registry.register(Registry.ITEM, new Identifier("vanilla", "enchanted_iron_apple"), ENCHANTEDIRONAPPLE); + Registry.register(Registry.ITEM, new Identifier("vanilla", "diamond_apple"), DIAMONDAPPLE); + Registry.register(Registry.ITEM, new Identifier("vanilla", "enchanted_diamond_apple"), ENCHANTEDDIAMONDAPPLE); + Registry.register(Registry.ITEM, new Identifier("vanilla", "emerald_apple"), EMERALDAPPLE); + Registry.register(Registry.ITEM, new Identifier("vanilla", "enchanted_emerald_apple"), ENCHANTEDEMERALDAPPLE); + Registry.register(Registry.ITEM, new Identifier("vanilla", "platinum_apple"), PLATINUMAPPLE); + Registry.register(Registry.ITEM, new Identifier("vanilla", "enchanted_platinum_apple"), ENCHANTEDPLATINUMAPPLE); //Ore Generation RegistryKey> orePlatinumOverworld = RegistryKey.of(Registry.CONFIGURED_FEATURE_WORLDGEN, new Identifier("vanilla", "ore_platinum_overworld"));