From 0ba11238b0a4c53be635bbcc507c84aafc839c20 Mon Sep 17 00:00:00 2001 From: wolfkidsounds <32850639+wolfkidsounds@users.noreply.github.com> Date: Wed, 25 Jan 2023 03:22:50 +0100 Subject: [PATCH] 1.16.5_2.6.1 - Added Support for Enhanced Farming - Cleaned Up Code - Bumped Version --- build.gradle | 2 +- .../wolfkidsounds/wildplants/Wildplants.java | 4 +- .../wildplants/block/ModBlocks.java | 212 +-- .../wildplants/config/CompatConfig.java | 8 + .../wildplants/config/WildplantsConfig.java | 1 + .../EnhancedFarmingConfig.java | 218 +++ .../harvestcraft/HarvestcraftConfig.java | 2 +- .../features/minecraft/MinecraftConfig.java | 78 +- .../simplefarming/SimpleFarmingConfig.java | 1290 ++++++++--------- .../wildplants/items/ModItems.java | 10 +- .../wildplants/render/ModRenderers.java | 13 + .../wildplants/utils/FileUtils.java | 22 +- .../wildplants/world/ModWorldEvents.java | 516 +++++-- .../EnhancedFarmingConfiguredFeatures.java | 151 ++ .../EnhancedFarmingWildplantsGeneration.java | 127 ++ .../HarvestcraftConfiguredFeatures.java | 7 +- .../HarvestcraftWildplantsGeneration.java | 156 +- ...mmersiveEngineeringConfiguredFeatures.java | 5 +- ...ersiveEngineeringWildplantsGeneration.java | 2 +- .../MinecraftConfiguredFeatures.java | 11 +- .../MinecraftWildplantsGeneration.java | 8 +- .../SimpleFarmingConfiguredFeatures.java | 872 +++++------ .../SimpleFarmingWildplantsGeneration.java | 66 +- .../VeggiewayWildplantsGeneration.java | 8 +- src/main/resources/META-INF/mods.toml | 2 +- .../enhancedfarming_wild_aubergine.json | 7 + .../enhancedfarming_wild_corn.json | 7 + .../enhancedfarming_wild_cucumber.json | 7 + .../enhancedfarming_wild_garlic.json | 7 + .../enhancedfarming_wild_grape.json | 7 + .../enhancedfarming_wild_lettuce.json | 7 + .../enhancedfarming_wild_mint.json | 7 + .../enhancedfarming_wild_onion.json | 7 + .../enhancedfarming_wild_pineapple.json | 7 + .../enhancedfarming_wild_tomato.json | 7 + .../assets/wildplants/lang/en_us.json | 13 +- .../item/enhancedfarming_wild_aubergine.json | 6 + .../item/enhancedfarming_wild_corn.json | 6 + .../item/enhancedfarming_wild_cucumber.json | 6 + .../item/enhancedfarming_wild_garlic.json | 6 + .../item/enhancedfarming_wild_grape.json | 6 + .../item/enhancedfarming_wild_lettuce.json | 6 + .../item/enhancedfarming_wild_mint.json | 6 + .../item/enhancedfarming_wild_onion.json | 6 + .../item/enhancedfarming_wild_pineapple.json | 6 + .../item/enhancedfarming_wild_tomato.json | 6 + .../enhancedfarming_wild_aubergine.json | 66 + .../blocks/enhancedfarming_wild_corn.json | 66 + .../blocks/enhancedfarming_wild_cucumber.json | 66 + .../blocks/enhancedfarming_wild_garlic.json | 66 + .../blocks/enhancedfarming_wild_grape.json | 66 + .../blocks/enhancedfarming_wild_lettuce.json | 66 + .../blocks/enhancedfarming_wild_mint.json | 66 + .../enhancedfarming_wild_nether_flower.json | 66 + .../blocks/enhancedfarming_wild_onion.json | 66 + .../enhancedfarming_wild_pineapple.json | 66 + .../blocks/enhancedfarming_wild_tomato.json | 66 + 57 files changed, 3133 insertions(+), 1527 deletions(-) create mode 100644 src/main/java/wks/wolfkidsounds/wildplants/config/features/enhancedfarming/EnhancedFarmingConfig.java create mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/enhancedfarming/EnhancedFarmingConfiguredFeatures.java create mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/enhancedfarming/EnhancedFarmingWildplantsGeneration.java create mode 100644 src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_aubergine.json create mode 100644 src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_corn.json create mode 100644 src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_cucumber.json create mode 100644 src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_garlic.json create mode 100644 src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_grape.json create mode 100644 src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_lettuce.json create mode 100644 src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_mint.json create mode 100644 src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_onion.json create mode 100644 src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_pineapple.json create mode 100644 src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_tomato.json create mode 100644 src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_aubergine.json create mode 100644 src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_corn.json create mode 100644 src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_cucumber.json create mode 100644 src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_garlic.json create mode 100644 src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_grape.json create mode 100644 src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_lettuce.json create mode 100644 src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_mint.json create mode 100644 src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_onion.json create mode 100644 src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_pineapple.json create mode 100644 src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_tomato.json create mode 100644 src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_aubergine.json create mode 100644 src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_corn.json create mode 100644 src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_cucumber.json create mode 100644 src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_garlic.json create mode 100644 src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_grape.json create mode 100644 src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_lettuce.json create mode 100644 src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_mint.json create mode 100644 src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_nether_flower.json create mode 100644 src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_onion.json create mode 100644 src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_pineapple.json create mode 100644 src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_tomato.json diff --git a/build.gradle b/build.gradle index 88226c0..3fa0b98 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ buildscript { apply plugin: 'net.minecraftforge.gradle' group = 'wks.wolfkidsounds' -version = '1.16.5_2.5.2_forge' +version = '1.16.5_2.6.1_forge' java { archivesBaseName = 'wildplants' diff --git a/src/main/java/wks/wolfkidsounds/wildplants/Wildplants.java b/src/main/java/wks/wolfkidsounds/wildplants/Wildplants.java index c9c4f9e..6057248 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/Wildplants.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/Wildplants.java @@ -14,6 +14,7 @@ import org.apache.logging.log4j.Logger; import wks.wolfkidsounds.wildplants.block.ModBlocks; import wks.wolfkidsounds.wildplants.config.WildplantsConfig; +import wks.wolfkidsounds.wildplants.config.features.enhancedfarming.EnhancedFarmingConfig; import wks.wolfkidsounds.wildplants.config.features.harvestcraft.HarvestcraftConfig; import wks.wolfkidsounds.wildplants.config.features.immersiveengineering.ImmersiveEngineeringConfig; import wks.wolfkidsounds.wildplants.config.features.minecraft.MinecraftConfig; @@ -23,8 +24,6 @@ import wks.wolfkidsounds.wildplants.render.ModRenderers; import wks.wolfkidsounds.wildplants.utils.FileUtils; -import java.util.Date; - // The value here should match an entry in the META-INF/mods.toml file @Mod("wildplants") public class Wildplants { @@ -48,6 +47,7 @@ public Wildplants() { ModLoadingContext.get().registerConfig(net.minecraftforge.fml.config.ModConfig.Type.COMMON, HarvestcraftConfig.SPEC, "wildplants/features/harvestcraft2-common.toml"); ModLoadingContext.get().registerConfig(net.minecraftforge.fml.config.ModConfig.Type.COMMON, VeggiewayConfig.SPEC, "wildplants/features/veggieway-common.toml"); ModLoadingContext.get().registerConfig(net.minecraftforge.fml.config.ModConfig.Type.COMMON, SimpleFarmingConfig.SPEC, "wildplants/features/simplefarming-common.toml"); + ModLoadingContext.get().registerConfig(net.minecraftforge.fml.config.ModConfig.Type.COMMON, EnhancedFarmingConfig.SPEC, "wildplants/features/enhancedfarming-common.toml"); ModBlocks.register(eventBus); ModItems.register(eventBus); diff --git a/src/main/java/wks/wolfkidsounds/wildplants/block/ModBlocks.java b/src/main/java/wks/wolfkidsounds/wildplants/block/ModBlocks.java index 7e95c4a..1b02f13 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/block/ModBlocks.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/block/ModBlocks.java @@ -34,393 +34,319 @@ public class ModBlocks { public static final RegistryObject MINECRAFT_WILD_BEETROOTS = registerMinecraftBlock("minecraft_wild_beetroots", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - private static RegistryObject registerMinecraftBlock(String name, Supplier block) { - RegistryObject toReturn = BLOCKS.register(name, block); - if (CompatConfig.ENABLE_MINECRAFT.get()) {registerBlockItem(name, toReturn);} - return toReturn; - } - //-------------------------------------------------------------------------------------------------- - //IMMERSIVE_ENGINEERING public static final RegistryObject IMMERSIVEENGINEERING_WILD_HEMP = registerImmersiveEngineeringBlock("immersiveenineering_wild_hemp", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - private static RegistryObject registerImmersiveEngineeringBlock(String name, Supplier block) { - RegistryObject toReturn = BLOCKS.register(name, block); - if (CompatConfig.ENABLE_IMMERSIVEENGINEERING.get() && CompatConfig.LOADED_IMMERSIVEENGINEERING) {registerBlockItem(name, toReturn);} - return toReturn; - } - //-------------------------------------------------------------------------------------------------- - //HARVESTCRAFT public static final RegistryObject HARVESTCRAFT_WILD_AGAVE = registerHarvestcraftBlock("harvestcraft_wild_agave", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_AMARANTH = registerHarvestcraftBlock("harvestcraft_wild_amaranth", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); + //-------------------------------------------------------------------------------------------------- public static final RegistryObject HARVESTCRAFT_WILD_ARROWROOT = registerHarvestcraftBlock("harvestcraft_wild_arrowroot", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_ARTICHOKE = registerHarvestcraftBlock("harvestcraft_wild_artichoke", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_ASPARAGUS = registerHarvestcraftBlock("harvestcraft_wild_asparagus", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_BARLEY = registerHarvestcraftBlock("harvestcraft_wild_barley", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_BEAN = registerHarvestcraftBlock("harvestcraft_wild_bean", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_BELLPEPPER = registerHarvestcraftBlock("harvestcraft_wild_bellpepper", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_BLACKBERRY = registerHarvestcraftBlock("harvestcraft_wild_blackberry", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_BLUEBERRY = registerHarvestcraftBlock("harvestcraft_wild_blueberry", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_BROCCOLI = registerHarvestcraftBlock("harvestcraft_wild_broccoli", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_BRUSSELSPROUT = registerHarvestcraftBlock("harvestcraft_wild_brusselsprout", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_CABBAGE = registerHarvestcraftBlock("harvestcraft_wild_cabbage", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_CACTUSFRUIT = registerHarvestcraftBlock("harvestcraft_wild_cactusfruit", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_CANDLEBERRY = registerHarvestcraftBlock("harvestcraft_wild_candleberry", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_CANTALOUPE = registerHarvestcraftBlock("harvestcraft_wild_cantaloupe", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_CASSAVA = registerHarvestcraftBlock("harvestcraft_wild_cassava", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_CAULIFLOWER = registerHarvestcraftBlock("harvestcraft_wild_cauliflower", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_CELERY = registerHarvestcraftBlock("harvestcraft_wild_celery", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_CHICKPEA = registerHarvestcraftBlock("harvestcraft_wild_chickpea", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_CHILIPEPPER = registerHarvestcraftBlock("harvestcraft_wild_chilipepper", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_COFFEEBEAN = registerHarvestcraftBlock("harvestcraft_wild_coffeebean", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_CORN = registerHarvestcraftBlock("harvestcraft_wild_corn", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_COTTON = registerHarvestcraftBlock("harvestcraft_wild_cotton", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_CRANBERRY = registerHarvestcraftBlock("harvestcraft_wild_cranberry", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_CUCUMBER = registerHarvestcraftBlock("harvestcraft_wild_cucumber", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_EGGPLANT = registerHarvestcraftBlock("harvestcraft_wild_eggplant", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_ELDERBERRY = registerHarvestcraftBlock("harvestcraft_wild_elderberry", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_FLAX = registerHarvestcraftBlock("harvestcraft_wild_flax", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_GARLIC = registerHarvestcraftBlock("harvestcraft_wild_garlic", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_GINGER = registerHarvestcraftBlock("harvestcraft_wild_ginger", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_GRAPE = registerHarvestcraftBlock("harvestcraft_wild_grape", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_GREENGRAPE = registerHarvestcraftBlock("harvestcraft_wild_greengrape", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_HUCKLEBERRY = registerHarvestcraftBlock("harvestcraft_wild_huckleberry", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_JICAMA = registerHarvestcraftBlock("harvestcraft_wild_jicama", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_JUNIPERBERRY = registerHarvestcraftBlock("harvestcraft_wild_juniperberry", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_JUTE = registerHarvestcraftBlock("harvestcraft_wild_jute", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_KALE = registerHarvestcraftBlock("harvestcraft_wild_kale", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_KENAF = registerHarvestcraftBlock("harvestcraft_wild_kenaf", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_KIWI = registerHarvestcraftBlock("harvestcraft_wild_kiwi", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_KOHLRABI = registerHarvestcraftBlock("harvestcraft_wild_kohlrabi", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_LEEK = registerHarvestcraftBlock("harvestcraft_wild_leek", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_LENTIL = registerHarvestcraftBlock("harvestcraft_wild_lentil", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_LETTUCE = registerHarvestcraftBlock("harvestcraft_wild_lettuce", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_MILLET = registerHarvestcraftBlock("harvestcraft_wild_millet", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_MULBERRY = registerHarvestcraftBlock("harvestcraft_wild_mulberry", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_MUSTARDSEEDS = registerHarvestcraftBlock("harvestcraft_wild_mustardseeds", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_OATS = registerHarvestcraftBlock("harvestcraft_wild_oats", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_OKRA = registerHarvestcraftBlock("harvestcraft_wild_okra", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_ONION = registerHarvestcraftBlock("harvestcraft_wild_onion", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_PARSNIP = registerHarvestcraftBlock("harvestcraft_wild_parsnip", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_PEANUT = registerHarvestcraftBlock("harvestcraft_wild_peanut", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_PEAS = registerHarvestcraftBlock("harvestcraft_wild_peas", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_PINEAPPLE = registerHarvestcraftBlock("harvestcraft_wild_pineapple", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_QUINOA = registerHarvestcraftBlock("harvestcraft_wild_quinoa", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_RADISH = registerHarvestcraftBlock("harvestcraft_wild_radish", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_RASPBERRY = registerHarvestcraftBlock("harvestcraft_wild_raspberry", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_RHUBARB = registerHarvestcraftBlock("harvestcraft_wild_rhubarb", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_RICE = registerHarvestcraftBlock("harvestcraft_wild_rice", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_RUTABAGA = registerHarvestcraftBlock("harvestcraft_wild_rutabaga", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_RYE = registerHarvestcraftBlock("harvestcraft_wild_rye", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_SCALLION = registerHarvestcraftBlock("harvestcraft_wild_scallion", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_SESAMESEEDS = registerHarvestcraftBlock("harvestcraft_wild_sesameseeds", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_SISAL = registerHarvestcraftBlock("harvestcraft_wild_sisal", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_SOYBEAN = registerHarvestcraftBlock("harvestcraft_wild_soybean", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_SPINACH = registerHarvestcraftBlock("harvestcraft_wild_spinach", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_SPICELEAF = registerHarvestcraftBlock("harvestcraft_wild_spiceleaf", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_STRAWBERRY = registerHarvestcraftBlock("harvestcraft_wild_strawberry", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_SWEETPOTATO = registerHarvestcraftBlock("harvestcraft_wild_sweetpotato", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_TARO = registerHarvestcraftBlock("harvestcraft_wild_taro", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_TEALEAF = registerHarvestcraftBlock("harvestcraft_wild_tealeaf", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_TOMATILLO = registerHarvestcraftBlock("harvestcraft_wild_tomatillo", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_TOMATO = registerHarvestcraftBlock("harvestcraft_wild_tomato", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_TURNIP = registerHarvestcraftBlock("harvestcraft_wild_turnip", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_WATERCHESTNUT = registerHarvestcraftBlock("harvestcraft_wild_waterchestnut", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_WHITEMUSHROOM = registerHarvestcraftBlock("harvestcraft_wild_whitemushroom", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_WINTERSQUASH = registerHarvestcraftBlock("harvestcraft_wild_wintersquash", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject HARVESTCRAFT_WILD_ZUCCHINI = registerHarvestcraftBlock("harvestcraft_wild_zucchini", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - - private static RegistryObject registerHarvestcraftBlock(String name, Supplier block) { - RegistryObject toReturn = BLOCKS.register(name, block); - if (CompatConfig.ENABLE_HARVESTCRAFT.get() && CompatConfig.LOADED_HARVESTCRAFT) {registerBlockItem(name, toReturn);} - return toReturn; - } - - //-------------------------------------------------------------------------------------------------- - //VEGGIE_WAY public static final RegistryObject VEGGIEWAY_WILD_CORN = registerVeggiewayBlock("veggieway_wild_corn", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject VEGGIEWAY_WILD_LENTIL = registerVeggiewayBlock("veggieway_wild_lentil", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject VEGGIEWAY_WILD_QUINOA = registerVeggiewayBlock("veggieway_wild_quinoa", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); + //-------------------------------------------------------------------------------------------------- public static final RegistryObject VEGGIEWAY_WILD_SOYBEAN = registerVeggiewayBlock("veggieway_wild_soybean", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - - private static RegistryObject registerVeggiewayBlock(String name, Supplier block) { - RegistryObject toReturn = BLOCKS.register(name, block); - if (CompatConfig.ENABLE_VEGGIEWAY.get() && CompatConfig.LOADED_VEGGIEWAY) {registerBlockItem(name, toReturn);} - return toReturn; - } - - //---------------------------------------------------------------------------------------------- - //SIMPLE_FARMING public static final RegistryObject SIMPLEFARMING_WILD_CUMIN = registerSimpleFarmingBlock("simplefarming_wild_cumin", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_QUINOA = registerSimpleFarmingBlock("simplefarming_wild_quinoa", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_SUNFLOWER = registerSimpleFarmingBlock("simplefarming_wild_sunflower", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_CANTALOUPE = registerSimpleFarmingBlock("simplefarming_wild_cantaloupe", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); + //---------------------------------------------------------------------------------------------- public static final RegistryObject SIMPLEFARMING_WILD_HONEYDEW = registerSimpleFarmingBlock("simplefarming_wild_honeydew", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_SQUASH = registerSimpleFarmingBlock("simplefarming_wild_squash", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_BARLEY = registerSimpleFarmingBlock("simplefarming_wild_barley", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_BROCCOLI = registerSimpleFarmingBlock("simplefarming_wild_broccoli", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_CASSAVA = registerSimpleFarmingBlock("simplefarming_wild_cassava", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_CORN = registerSimpleFarmingBlock("simplefarming_wild_corn", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_COTTON = registerSimpleFarmingBlock("simplefarming_wild_cotton", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_CUCUMBER = registerSimpleFarmingBlock("simplefarming_wild_cucumber", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_EGGPLANT = registerSimpleFarmingBlock("simplefarming_wild_eggplant", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_GINGER = registerSimpleFarmingBlock("simplefarming_wild_ginger", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_GRAPE = registerSimpleFarmingBlock("simplefarming_wild_grape", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_KENAF = registerSimpleFarmingBlock("simplefarming_wild_kenaf", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_LETTUCE = registerSimpleFarmingBlock("simplefarming_wild_lettuce", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_OAT = registerSimpleFarmingBlock("simplefarming_wild_oat", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_ONION = registerSimpleFarmingBlock("simplefarming_wild_onion", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_PEA = registerSimpleFarmingBlock("simplefarming_wild_pea", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_PEANUT = registerSimpleFarmingBlock("simplefarming_wild_peanut", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_PEPPER = registerSimpleFarmingBlock("simplefarming_wild_pepper", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_RADISH = registerSimpleFarmingBlock("simplefarming_wild_radish", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_RICE = registerSimpleFarmingBlock("simplefarming_wild_rice", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_RYE = registerSimpleFarmingBlock("simplefarming_wild_rye", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_SORGHUM = registerSimpleFarmingBlock("simplefarming_wild_sorghum", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_SOYBEAN = registerSimpleFarmingBlock("simplefarming_wild_soybean", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_SPINACH = registerSimpleFarmingBlock("simplefarming_wild_spinach", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_SWEETPOTATO = registerSimpleFarmingBlock("simplefarming_wild_sweetpotato", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_TOMATO = registerSimpleFarmingBlock("simplefarming_wild_tomato", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_TURNIP = registerSimpleFarmingBlock("simplefarming_wild_turnip", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_YAM = registerSimpleFarmingBlock("simplefarming_wild_yam", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); - public static final RegistryObject SIMPLEFARMING_WILD_ZUCCHINI = registerSimpleFarmingBlock("simplefarming_wild_zucchini", () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); + //Enhanced Farming + public static final RegistryObject ENHANCEDFARMING_WILD_MINT = registerEnhancedFarmingBlock("enhancedfarming_wild_mint", + () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); + public static final RegistryObject ENHANCEDFARMING_WILD_TOMATO = registerEnhancedFarmingBlock("enhancedfarming_wild_tomato", + () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); + public static final RegistryObject ENHANCEDFARMING_WILD_CUCUMBER = registerEnhancedFarmingBlock("enhancedfarming_wild_cucumber", + () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); + public static final RegistryObject ENHANCEDFARMING_WILD_AUBERGINE = registerEnhancedFarmingBlock("enhancedfarming_wild_aubergine", + () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); + public static final RegistryObject ENHANCEDFARMING_WILD_GRAPE = registerEnhancedFarmingBlock("enhancedfarming_wild_grape", + () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); + public static final RegistryObject ENHANCEDFARMING_WILD_PINEAPPLE = registerEnhancedFarmingBlock("enhancedfarming_wild_pineapple", + () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); + public static final RegistryObject ENHANCEDFARMING_WILD_CORN = registerEnhancedFarmingBlock("enhancedfarming_wild_corn", + () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); + public static final RegistryObject ENHANCEDFARMING_WILD_ONION = registerEnhancedFarmingBlock("enhancedfarming_wild_onion", + () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); + public static final RegistryObject ENHANCEDFARMING_WILD_GARLIC = registerEnhancedFarmingBlock("enhancedfarming_wild_garlic", + () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); + public static final RegistryObject ENHANCEDFARMING_WILD_LETTUCE = registerEnhancedFarmingBlock("enhancedfarming_wild_lettuce", + () -> new FlowerBlock(Effects.INSTANT_HEALTH, 2, AbstractBlock.Properties.from(Blocks.DANDELION))); + //---------------------------------------------------------------------------------------------- + + private static RegistryObject registerMinecraftBlock(String name, Supplier block) { + RegistryObject toReturn = BLOCKS.register(name, block); + if (CompatConfig.ENABLE_MINECRAFT.get()) { + registerBlockItem(name, toReturn); + } + return toReturn; + } + + private static RegistryObject registerImmersiveEngineeringBlock(String name, Supplier block) { + RegistryObject toReturn = BLOCKS.register(name, block); + if (CompatConfig.ENABLE_IMMERSIVEENGINEERING.get() && CompatConfig.LOADED_IMMERSIVEENGINEERING) { + registerBlockItem(name, toReturn); + } + return toReturn; + } + + private static RegistryObject registerHarvestcraftBlock(String name, Supplier block) { + RegistryObject toReturn = BLOCKS.register(name, block); + if (CompatConfig.ENABLE_HARVESTCRAFT.get() && CompatConfig.LOADED_HARVESTCRAFT) { + registerBlockItem(name, toReturn); + } + return toReturn; + } + + private static RegistryObject registerVeggiewayBlock(String name, Supplier block) { + RegistryObject toReturn = BLOCKS.register(name, block); + if (CompatConfig.ENABLE_VEGGIEWAY.get() && CompatConfig.LOADED_VEGGIEWAY) { + registerBlockItem(name, toReturn); + } + return toReturn; + } + + private static RegistryObject registerSimpleFarmingBlock(String name, Supplier block) { + RegistryObject toReturn = BLOCKS.register(name, block); + if (CompatConfig.ENABLE_SIMPLEFARMING.get() && CompatConfig.LOADED_SIMPLEFARMING) { + registerBlockItem(name, toReturn); + } + return toReturn; + } - private static RegistryObject registerSimpleFarmingBlock(String name, Supplier block) { + private static RegistryObject registerEnhancedFarmingBlock(String name, Supplier block) { RegistryObject toReturn = BLOCKS.register(name, block); - if (CompatConfig.ENABLE_SIMPLEFARMING.get() && CompatConfig.LOADED_SIMPLEFARMING) {registerBlockItem(name, toReturn);} + if (CompatConfig.ENABLE_IMMERSIVEENGINEERING.get() && CompatConfig.LOADED_IMMERSIVEENGINEERING) { + registerBlockItem(name, toReturn); + } return toReturn; } diff --git a/src/main/java/wks/wolfkidsounds/wildplants/config/CompatConfig.java b/src/main/java/wks/wolfkidsounds/wildplants/config/CompatConfig.java index 677a951..b7fa062 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/config/CompatConfig.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/config/CompatConfig.java @@ -12,11 +12,13 @@ public class CompatConfig { public static ForgeConfigSpec.BooleanValue ENABLE_HARVESTCRAFT; public static ForgeConfigSpec.BooleanValue ENABLE_VEGGIEWAY; public static ForgeConfigSpec.BooleanValue ENABLE_SIMPLEFARMING; + public static ForgeConfigSpec.BooleanValue ENABLE_ENHANCEDFARMING; public static Boolean LOADED_IMMERSIVEENGINEERING = ModList.get().isLoaded("immersiveengineering"); public static Boolean LOADED_HARVESTCRAFT = ModList.get().isLoaded("pamhc2crops"); public static Boolean LOADED_VEGGIEWAY = ModList.get().isLoaded("veggie_way"); public static Boolean LOADED_SIMPLEFARMING = ModList.get().isLoaded("simplefarming"); + public static Boolean LOADED_ENHANCEDFARMING = ModList.get().isLoaded("enhancedfarming"); public static void initMinecraft(ForgeConfigSpec.Builder BUILDER) { Wildplants.LOGGER.debug("init-compat-minecraft-configuration"); @@ -47,4 +49,10 @@ public static void initSimpleFarming(ForgeConfigSpec.Builder BUILDER) { ENABLE_SIMPLEFARMING = BUILDER .define("Simple_Farming", true); } + + public static void initEnhancedFarming(ForgeConfigSpec.Builder BUILDER) { + Wildplants.LOGGER.debug("init-compat-enhancedfarming-configuration"); + ENABLE_ENHANCEDFARMING = BUILDER + .define("Enhanced_Farming", true); + } } diff --git a/src/main/java/wks/wolfkidsounds/wildplants/config/WildplantsConfig.java b/src/main/java/wks/wolfkidsounds/wildplants/config/WildplantsConfig.java index 81ec0ea..47d2584 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/config/WildplantsConfig.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/config/WildplantsConfig.java @@ -39,6 +39,7 @@ public final class WildplantsConfig { CompatConfig.initHarvestcraft(BUILDER); CompatConfig.initVeggieway(BUILDER); CompatConfig.initSimpleFarming(BUILDER); + CompatConfig.initEnhancedFarming(BUILDER); BUILDER.pop(); BUILDER.pop(); diff --git a/src/main/java/wks/wolfkidsounds/wildplants/config/features/enhancedfarming/EnhancedFarmingConfig.java b/src/main/java/wks/wolfkidsounds/wildplants/config/features/enhancedfarming/EnhancedFarmingConfig.java new file mode 100644 index 0000000..4f70242 --- /dev/null +++ b/src/main/java/wks/wolfkidsounds/wildplants/config/features/enhancedfarming/EnhancedFarmingConfig.java @@ -0,0 +1,218 @@ +package wks.wolfkidsounds.wildplants.config.features.enhancedfarming; + +import net.minecraftforge.common.ForgeConfigSpec; +import wks.wolfkidsounds.wildplants.Wildplants; + +public class EnhancedFarmingConfig { + public static final ForgeConfigSpec.Builder BUILDER = new ForgeConfigSpec.Builder(); + public static final ForgeConfigSpec SPEC; + + //MINECRAFT + public static ForgeConfigSpec.ConfigValue MINT_BIOME_TYPE_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue MINT_FREQUENCY_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue MINT_PATCH_SIZE_ENHANCEDFARMING; + public static ForgeConfigSpec.BooleanValue MINT_ENABLED_ENHANCEDFARMING; + + public static ForgeConfigSpec.ConfigValue TOMATO_BIOME_TYPE_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue TOMATO_FREQUENCY_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue TOMATO_PATCH_SIZE_ENHANCEDFARMING; + public static ForgeConfigSpec.BooleanValue TOMATO_ENABLED_ENHANCEDFARMING; + + public static ForgeConfigSpec.ConfigValue CUCUMBER_BIOME_TYPE_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue CUCUMBER_FREQUENCY_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue CUCUMBER_PATCH_SIZE_ENHANCEDFARMING; + public static ForgeConfigSpec.BooleanValue CUCUMBER_ENABLED_ENHANCEDFARMING; + + public static ForgeConfigSpec.ConfigValue AUBERGINE_BIOME_TYPE_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue AUBERGINE_FREQUENCY_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue AUBERGINE_PATCH_SIZE_ENHANCEDFARMING; + public static ForgeConfigSpec.BooleanValue AUBERGINE_ENABLED_ENHANCEDFARMING; + + public static ForgeConfigSpec.ConfigValue GRAPE_BIOME_TYPE_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue GRAPE_FREQUENCY_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue GRAPE_PATCH_SIZE_ENHANCEDFARMING; + public static ForgeConfigSpec.BooleanValue GRAPE_ENABLED_ENHANCEDFARMING; + + public static ForgeConfigSpec.ConfigValue PINEPAPPLE_BIOME_TYPE_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue PINEPAPPLE_FREQUENCY_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue PINEPAPPLE_PATCH_SIZE_ENHANCEDFARMING; + public static ForgeConfigSpec.BooleanValue PINEPAPPLE_ENABLED_ENHANCEDFARMING; + + public static ForgeConfigSpec.ConfigValue CORN_BIOME_TYPE_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue CORN_FREQUENCY_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue CORN_PATCH_SIZE_ENHANCEDFARMING; + public static ForgeConfigSpec.BooleanValue CORN_ENABLED_ENHANCEDFARMING; + + public static ForgeConfigSpec.ConfigValue ONION_BIOME_TYPE_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue ONION_FREQUENCY_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue ONION_PATCH_SIZE_ENHANCEDFARMING; + public static ForgeConfigSpec.BooleanValue ONION_ENABLED_ENHANCEDFARMING; + + public static ForgeConfigSpec.ConfigValue GARLIC_BIOME_TYPE_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue GARLIC_FREQUENCY_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue GARLIC_PATCH_SIZE_ENHANCEDFARMING; + public static ForgeConfigSpec.BooleanValue GARLIC_ENABLED_ENHANCEDFARMING; + + public static ForgeConfigSpec.ConfigValue LETTUCE_BIOME_TYPE_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue LETTUCE_FREQUENCY_ENHANCEDFARMING; + public static ForgeConfigSpec.ConfigValue LETTUCE_PATCH_SIZE_ENHANCEDFARMING; + public static ForgeConfigSpec.BooleanValue LETTUCE_ENABLED_ENHANCEDFARMING; + + static { + Wildplants.LOGGER.debug("init-minecraft-feature-config"); + BUILDER.comment( + "Valid Biome Types:\n" + + "Temperature: [HOT, COLD] \n" + + "Vegetation: [SPARSE, DENSE] \n" + + "Humidity: [WET, DRY] \n" + + "Tree Types: [SAVANNA, CONIFEROUS, JUNGLE] \n" + + "Attributes: [SPOOKY, DEAD, LUSH, MUSHROOM, MAGICAL, RARE, PLATEAU, MODIFIED, OCEAN, RIVER, WATER] \n" + + "Generic Types: [MESA, FOREST, PLAINS, MOUNTAIN, HILLS, SWAMP, SANDY, SNOWY, WASTELAND, BEACH, VOID] \n" + + "Use: [OVERWORLD] to generate in all biomes"); + + + BUILDER.push("MINECRAFT_WILD MINT"); + MINT_ENABLED_ENHANCEDFARMING = BUILDER + .define("Enabled:", true); + MINT_BIOME_TYPE_ENHANCEDFARMING = BUILDER + .comment("Default: [SAVANNA]") + .define("Biome Type:", "SAVANNA"); + MINT_FREQUENCY_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + MINT_PATCH_SIZE_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("MINECRAFT_WILD TOMATO"); + TOMATO_ENABLED_ENHANCEDFARMING = BUILDER + .define("Enabled:", true); + TOMATO_BIOME_TYPE_ENHANCEDFARMING = BUILDER + .comment("Default: [SAVANNA]") + .define("Biome Type:", "SAVANNA"); + TOMATO_FREQUENCY_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + TOMATO_PATCH_SIZE_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("MINECRAFT_WILD CUCUMBER"); + CUCUMBER_ENABLED_ENHANCEDFARMING = BUILDER + .define("Enabled:", true); + CUCUMBER_BIOME_TYPE_ENHANCEDFARMING = BUILDER + .comment("Default: [SAVANNA]") + .define("Biome Type:", "SAVANNA"); + CUCUMBER_FREQUENCY_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + CUCUMBER_PATCH_SIZE_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("MINECRAFT_WILD AUBERGINE"); + AUBERGINE_ENABLED_ENHANCEDFARMING = BUILDER + .define("Enabled:", true); + AUBERGINE_BIOME_TYPE_ENHANCEDFARMING = BUILDER + .comment("Default: [SAVANNA]") + .define("Biome Type:", "SAVANNA"); + AUBERGINE_FREQUENCY_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + AUBERGINE_PATCH_SIZE_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("MINECRAFT_WILD GRAPE"); + GRAPE_ENABLED_ENHANCEDFARMING = BUILDER + .define("Enabled:", true); + GRAPE_BIOME_TYPE_ENHANCEDFARMING = BUILDER + .comment("Default: [SAVANNA]") + .define("Biome Type:", "SAVANNA"); + GRAPE_FREQUENCY_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + GRAPE_PATCH_SIZE_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("MINECRAFT_WILD PINEPAPPLE"); + PINEPAPPLE_ENABLED_ENHANCEDFARMING = BUILDER + .define("Enabled:", true); + PINEPAPPLE_BIOME_TYPE_ENHANCEDFARMING = BUILDER + .comment("Default: [SAVANNA]") + .define("Biome Type:", "SAVANNA"); + PINEPAPPLE_FREQUENCY_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + PINEPAPPLE_PATCH_SIZE_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("MINECRAFT_WILD CORN"); + CORN_ENABLED_ENHANCEDFARMING = BUILDER + .define("Enabled:", true); + CORN_BIOME_TYPE_ENHANCEDFARMING = BUILDER + .comment("Default: [SAVANNA]") + .define("Biome Type:", "SAVANNA"); + CORN_FREQUENCY_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + CORN_PATCH_SIZE_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("MINECRAFT_WILD ONION"); + ONION_ENABLED_ENHANCEDFARMING = BUILDER + .define("Enabled:", true); + ONION_BIOME_TYPE_ENHANCEDFARMING = BUILDER + .comment("Default: [SAVANNA]") + .define("Biome Type:", "SAVANNA"); + ONION_FREQUENCY_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + ONION_PATCH_SIZE_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("MINECRAFT_WILD GARLIC"); + GARLIC_ENABLED_ENHANCEDFARMING = BUILDER + .define("Enabled:", true); + GARLIC_BIOME_TYPE_ENHANCEDFARMING = BUILDER + .comment("Default: [PLAINS]") + .define("Biome Type:", "PLAINS"); + GARLIC_FREQUENCY_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Frequency: ", 1); + GARLIC_PATCH_SIZE_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size: ", 1); + BUILDER.pop(); + + BUILDER.push("MINECRAFT_WILD LETTUCE"); + LETTUCE_ENABLED_ENHANCEDFARMING = BUILDER + .define("Enabled:", true); + LETTUCE_BIOME_TYPE_ENHANCEDFARMING = BUILDER + .comment("Default: [PLAINS]") + .define("Biome Type:", "PLAINS"); + LETTUCE_FREQUENCY_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + LETTUCE_PATCH_SIZE_ENHANCEDFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + + SPEC = BUILDER.build(); + } + +} \ No newline at end of file diff --git a/src/main/java/wks/wolfkidsounds/wildplants/config/features/harvestcraft/HarvestcraftConfig.java b/src/main/java/wks/wolfkidsounds/wildplants/config/features/harvestcraft/HarvestcraftConfig.java index 2615e14..682c747 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/config/features/harvestcraft/HarvestcraftConfig.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/config/features/harvestcraft/HarvestcraftConfig.java @@ -915,7 +915,7 @@ public class HarvestcraftConfig { BUILDER.pop(); BUILDER.push("WILD JUTE"); - JUTE_ENABLED_HARVESTCRAFT = BUILDER + JUTE_ENABLED_HARVESTCRAFT = BUILDER .define("Enabled:", true); JUTE_BIOME_TYPE_HARVESTCRAFT = BUILDER .comment("Default: [FOREST]") diff --git a/src/main/java/wks/wolfkidsounds/wildplants/config/features/minecraft/MinecraftConfig.java b/src/main/java/wks/wolfkidsounds/wildplants/config/features/minecraft/MinecraftConfig.java index 926c00b..e6eb737 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/config/features/minecraft/MinecraftConfig.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/config/features/minecraft/MinecraftConfig.java @@ -54,47 +54,47 @@ public class MinecraftConfig { .define("Patch Size:", 1); BUILDER.pop(); - BUILDER.push("MINECRAFT_WILD CARROTS"); - CARROTS_ENABLED_MINECRAFT = BUILDER - .define("Enabled:", true); - CARROTS_BIOME_TYPE_MINECRAFT = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "PLAINS"); - CARROTS_FREQUENCY_MINECRAFT = BUILDER - .comment("Default [1]") - .define("Frequency: ", 1); - CARROTS_PATCH_SIZE_MINECRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size: ", 1); - BUILDER.pop(); + BUILDER.push("MINECRAFT_WILD CARROTS"); + CARROTS_ENABLED_MINECRAFT = BUILDER + .define("Enabled:", true); + CARROTS_BIOME_TYPE_MINECRAFT = BUILDER + .comment("Default: [PLAINS]") + .define("Biome Type:", "PLAINS"); + CARROTS_FREQUENCY_MINECRAFT = BUILDER + .comment("Default [1]") + .define("Frequency: ", 1); + CARROTS_PATCH_SIZE_MINECRAFT = BUILDER + .comment("Default [1]") + .define("Patch Size: ", 1); + BUILDER.pop(); - BUILDER.push("MINECRAFT_WILD POTATOES"); - POTATOES_ENABLED_MINECRAFT = BUILDER - .define("Enabled:", true); - POTATOES_BIOME_TYPE_MINECRAFT = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "PLAINS"); - POTATOES_FREQUENCY_MINECRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - POTATOES_PATCH_SIZE_MINECRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); + BUILDER.push("MINECRAFT_WILD POTATOES"); + POTATOES_ENABLED_MINECRAFT = BUILDER + .define("Enabled:", true); + POTATOES_BIOME_TYPE_MINECRAFT = BUILDER + .comment("Default: [PLAINS]") + .define("Biome Type:", "PLAINS"); + POTATOES_FREQUENCY_MINECRAFT = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + POTATOES_PATCH_SIZE_MINECRAFT = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); - BUILDER.push("MINECRAFT_WILD BEETROOTS"); - BEETROOTS_ENABLED_MINECRAFT = BUILDER - .define("Enabled:", true); - BEETROOTS_BIOME_TYPE_MINECRAFT = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "PLAINS"); - BEETROOTS_FREQUENCY_MINECRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - BEETROOTS_PATCH_SIZE_MINECRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); + BUILDER.push("MINECRAFT_WILD BEETROOTS"); + BEETROOTS_ENABLED_MINECRAFT = BUILDER + .define("Enabled:", true); + BEETROOTS_BIOME_TYPE_MINECRAFT = BUILDER + .comment("Default: [PLAINS]") + .define("Biome Type:", "PLAINS"); + BEETROOTS_FREQUENCY_MINECRAFT = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + BEETROOTS_PATCH_SIZE_MINECRAFT = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); SPEC = BUILDER.build(); } diff --git a/src/main/java/wks/wolfkidsounds/wildplants/config/features/simplefarming/SimpleFarmingConfig.java b/src/main/java/wks/wolfkidsounds/wildplants/config/features/simplefarming/SimpleFarmingConfig.java index 3b128a7..0b8e056 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/config/features/simplefarming/SimpleFarmingConfig.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/config/features/simplefarming/SimpleFarmingConfig.java @@ -4,649 +4,649 @@ import wks.wolfkidsounds.wildplants.Wildplants; public class SimpleFarmingConfig { - public static final ForgeConfigSpec.Builder BUILDER = new ForgeConfigSpec.Builder(); - public static final ForgeConfigSpec SPEC; - - //SIMPLEFARMING - public static ForgeConfigSpec.BooleanValue CUMIN_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue CUMIN_BIOME_TYPE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue CUMIN_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue CUMIN_PATCH_SIZE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue QUINOA_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue QUINOA_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue QUINOA_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue QUINOA_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue SUNFLOWER_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SUNFLOWER_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SUNFLOWER_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SUNFLOWER_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue CANTALOUPE_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue CANTALOUPE_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue CANTALOUPE_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue CANTALOUPE_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue HONEYDEW_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue HONEYDEW_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue HONEYDEW_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue HONEYDEW_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue SQUASH_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SQUASH_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SQUASH_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SQUASH_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue BARLEY_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue BARLEY_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue BARLEY_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue BARLEY_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue BROCCOLI_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue BROCCOLI_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue BROCCOLI_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue BROCCOLI_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue CASSAVA_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue CASSAVA_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue CASSAVA_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue CASSAVA_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue CORN_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue CORN_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue CORN_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue CORN_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue COTTON_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue COTTON_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue COTTON_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue COTTON_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue CUCUMBER_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue CUCUMBER_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue CUCUMBER_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue CUCUMBER_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue EGGPLANT_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue EGGPLANT_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue EGGPLANT_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue EGGPLANT_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue GINGER_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue GINGER_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue GINGER_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue GINGER_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue GRAPE_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue GRAPE_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue GRAPE_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue GRAPE_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue KENAF_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue KENAF_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue KENAF_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue KENAF_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue LETTUCE_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue LETTUCE_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue LETTUCE_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue LETTUCE_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue OAT_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue OAT_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue OAT_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue OAT_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue ONION_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue ONION_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue ONION_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue ONION_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue PEA_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue PEA_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue PEA_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue PEA_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue PEANUT_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue PEANUT_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue PEANUT_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue PEANUT_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue PEPPER_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue PEPPER_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue PEPPER_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue PEPPER_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue RADISH_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue RADISH_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue RADISH_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue RADISH_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue RICE_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue RICE_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue RICE_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue RICE_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue RYE_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue RYE_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue RYE_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue RYE_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue SORGHUM_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SORGHUM_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SORGHUM_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SORGHUM_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue SOYBEAN_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SOYBEAN_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SOYBEAN_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SOYBEAN_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue SPINACH_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SPINACH_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SPINACH_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SPINACH_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue SWEETPOTATO_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SWEETPOTATO_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SWEETPOTATO_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue SWEETPOTATO_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue TOMATO_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue TOMATO_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue TOMATO_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue TOMATO_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue TURNIP_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue TURNIP_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue TURNIP_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue TURNIP_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue YAM_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue YAM_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue YAM_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue YAM_BIOME_TYPE_SIMPLEFARMING; - - public static ForgeConfigSpec.BooleanValue ZUCCHINI_ENABLED_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue ZUCCHINI_FREQUENCY_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue ZUCCHINI_PATCH_SIZE_SIMPLEFARMING; - public static ForgeConfigSpec.ConfigValue ZUCCHINI_BIOME_TYPE_SIMPLEFARMING; - - static { - Wildplants.LOGGER.debug("init-SIMPLEFARMING-feature-config"); - BUILDER.comment( - "Valid Biome Types:\n" + - "Temperature: [HOT, COLD] \n" + - "Vegetation: [SPARSE, DENSE] \n" + - "Humidity: [WET, DRY] \n" + - "Tree Types: [SAVANNA, CONIFEROUS, JUNGLE] \n" + - "Attributes: [SPOOKY, DEAD, LUSH, MUSHROOM, MAGICAL, RARE, PLATEAU, MODIFIED, OCEAN, RIVER, WATER] \n" + - "Generic Types: [MESA, FOREST, PLAINS, MOUNTAIN, HILLS, SWAMP, SANDY, SNOWY, WASTELAND, BEACH, VOID] \n" + - "Use: [OVERWORLD] to generate in all biomes"); - - BUILDER.push("WILD CUMIN"); - CUMIN_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - CUMIN_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [MESA]") - .define("Biome Type:", "MESA"); - CUMIN_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CUMIN_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD QUINOA"); - QUINOA_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - QUINOA_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [COLD]") - .define("Biome Type:", "COLD"); - QUINOA_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - QUINOA_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD SUNFLOWER"); - SUNFLOWER_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - SUNFLOWER_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [HOT]") - .define("Biome Type:", "HOT"); - SUNFLOWER_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - SUNFLOWER_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD CANTALOUPE"); - CANTALOUPE_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - CANTALOUPE_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [WATER]") - .define("Biome Type:", "WATER"); - CANTALOUPE_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CANTALOUPE_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD HONEYDEW"); - HONEYDEW_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - HONEYDEW_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [DENSE]") - .define("Biome Type:", "DENSE"); - HONEYDEW_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - HONEYDEW_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD SQUASH"); - SQUASH_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - SQUASH_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [DRY]") - .define("Biome Type:", "DRY"); - SQUASH_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - SQUASH_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD BARLEY"); - BARLEY_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - BARLEY_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "PLAINS"); - BARLEY_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - BARLEY_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD BROCCOLI"); - BROCCOLI_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - BROCCOLI_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [COLD]") - .define("Biome Type:", "COLD"); - BROCCOLI_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - BROCCOLI_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD CASSAVA"); - CASSAVA_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - CASSAVA_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [SANDY]") - .define("Biome Type:", "SANDY"); - CASSAVA_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CASSAVA_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD CORN"); - CORN_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - CORN_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [SAVANNA]") - .define("Biome Type:", "SAVANNA"); - CORN_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CORN_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD COTTON"); - COTTON_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - COTTON_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [MOUNTAIN]") - .define("Biome Type:", "MOUNTAIN"); - COTTON_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - COTTON_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD CUCUMBER"); - CUCUMBER_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - CUCUMBER_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "PLAINS"); - CUCUMBER_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CUCUMBER_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD EGGPLANT"); - EGGPLANT_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - EGGPLANT_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [WATER]") - .define("Biome Type:", "WATER"); - EGGPLANT_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - EGGPLANT_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD GINGER"); - GINGER_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - GINGER_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [WATER]") - .define("Biome Type:", "WATER"); - GINGER_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - GINGER_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD GRAPE"); - GRAPE_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - GRAPE_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [BEACH]") - .define("Biome Type:", "BEACH"); - GRAPE_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - GRAPE_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD KENAF"); - KENAF_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - KENAF_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [BEACH]") - .define("Biome Type:", "BEACH"); - KENAF_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - KENAF_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD LETTUCE"); - LETTUCE_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - LETTUCE_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [SAVANNA]") - .define("Biome Type:", "SAVANNA"); - LETTUCE_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - LETTUCE_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD OAT"); - OAT_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - OAT_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [HILLS]") - .define("Biome Type:", "HILLS"); - OAT_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - OAT_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD ONION"); - ONION_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - ONION_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "HOT"); - ONION_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - ONION_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD PEA"); - PEA_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - PEA_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [MOUNTAIN]") - .define("Biome Type:", "MOUNTAIN"); - PEA_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - PEA_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD PEANUT"); - PEANUT_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - PEANUT_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [SANDY]") - .define("Biome Type:", "SANDY"); - PEANUT_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - PEANUT_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD PEPPER"); - PEPPER_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - PEPPER_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - PEPPER_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - PEPPER_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD RADISH"); - RADISH_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - RADISH_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - RADISH_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - RADISH_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD RICE"); - RICE_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - RICE_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [SWAMP]") - .define("Biome Type:", "SWAMP"); - RICE_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - RICE_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD RYE"); - RYE_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - RYE_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [HILLS]") - .define("Biome Type:", "HILLS"); - RYE_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - RYE_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD SORGHUM"); - SORGHUM_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - SORGHUM_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - SORGHUM_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - SORGHUM_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD SOYBEAN"); - SOYBEAN_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - SOYBEAN_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [WATER]") - .define("Biome Type:", "WATER"); - SOYBEAN_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - SOYBEAN_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD SPINACH"); - SPINACH_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - SPINACH_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [COLD]") - .define("Biome Type:", "COLD"); - SPINACH_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - SPINACH_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD SWEETPOTATO"); - SWEETPOTATO_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - SWEETPOTATO_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - SWEETPOTATO_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - SWEETPOTATO_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD TOMATO"); - TOMATO_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - TOMATO_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [DESERT]") - .define("Biome Type:", "DESERT"); - TOMATO_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - TOMATO_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD TURNIP"); - TURNIP_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - TURNIP_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - TURNIP_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - TURNIP_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD YAM"); - YAM_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - YAM_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [SWAMP]") - .define("Biome Type:", "SWAMP"); - YAM_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - YAM_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD ZUCCHINI"); - ZUCCHINI_ENABLED_SIMPLEFARMING = BUILDER - .define("Enabled:", true); - ZUCCHINI_BIOME_TYPE_SIMPLEFARMING = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - ZUCCHINI_FREQUENCY_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - ZUCCHINI_PATCH_SIZE_SIMPLEFARMING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - SPEC = BUILDER.build(); - } + public static final ForgeConfigSpec.Builder BUILDER = new ForgeConfigSpec.Builder(); + public static final ForgeConfigSpec SPEC; + + //SIMPLEFARMING + public static ForgeConfigSpec.BooleanValue CUMIN_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue CUMIN_BIOME_TYPE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue CUMIN_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue CUMIN_PATCH_SIZE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue QUINOA_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue QUINOA_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue QUINOA_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue QUINOA_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue SUNFLOWER_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SUNFLOWER_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SUNFLOWER_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SUNFLOWER_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue CANTALOUPE_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue CANTALOUPE_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue CANTALOUPE_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue CANTALOUPE_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue HONEYDEW_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue HONEYDEW_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue HONEYDEW_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue HONEYDEW_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue SQUASH_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SQUASH_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SQUASH_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SQUASH_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue BARLEY_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue BARLEY_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue BARLEY_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue BARLEY_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue BROCCOLI_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue BROCCOLI_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue BROCCOLI_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue BROCCOLI_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue CASSAVA_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue CASSAVA_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue CASSAVA_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue CASSAVA_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue CORN_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue CORN_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue CORN_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue CORN_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue COTTON_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue COTTON_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue COTTON_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue COTTON_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue CUCUMBER_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue CUCUMBER_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue CUCUMBER_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue CUCUMBER_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue EGGPLANT_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue EGGPLANT_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue EGGPLANT_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue EGGPLANT_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue GINGER_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue GINGER_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue GINGER_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue GINGER_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue GRAPE_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue GRAPE_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue GRAPE_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue GRAPE_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue KENAF_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue KENAF_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue KENAF_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue KENAF_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue LETTUCE_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue LETTUCE_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue LETTUCE_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue LETTUCE_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue OAT_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue OAT_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue OAT_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue OAT_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue ONION_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue ONION_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue ONION_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue ONION_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue PEA_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue PEA_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue PEA_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue PEA_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue PEANUT_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue PEANUT_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue PEANUT_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue PEANUT_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue PEPPER_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue PEPPER_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue PEPPER_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue PEPPER_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue RADISH_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue RADISH_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue RADISH_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue RADISH_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue RICE_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue RICE_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue RICE_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue RICE_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue RYE_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue RYE_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue RYE_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue RYE_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue SORGHUM_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SORGHUM_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SORGHUM_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SORGHUM_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue SOYBEAN_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SOYBEAN_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SOYBEAN_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SOYBEAN_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue SPINACH_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SPINACH_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SPINACH_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SPINACH_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue SWEETPOTATO_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SWEETPOTATO_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SWEETPOTATO_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue SWEETPOTATO_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue TOMATO_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue TOMATO_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue TOMATO_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue TOMATO_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue TURNIP_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue TURNIP_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue TURNIP_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue TURNIP_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue YAM_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue YAM_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue YAM_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue YAM_BIOME_TYPE_SIMPLEFARMING; + + public static ForgeConfigSpec.BooleanValue ZUCCHINI_ENABLED_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue ZUCCHINI_FREQUENCY_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue ZUCCHINI_PATCH_SIZE_SIMPLEFARMING; + public static ForgeConfigSpec.ConfigValue ZUCCHINI_BIOME_TYPE_SIMPLEFARMING; + + static { + Wildplants.LOGGER.debug("init-SIMPLEFARMING-feature-config"); + BUILDER.comment( + "Valid Biome Types:\n" + + "Temperature: [HOT, COLD] \n" + + "Vegetation: [SPARSE, DENSE] \n" + + "Humidity: [WET, DRY] \n" + + "Tree Types: [SAVANNA, CONIFEROUS, JUNGLE] \n" + + "Attributes: [SPOOKY, DEAD, LUSH, MUSHROOM, MAGICAL, RARE, PLATEAU, MODIFIED, OCEAN, RIVER, WATER] \n" + + "Generic Types: [MESA, FOREST, PLAINS, MOUNTAIN, HILLS, SWAMP, SANDY, SNOWY, WASTELAND, BEACH, VOID] \n" + + "Use: [OVERWORLD] to generate in all biomes"); + + BUILDER.push("WILD CUMIN"); + CUMIN_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + CUMIN_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [MESA]") + .define("Biome Type:", "MESA"); + CUMIN_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + CUMIN_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD QUINOA"); + QUINOA_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + QUINOA_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [COLD]") + .define("Biome Type:", "COLD"); + QUINOA_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + QUINOA_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD SUNFLOWER"); + SUNFLOWER_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + SUNFLOWER_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [HOT]") + .define("Biome Type:", "HOT"); + SUNFLOWER_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + SUNFLOWER_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD CANTALOUPE"); + CANTALOUPE_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + CANTALOUPE_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [WATER]") + .define("Biome Type:", "WATER"); + CANTALOUPE_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + CANTALOUPE_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD HONEYDEW"); + HONEYDEW_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + HONEYDEW_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [DENSE]") + .define("Biome Type:", "DENSE"); + HONEYDEW_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + HONEYDEW_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD SQUASH"); + SQUASH_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + SQUASH_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [DRY]") + .define("Biome Type:", "DRY"); + SQUASH_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + SQUASH_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD BARLEY"); + BARLEY_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + BARLEY_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [PLAINS]") + .define("Biome Type:", "PLAINS"); + BARLEY_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + BARLEY_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD BROCCOLI"); + BROCCOLI_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + BROCCOLI_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [COLD]") + .define("Biome Type:", "COLD"); + BROCCOLI_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + BROCCOLI_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD CASSAVA"); + CASSAVA_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + CASSAVA_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [SANDY]") + .define("Biome Type:", "SANDY"); + CASSAVA_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + CASSAVA_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD CORN"); + CORN_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + CORN_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [SAVANNA]") + .define("Biome Type:", "SAVANNA"); + CORN_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + CORN_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD COTTON"); + COTTON_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + COTTON_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [MOUNTAIN]") + .define("Biome Type:", "MOUNTAIN"); + COTTON_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + COTTON_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD CUCUMBER"); + CUCUMBER_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + CUCUMBER_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [PLAINS]") + .define("Biome Type:", "PLAINS"); + CUCUMBER_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + CUCUMBER_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD EGGPLANT"); + EGGPLANT_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + EGGPLANT_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [WATER]") + .define("Biome Type:", "WATER"); + EGGPLANT_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + EGGPLANT_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD GINGER"); + GINGER_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + GINGER_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [WATER]") + .define("Biome Type:", "WATER"); + GINGER_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + GINGER_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD GRAPE"); + GRAPE_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + GRAPE_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [BEACH]") + .define("Biome Type:", "BEACH"); + GRAPE_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + GRAPE_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD KENAF"); + KENAF_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + KENAF_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [BEACH]") + .define("Biome Type:", "BEACH"); + KENAF_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + KENAF_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD LETTUCE"); + LETTUCE_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + LETTUCE_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [SAVANNA]") + .define("Biome Type:", "SAVANNA"); + LETTUCE_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + LETTUCE_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD OAT"); + OAT_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + OAT_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [HILLS]") + .define("Biome Type:", "HILLS"); + OAT_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + OAT_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD ONION"); + ONION_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + ONION_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [PLAINS]") + .define("Biome Type:", "HOT"); + ONION_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + ONION_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD PEA"); + PEA_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + PEA_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [MOUNTAIN]") + .define("Biome Type:", "MOUNTAIN"); + PEA_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + PEA_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD PEANUT"); + PEANUT_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + PEANUT_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [SANDY]") + .define("Biome Type:", "SANDY"); + PEANUT_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + PEANUT_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD PEPPER"); + PEPPER_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + PEPPER_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [FOREST]") + .define("Biome Type:", "FOREST"); + PEPPER_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + PEPPER_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD RADISH"); + RADISH_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + RADISH_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [FOREST]") + .define("Biome Type:", "FOREST"); + RADISH_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + RADISH_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD RICE"); + RICE_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + RICE_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [SWAMP]") + .define("Biome Type:", "SWAMP"); + RICE_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + RICE_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD RYE"); + RYE_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + RYE_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [HILLS]") + .define("Biome Type:", "HILLS"); + RYE_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + RYE_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD SORGHUM"); + SORGHUM_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + SORGHUM_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [FOREST]") + .define("Biome Type:", "FOREST"); + SORGHUM_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + SORGHUM_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD SOYBEAN"); + SOYBEAN_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + SOYBEAN_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [WATER]") + .define("Biome Type:", "WATER"); + SOYBEAN_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + SOYBEAN_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD SPINACH"); + SPINACH_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + SPINACH_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [COLD]") + .define("Biome Type:", "COLD"); + SPINACH_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + SPINACH_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD SWEETPOTATO"); + SWEETPOTATO_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + SWEETPOTATO_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [FOREST]") + .define("Biome Type:", "FOREST"); + SWEETPOTATO_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + SWEETPOTATO_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD TOMATO"); + TOMATO_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + TOMATO_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [DESERT]") + .define("Biome Type:", "DESERT"); + TOMATO_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + TOMATO_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD TURNIP"); + TURNIP_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + TURNIP_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [FOREST]") + .define("Biome Type:", "FOREST"); + TURNIP_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + TURNIP_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD YAM"); + YAM_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + YAM_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [SWAMP]") + .define("Biome Type:", "SWAMP"); + YAM_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + YAM_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + BUILDER.push("WILD ZUCCHINI"); + ZUCCHINI_ENABLED_SIMPLEFARMING = BUILDER + .define("Enabled:", true); + ZUCCHINI_BIOME_TYPE_SIMPLEFARMING = BUILDER + .comment("Default: [FOREST]") + .define("Biome Type:", "FOREST"); + ZUCCHINI_FREQUENCY_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Frequency:", 1); + ZUCCHINI_PATCH_SIZE_SIMPLEFARMING = BUILDER + .comment("Default [1]") + .define("Patch Size:", 1); + BUILDER.pop(); + + SPEC = BUILDER.build(); + } } diff --git a/src/main/java/wks/wolfkidsounds/wildplants/items/ModItems.java b/src/main/java/wks/wolfkidsounds/wildplants/items/ModItems.java index 1dedbc0..10688b3 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/items/ModItems.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/items/ModItems.java @@ -7,10 +7,10 @@ import wks.wolfkidsounds.wildplants.Wildplants; public class ModItems { - public static final DeferredRegister ITEMS = - DeferredRegister.create(ForgeRegistries.ITEMS, Wildplants.MOD_ID); + public static final DeferredRegister ITEMS = + DeferredRegister.create(ForgeRegistries.ITEMS, Wildplants.MOD_ID); - public static void register(IEventBus eventBus) { - ITEMS.register(eventBus); - } + public static void register(IEventBus eventBus) { + ITEMS.register(eventBus); + } } diff --git a/src/main/java/wks/wolfkidsounds/wildplants/render/ModRenderers.java b/src/main/java/wks/wolfkidsounds/wildplants/render/ModRenderers.java index 47f0e39..5b93f7a 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/render/ModRenderers.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/render/ModRenderers.java @@ -145,5 +145,18 @@ public static void registerBlockCutout() { RenderTypeLookup.setRenderLayer(ModBlocks.SIMPLEFARMING_WILD_YAM.get(), RenderType.getCutout()); RenderTypeLookup.setRenderLayer(ModBlocks.SIMPLEFARMING_WILD_ZUCCHINI.get(), RenderType.getCutout()); } + + if (CompatConfig.LOADED_ENHANCEDFARMING && CompatConfig.ENABLE_ENHANCEDFARMING.get()) { + RenderTypeLookup.setRenderLayer(ModBlocks.ENHANCEDFARMING_WILD_MINT.get(), RenderType.getCutout()); + RenderTypeLookup.setRenderLayer(ModBlocks.ENHANCEDFARMING_WILD_TOMATO.get(), RenderType.getCutout()); + RenderTypeLookup.setRenderLayer(ModBlocks.ENHANCEDFARMING_WILD_CUCUMBER.get(), RenderType.getCutout()); + RenderTypeLookup.setRenderLayer(ModBlocks.ENHANCEDFARMING_WILD_AUBERGINE.get(), RenderType.getCutout()); + RenderTypeLookup.setRenderLayer(ModBlocks.ENHANCEDFARMING_WILD_GRAPE.get(), RenderType.getCutout()); + RenderTypeLookup.setRenderLayer(ModBlocks.ENHANCEDFARMING_WILD_PINEAPPLE.get(), RenderType.getCutout()); + RenderTypeLookup.setRenderLayer(ModBlocks.ENHANCEDFARMING_WILD_CORN.get(), RenderType.getCutout()); + RenderTypeLookup.setRenderLayer(ModBlocks.ENHANCEDFARMING_WILD_ONION.get(), RenderType.getCutout()); + RenderTypeLookup.setRenderLayer(ModBlocks.ENHANCEDFARMING_WILD_GARLIC.get(), RenderType.getCutout()); + RenderTypeLookup.setRenderLayer(ModBlocks.ENHANCEDFARMING_WILD_LETTUCE.get(), RenderType.getCutout()); + } } } diff --git a/src/main/java/wks/wolfkidsounds/wildplants/utils/FileUtils.java b/src/main/java/wks/wolfkidsounds/wildplants/utils/FileUtils.java index 943f8c3..7514aa6 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/utils/FileUtils.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/utils/FileUtils.java @@ -15,12 +15,22 @@ public static void createFolders() { Path wildplantsConfigurationPath = Paths.get(FMLPaths.CONFIGDIR.get().toAbsolutePath().toString(), "wildplants"); Path wildplantsSettingsConfigurationPath = Paths.get(FMLPaths.CONFIGDIR.get().toAbsolutePath().toString(), "wildplants/features"); - try {Files.createDirectory(wildplantsConfigurationPath);} - catch (FileAlreadyExistsException event) { Wildplants.LOGGER.debug("Configuration directory already exists. nice."); }//do nothing - catch (IOException event) {Wildplants.LOGGER.error("The wildplants configuration directory could not be created", event);} + try { + Files.createDirectory(wildplantsConfigurationPath); + } catch (FileAlreadyExistsException event) { + Wildplants.LOGGER.debug("Configuration directory already exists. nice."); + }//do nothing + catch (IOException event) { + Wildplants.LOGGER.error("The wildplants configuration directory could not be created", event); + } - try {Files.createDirectory(wildplantsSettingsConfigurationPath);} - catch (FileAlreadyExistsException event) { Wildplants.LOGGER.debug("Settings configuration already exists. nice."); }//do nothing - catch (IOException event) {Wildplants.LOGGER.error("The wildplants settings configuration directory could not be created", event);} + try { + Files.createDirectory(wildplantsSettingsConfigurationPath); + } catch (FileAlreadyExistsException event) { + Wildplants.LOGGER.debug("Settings configuration already exists. nice."); + }//do nothing + catch (IOException event) { + Wildplants.LOGGER.error("The wildplants settings configuration directory could not be created", event); + } } } diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/ModWorldEvents.java b/src/main/java/wks/wolfkidsounds/wildplants/world/ModWorldEvents.java index 457a13b..1c5d6d8 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/ModWorldEvents.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/world/ModWorldEvents.java @@ -5,11 +5,13 @@ import net.minecraftforge.fml.common.Mod; import wks.wolfkidsounds.wildplants.Wildplants; import wks.wolfkidsounds.wildplants.config.CompatConfig; +import wks.wolfkidsounds.wildplants.config.features.enhancedfarming.EnhancedFarmingConfig; import wks.wolfkidsounds.wildplants.config.features.harvestcraft.HarvestcraftConfig; import wks.wolfkidsounds.wildplants.config.features.immersiveengineering.ImmersiveEngineeringConfig; import wks.wolfkidsounds.wildplants.config.features.minecraft.MinecraftConfig; import wks.wolfkidsounds.wildplants.config.features.simplefarming.SimpleFarmingConfig; import wks.wolfkidsounds.wildplants.config.features.veggieway.VeggiewayConfig; +import wks.wolfkidsounds.wildplants.world.enhancedfarming.EnhancedFarmingWildplantsGeneration; import wks.wolfkidsounds.wildplants.world.harvestcraft.HarvestcraftWildplantsGeneration; import wks.wolfkidsounds.wildplants.world.immersiveengineering.ImmersiveEngineeringWildplantsGeneration; import wks.wolfkidsounds.wildplants.world.minecraft.MinecraftWildplantsGeneration; @@ -24,138 +26,412 @@ public class ModWorldEvents { public static void biomeLoadingEvent(final BiomeLoadingEvent event) { if (CompatConfig.ENABLE_MINECRAFT.get()) { - if (MinecraftConfig.WHEAT_ENABLED_MINECRAFT.get()) { MinecraftWildplantsGeneration.generateWildWheat(event); } - if (MinecraftConfig.CARROTS_ENABLED_MINECRAFT.get()) { MinecraftWildplantsGeneration.generateWildCarrots(event); } - if (MinecraftConfig.POTATOES_ENABLED_MINECRAFT.get()) { MinecraftWildplantsGeneration.generateWildPotatoes(event); } - if (MinecraftConfig.BEETROOTS_ENABLED_MINECRAFT.get()) { MinecraftWildplantsGeneration.generateWildBeetroots(event); } + if (MinecraftConfig.WHEAT_ENABLED_MINECRAFT.get()) { + MinecraftWildplantsGeneration.generateWildWheat(event); + } + if (MinecraftConfig.CARROTS_ENABLED_MINECRAFT.get()) { + MinecraftWildplantsGeneration.generateWildCarrots(event); + } + if (MinecraftConfig.POTATOES_ENABLED_MINECRAFT.get()) { + MinecraftWildplantsGeneration.generateWildPotatoes(event); + } + if (MinecraftConfig.BEETROOTS_ENABLED_MINECRAFT.get()) { + MinecraftWildplantsGeneration.generateWildBeetroots(event); + } } if (CompatConfig.LOADED_IMMERSIVEENGINEERING && CompatConfig.ENABLE_IMMERSIVEENGINEERING.get()) { - if (ImmersiveEngineeringConfig.HEMP_ENABLED_IMMERSIVEENINEERING.get()) { ImmersiveEngineeringWildplantsGeneration.generateWildHemp(event); } + if (ImmersiveEngineeringConfig.HEMP_ENABLED_IMMERSIVEENINEERING.get()) { + ImmersiveEngineeringWildplantsGeneration.generateWildHemp(event); + } } if (CompatConfig.LOADED_HARVESTCRAFT && CompatConfig.ENABLE_HARVESTCRAFT.get()) { - if (HarvestcraftConfig.AGAVE_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildAgave(event); } - if (HarvestcraftConfig.AMARANTH_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildAmaranth(event); } - if (HarvestcraftConfig.ARROWROOT_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildArrowroot(event); } - if (HarvestcraftConfig.ARTICHOKE_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildArtichoke(event); } - if (HarvestcraftConfig.ASPARAGUS_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildAsparagus(event); } - if (HarvestcraftConfig.BARLEY_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildBarley(event); } - if (HarvestcraftConfig.BEAN_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildBean(event); } - if (HarvestcraftConfig.BELLPEPPER_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildBellpepper(event); } - if (HarvestcraftConfig.BLACKBERRY_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildBlackberry(event); } - if (HarvestcraftConfig.BLUEBERRY_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildBlueberry(event); } - if (HarvestcraftConfig.BROCCOLI_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildBroccoli(event); } - if (HarvestcraftConfig.BRUSSELSPROUT_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildBrusselsprout(event); } - if (HarvestcraftConfig.CABBAGE_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildCabbage(event); } - if (HarvestcraftConfig.CACTUSFRUIT_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildCactusfruit(event); } - if (HarvestcraftConfig.CANDLEBERRY_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildCandleberry(event); } - if (HarvestcraftConfig.CANTALOUPE_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildCantaloupe(event); } - if (HarvestcraftConfig.CASSAVA_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildCassava(event); } - if (HarvestcraftConfig.CAULIFLOWER_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildCauliflower(event); } - if (HarvestcraftConfig.CELERY_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildCelery(event); } - if (HarvestcraftConfig.CHICKPEA_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildChickpea(event); } - if (HarvestcraftConfig.CHILIPEPPER_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildChilipepper(event); } - if (HarvestcraftConfig.COFFEEBEAN_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildCoffeebean(event); } - if (HarvestcraftConfig.CORN_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildCorn(event); } - if (HarvestcraftConfig.COTTON_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildCotton(event); } - if (HarvestcraftConfig.CRANBERRY_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildCranberry(event); } - if (HarvestcraftConfig.CUCUMBER_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildCucumber(event); } - if (HarvestcraftConfig.EGGPLANT_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildEggplant(event); } - if (HarvestcraftConfig.ELDERBERRY_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildElderberry(event); } - if (HarvestcraftConfig.FLAX_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildFlax(event); } - if (HarvestcraftConfig.GARLIC_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildGarlic(event); } - if (HarvestcraftConfig.GINGER_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildGinger(event); } - if (HarvestcraftConfig.GRAPE_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildGrape(event); } - if (HarvestcraftConfig.GREENGRAPE_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildGreengrape(event); } - if (HarvestcraftConfig.HUCKLEBERRY_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildHuckleberry(event); } - if (HarvestcraftConfig.JICAMA_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildJicama(event); } - if (HarvestcraftConfig.JUNIPERBERRY_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildJuniperberry(event); } - if (HarvestcraftConfig.JUTE_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildJute(event); } - if (HarvestcraftConfig.KALE_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildKale(event); } - if (HarvestcraftConfig.KENAF_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildKenaf(event); } - if (HarvestcraftConfig.KIWI_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildKiwi(event); } - if (HarvestcraftConfig.KOHLRABI_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildKohlrabi(event); } - if (HarvestcraftConfig.LEEK_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildLeek(event); } - if (HarvestcraftConfig.LENTIL_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildLentil(event); } - if (HarvestcraftConfig.LETTUCE_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildLettuce(event); } - if (HarvestcraftConfig.MILLET_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildMillet(event); } - if (HarvestcraftConfig.MULBERRY_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildMulberry(event); } - if (HarvestcraftConfig.MUSTARDSEEDS_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildMustardseeds(event); } - if (HarvestcraftConfig.OATS_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildOats(event); } - if (HarvestcraftConfig.OKRA_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildOkra(event); } - if (HarvestcraftConfig.ONION_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildOnion(event); } - if (HarvestcraftConfig.PARSNIP_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildParsnip(event); } - if (HarvestcraftConfig.PEANUT_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildPeanut(event); } - if (HarvestcraftConfig.PEAS_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildPeas(event); } - if (HarvestcraftConfig.PINEAPPLE_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildPineapple(event); } - if (HarvestcraftConfig.QUINOA_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildQuinoa(event); } - if (HarvestcraftConfig.RADISH_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildRadish(event); } - if (HarvestcraftConfig.RASPBERRY_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildRaspberry(event); } - if (HarvestcraftConfig.RHUBARB_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildRhubarb(event); } - if (HarvestcraftConfig.RICE_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildRice(event); } - if (HarvestcraftConfig.RUTABAGA_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildRutabaga(event); } - if (HarvestcraftConfig.RYE_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildRye(event); } - if (HarvestcraftConfig.SCALLION_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildScallion(event); } - if (HarvestcraftConfig.SESAMESEEDS_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildSesameseeds(event); } - if (HarvestcraftConfig.SISAL_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildSisal(event); } - if (HarvestcraftConfig.SOYBEAN_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildSoybean(event); } - if (HarvestcraftConfig.SPINACH_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildSpinach(event); } - if (HarvestcraftConfig.SPICELEAF_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildSpiceleaf(event); } - if (HarvestcraftConfig.STRAWBERRY_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildStrawberry(event); } - if (HarvestcraftConfig.SWEETPOTATO_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildSweetpotato(event); } - if (HarvestcraftConfig.TARO_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildTaro(event); } - if (HarvestcraftConfig.TEALEAF_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildTealeaf(event); } - if (HarvestcraftConfig.TOMATILLO_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildTomatillo(event); } - if (HarvestcraftConfig.TOMATO_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildTomato(event); } - if (HarvestcraftConfig.TURNIP_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildTurnip(event); } - if (HarvestcraftConfig.WATERCHESTNUT_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildWaterchestnut(event); } - if (HarvestcraftConfig.WHITEMUSHROOM_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildWhitemushroom(event); } - if (HarvestcraftConfig.WINTERSQUASH_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildWintersquash(event); } - if (HarvestcraftConfig.ZUCCHINI_ENABLED_HARVESTCRAFT.get()) { HarvestcraftWildplantsGeneration.generateWildZucchini(event); } + if (HarvestcraftConfig.AGAVE_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildAgave(event); + } + if (HarvestcraftConfig.AMARANTH_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildAmaranth(event); + } + if (HarvestcraftConfig.ARROWROOT_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildArrowroot(event); + } + if (HarvestcraftConfig.ARTICHOKE_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildArtichoke(event); + } + if (HarvestcraftConfig.ASPARAGUS_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildAsparagus(event); + } + if (HarvestcraftConfig.BARLEY_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildBarley(event); + } + if (HarvestcraftConfig.BEAN_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildBean(event); + } + if (HarvestcraftConfig.BELLPEPPER_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildBellpepper(event); + } + if (HarvestcraftConfig.BLACKBERRY_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildBlackberry(event); + } + if (HarvestcraftConfig.BLUEBERRY_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildBlueberry(event); + } + if (HarvestcraftConfig.BROCCOLI_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildBroccoli(event); + } + if (HarvestcraftConfig.BRUSSELSPROUT_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildBrusselsprout(event); + } + if (HarvestcraftConfig.CABBAGE_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildCabbage(event); + } + if (HarvestcraftConfig.CACTUSFRUIT_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildCactusfruit(event); + } + if (HarvestcraftConfig.CANDLEBERRY_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildCandleberry(event); + } + if (HarvestcraftConfig.CANTALOUPE_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildCantaloupe(event); + } + if (HarvestcraftConfig.CASSAVA_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildCassava(event); + } + if (HarvestcraftConfig.CAULIFLOWER_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildCauliflower(event); + } + if (HarvestcraftConfig.CELERY_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildCelery(event); + } + if (HarvestcraftConfig.CHICKPEA_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildChickpea(event); + } + if (HarvestcraftConfig.CHILIPEPPER_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildChilipepper(event); + } + if (HarvestcraftConfig.COFFEEBEAN_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildCoffeebean(event); + } + if (HarvestcraftConfig.CORN_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildCorn(event); + } + if (HarvestcraftConfig.COTTON_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildCotton(event); + } + if (HarvestcraftConfig.CRANBERRY_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildCranberry(event); + } + if (HarvestcraftConfig.CUCUMBER_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildCucumber(event); + } + if (HarvestcraftConfig.EGGPLANT_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildEggplant(event); + } + if (HarvestcraftConfig.ELDERBERRY_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildElderberry(event); + } + if (HarvestcraftConfig.FLAX_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildFlax(event); + } + if (HarvestcraftConfig.GARLIC_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildGarlic(event); + } + if (HarvestcraftConfig.GINGER_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildGinger(event); + } + if (HarvestcraftConfig.GRAPE_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildGrape(event); + } + if (HarvestcraftConfig.GREENGRAPE_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildGreengrape(event); + } + if (HarvestcraftConfig.HUCKLEBERRY_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildHuckleberry(event); + } + if (HarvestcraftConfig.JICAMA_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildJicama(event); + } + if (HarvestcraftConfig.JUNIPERBERRY_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildJuniperberry(event); + } + if (HarvestcraftConfig.JUTE_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildJute(event); + } + if (HarvestcraftConfig.KALE_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildKale(event); + } + if (HarvestcraftConfig.KENAF_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildKenaf(event); + } + if (HarvestcraftConfig.KIWI_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildKiwi(event); + } + if (HarvestcraftConfig.KOHLRABI_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildKohlrabi(event); + } + if (HarvestcraftConfig.LEEK_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildLeek(event); + } + if (HarvestcraftConfig.LENTIL_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildLentil(event); + } + if (HarvestcraftConfig.LETTUCE_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildLettuce(event); + } + if (HarvestcraftConfig.MILLET_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildMillet(event); + } + if (HarvestcraftConfig.MULBERRY_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildMulberry(event); + } + if (HarvestcraftConfig.MUSTARDSEEDS_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildMustardseeds(event); + } + if (HarvestcraftConfig.OATS_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildOats(event); + } + if (HarvestcraftConfig.OKRA_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildOkra(event); + } + if (HarvestcraftConfig.ONION_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildOnion(event); + } + if (HarvestcraftConfig.PARSNIP_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildParsnip(event); + } + if (HarvestcraftConfig.PEANUT_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildPeanut(event); + } + if (HarvestcraftConfig.PEAS_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildPeas(event); + } + if (HarvestcraftConfig.PINEAPPLE_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildPineapple(event); + } + if (HarvestcraftConfig.QUINOA_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildQuinoa(event); + } + if (HarvestcraftConfig.RADISH_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildRadish(event); + } + if (HarvestcraftConfig.RASPBERRY_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildRaspberry(event); + } + if (HarvestcraftConfig.RHUBARB_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildRhubarb(event); + } + if (HarvestcraftConfig.RICE_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildRice(event); + } + if (HarvestcraftConfig.RUTABAGA_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildRutabaga(event); + } + if (HarvestcraftConfig.RYE_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildRye(event); + } + if (HarvestcraftConfig.SCALLION_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildScallion(event); + } + if (HarvestcraftConfig.SESAMESEEDS_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildSesameseeds(event); + } + if (HarvestcraftConfig.SISAL_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildSisal(event); + } + if (HarvestcraftConfig.SOYBEAN_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildSoybean(event); + } + if (HarvestcraftConfig.SPINACH_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildSpinach(event); + } + if (HarvestcraftConfig.SPICELEAF_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildSpiceleaf(event); + } + if (HarvestcraftConfig.STRAWBERRY_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildStrawberry(event); + } + if (HarvestcraftConfig.SWEETPOTATO_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildSweetpotato(event); + } + if (HarvestcraftConfig.TARO_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildTaro(event); + } + if (HarvestcraftConfig.TEALEAF_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildTealeaf(event); + } + if (HarvestcraftConfig.TOMATILLO_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildTomatillo(event); + } + if (HarvestcraftConfig.TOMATO_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildTomato(event); + } + if (HarvestcraftConfig.TURNIP_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildTurnip(event); + } + if (HarvestcraftConfig.WATERCHESTNUT_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildWaterchestnut(event); + } + if (HarvestcraftConfig.WHITEMUSHROOM_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildWhitemushroom(event); + } + if (HarvestcraftConfig.WINTERSQUASH_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildWintersquash(event); + } + if (HarvestcraftConfig.ZUCCHINI_ENABLED_HARVESTCRAFT.get()) { + HarvestcraftWildplantsGeneration.generateWildZucchini(event); + } } if (CompatConfig.LOADED_VEGGIEWAY && CompatConfig.ENABLE_VEGGIEWAY.get()) { - if (VeggiewayConfig.CORN_ENABLED_VEGGIEWAY.get()) {VeggiewayWildplantsGeneration.generateWildCorn(event);} - if (VeggiewayConfig.LENTIL_ENABLED_VEGGIEWAY.get()) {VeggiewayWildplantsGeneration.generateWildLentil(event);} - if (VeggiewayConfig.QUINOA_ENABLED_VEGGIEWAY.get()) {VeggiewayWildplantsGeneration.generateWildQuinoa(event);} - if (VeggiewayConfig.SOYBEAN_ENABLED_VEGGIEWAY.get()) {VeggiewayWildplantsGeneration.generateWildSoybean(event);} + if (VeggiewayConfig.CORN_ENABLED_VEGGIEWAY.get()) { + VeggiewayWildplantsGeneration.generateWildCorn(event); + } + if (VeggiewayConfig.LENTIL_ENABLED_VEGGIEWAY.get()) { + VeggiewayWildplantsGeneration.generateWildLentil(event); + } + if (VeggiewayConfig.QUINOA_ENABLED_VEGGIEWAY.get()) { + VeggiewayWildplantsGeneration.generateWildQuinoa(event); + } + if (VeggiewayConfig.SOYBEAN_ENABLED_VEGGIEWAY.get()) { + VeggiewayWildplantsGeneration.generateWildSoybean(event); + } } if (CompatConfig.LOADED_SIMPLEFARMING && CompatConfig.ENABLE_SIMPLEFARMING.get()) { - if (SimpleFarmingConfig.CUMIN_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildCumin(event); } - if (SimpleFarmingConfig.QUINOA_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildQuinoa(event); } - if (SimpleFarmingConfig.SUNFLOWER_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildSunflower(event); } - if (SimpleFarmingConfig.CANTALOUPE_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildCantaloupe(event); } - if (SimpleFarmingConfig.HONEYDEW_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildHoneydew(event); } - if (SimpleFarmingConfig.SQUASH_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildSquash(event); } - if (SimpleFarmingConfig.BARLEY_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildBarley(event); } - if (SimpleFarmingConfig.BROCCOLI_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildBroccoli(event); } - if (SimpleFarmingConfig.CASSAVA_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildCassava(event); } - if (SimpleFarmingConfig.CORN_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildCorn(event); } - if (SimpleFarmingConfig.COTTON_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildCotton(event); } - if (SimpleFarmingConfig.CUCUMBER_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildCucumber(event); } - if (SimpleFarmingConfig.EGGPLANT_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildEggplant(event); } - if (SimpleFarmingConfig.GINGER_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildGinger(event); } - if (SimpleFarmingConfig.GRAPE_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildGrape(event); } - if (SimpleFarmingConfig.KENAF_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildKenaf(event); } - if (SimpleFarmingConfig.LETTUCE_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildLettuce(event); } - if (SimpleFarmingConfig.OAT_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildOat(event); } - if (SimpleFarmingConfig.ONION_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildOnion(event); } - if (SimpleFarmingConfig.PEA_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildPea(event); } - if (SimpleFarmingConfig.PEANUT_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildPeanut(event); } - if (SimpleFarmingConfig.PEPPER_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildPepper(event); } - if (SimpleFarmingConfig.RADISH_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildRadish(event); } - if (SimpleFarmingConfig.RICE_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildRice(event); } - if (SimpleFarmingConfig.RYE_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildRye(event); } - if (SimpleFarmingConfig.SORGHUM_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildSorghum(event); } - if (SimpleFarmingConfig.SOYBEAN_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildSoybean(event); } - if (SimpleFarmingConfig.SPINACH_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildSpinach(event); } - if (SimpleFarmingConfig.SWEETPOTATO_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildSweetpotato(event); } - if (SimpleFarmingConfig.TOMATO_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildTomato(event); } - if (SimpleFarmingConfig.TURNIP_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildTurnip(event); } - if (SimpleFarmingConfig.YAM_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildYam(event); } - if (SimpleFarmingConfig.ZUCCHINI_ENABLED_SIMPLEFARMING.get()) { SimpleFarmingWildplantsGeneration.generateWildZucchini(event); } + if (SimpleFarmingConfig.CUMIN_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildCumin(event); + } + if (SimpleFarmingConfig.QUINOA_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildQuinoa(event); + } + if (SimpleFarmingConfig.SUNFLOWER_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildSunflower(event); + } + if (SimpleFarmingConfig.CANTALOUPE_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildCantaloupe(event); + } + if (SimpleFarmingConfig.HONEYDEW_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildHoneydew(event); + } + if (SimpleFarmingConfig.SQUASH_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildSquash(event); + } + if (SimpleFarmingConfig.BARLEY_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildBarley(event); + } + if (SimpleFarmingConfig.BROCCOLI_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildBroccoli(event); + } + if (SimpleFarmingConfig.CASSAVA_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildCassava(event); + } + if (SimpleFarmingConfig.CORN_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildCorn(event); + } + if (SimpleFarmingConfig.COTTON_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildCotton(event); + } + if (SimpleFarmingConfig.CUCUMBER_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildCucumber(event); + } + if (SimpleFarmingConfig.EGGPLANT_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildEggplant(event); + } + if (SimpleFarmingConfig.GINGER_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildGinger(event); + } + if (SimpleFarmingConfig.GRAPE_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildGrape(event); + } + if (SimpleFarmingConfig.KENAF_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildKenaf(event); + } + if (SimpleFarmingConfig.LETTUCE_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildLettuce(event); + } + if (SimpleFarmingConfig.OAT_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildOat(event); + } + if (SimpleFarmingConfig.ONION_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildOnion(event); + } + if (SimpleFarmingConfig.PEA_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildPea(event); + } + if (SimpleFarmingConfig.PEANUT_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildPeanut(event); + } + if (SimpleFarmingConfig.PEPPER_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildPepper(event); + } + if (SimpleFarmingConfig.RADISH_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildRadish(event); + } + if (SimpleFarmingConfig.RICE_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildRice(event); + } + if (SimpleFarmingConfig.RYE_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildRye(event); + } + if (SimpleFarmingConfig.SORGHUM_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildSorghum(event); + } + if (SimpleFarmingConfig.SOYBEAN_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildSoybean(event); + } + if (SimpleFarmingConfig.SPINACH_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildSpinach(event); + } + if (SimpleFarmingConfig.SWEETPOTATO_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildSweetpotato(event); + } + if (SimpleFarmingConfig.TOMATO_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildTomato(event); + } + if (SimpleFarmingConfig.TURNIP_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildTurnip(event); + } + if (SimpleFarmingConfig.YAM_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildYam(event); + } + if (SimpleFarmingConfig.ZUCCHINI_ENABLED_SIMPLEFARMING.get()) { + SimpleFarmingWildplantsGeneration.generateWildZucchini(event); + } + } + + + if (CompatConfig.LOADED_ENHANCEDFARMING && CompatConfig.ENABLE_ENHANCEDFARMING.get()) { + if (EnhancedFarmingConfig.MINT_ENABLED_ENHANCEDFARMING.get()) { + EnhancedFarmingWildplantsGeneration.generateWildMint(event); + } + if (EnhancedFarmingConfig.TOMATO_ENABLED_ENHANCEDFARMING.get()) { + EnhancedFarmingWildplantsGeneration.generateWildTomato(event); + } + if (EnhancedFarmingConfig.CUCUMBER_ENABLED_ENHANCEDFARMING.get()) { + EnhancedFarmingWildplantsGeneration.generateWildCucumber(event); + } + if (EnhancedFarmingConfig.AUBERGINE_ENABLED_ENHANCEDFARMING.get()) { + EnhancedFarmingWildplantsGeneration.generateWildAubergine(event); + } + if (EnhancedFarmingConfig.GRAPE_ENABLED_ENHANCEDFARMING.get()) { + EnhancedFarmingWildplantsGeneration.generateWildGrape(event); + } + if (EnhancedFarmingConfig.PINEPAPPLE_ENABLED_ENHANCEDFARMING.get()) { + EnhancedFarmingWildplantsGeneration.generateWildPineapple(event); + } + if (EnhancedFarmingConfig.ONION_ENABLED_ENHANCEDFARMING.get()) { + EnhancedFarmingWildplantsGeneration.generateWildOnion(event); + } + if (EnhancedFarmingConfig.GARLIC_ENABLED_ENHANCEDFARMING.get()) { + EnhancedFarmingWildplantsGeneration.generateWildGarlic(event); + } + if (EnhancedFarmingConfig.CORN_ENABLED_ENHANCEDFARMING.get()) { + EnhancedFarmingWildplantsGeneration.generateWildCorn(event); + } + if (EnhancedFarmingConfig.LETTUCE_ENABLED_ENHANCEDFARMING.get()) { + EnhancedFarmingWildplantsGeneration.generateWildLettuce(event); + } } } } diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/enhancedfarming/EnhancedFarmingConfiguredFeatures.java b/src/main/java/wks/wolfkidsounds/wildplants/world/enhancedfarming/EnhancedFarmingConfiguredFeatures.java new file mode 100644 index 0000000..b4ceea4 --- /dev/null +++ b/src/main/java/wks/wolfkidsounds/wildplants/world/enhancedfarming/EnhancedFarmingConfiguredFeatures.java @@ -0,0 +1,151 @@ +package wks.wolfkidsounds.wildplants.world.enhancedfarming; + +import net.minecraft.world.gen.blockplacer.SimpleBlockPlacer; +import net.minecraft.world.gen.blockstateprovider.SimpleBlockStateProvider; +import net.minecraft.world.gen.feature.BlockClusterFeatureConfig; +import net.minecraft.world.gen.feature.ConfiguredFeature; +import net.minecraft.world.gen.feature.Feature; +import net.minecraft.world.gen.feature.Features; +import wks.wolfkidsounds.wildplants.block.ModBlocks; +import wks.wolfkidsounds.wildplants.config.WildplantsConfig; +import wks.wolfkidsounds.wildplants.config.features.enhancedfarming.EnhancedFarmingConfig; + +public class EnhancedFarmingConfiguredFeatures { + + public static Integer GLOBAL_FREQUENCY_ENHANCEDFARMING = WildplantsConfig.GLOBAL_FREQUENCY.get(); + public static Integer GLOBAL_PATCH_SIZE_ENHANCEDFARMING = WildplantsConfig.GLOBAL_PATCH_SIZE.get(); + public static Integer SPREAD_SIZE = WildplantsConfig.GLOBAL_SPREAD_SIZE.get(); + + public static Integer MINT_FREQUENCY_ENHANCEDFARMING = EnhancedFarmingConfig.MINT_FREQUENCY_ENHANCEDFARMING.get() * GLOBAL_FREQUENCY_ENHANCEDFARMING; + public static Integer MINT_PATCH_SIZE_ENHANCEDFARMING = EnhancedFarmingConfig.MINT_PATCH_SIZE_ENHANCEDFARMING.get() * GLOBAL_PATCH_SIZE_ENHANCEDFARMING; + + public static Integer TOMATO_FREQUENCY_ENHANCEDFARMING = EnhancedFarmingConfig.TOMATO_FREQUENCY_ENHANCEDFARMING.get() * GLOBAL_FREQUENCY_ENHANCEDFARMING; + public static Integer TOMATO_PATCH_SIZE_ENHANCEDFARMING = EnhancedFarmingConfig.TOMATO_PATCH_SIZE_ENHANCEDFARMING.get() * GLOBAL_PATCH_SIZE_ENHANCEDFARMING; + + public static Integer CUCUMBER_FREQUENCY_ENHANCEDFARMING = EnhancedFarmingConfig.CUCUMBER_FREQUENCY_ENHANCEDFARMING.get() * GLOBAL_FREQUENCY_ENHANCEDFARMING; + public static Integer CUCUMBER_PATCH_SIZE_ENHANCEDFARMING = EnhancedFarmingConfig.CUCUMBER_PATCH_SIZE_ENHANCEDFARMING.get() * GLOBAL_PATCH_SIZE_ENHANCEDFARMING; + + public static Integer AUBERGINE_FREQUENCY_ENHANCEDFARMING = EnhancedFarmingConfig.AUBERGINE_FREQUENCY_ENHANCEDFARMING.get() * GLOBAL_FREQUENCY_ENHANCEDFARMING; + public static Integer AUBERGINE_PATCH_SIZE_ENHANCEDFARMING = EnhancedFarmingConfig.AUBERGINE_PATCH_SIZE_ENHANCEDFARMING.get() * GLOBAL_PATCH_SIZE_ENHANCEDFARMING; + + public static Integer GRAPE_FREQUENCY_ENHANCEDFARMING = EnhancedFarmingConfig.GRAPE_FREQUENCY_ENHANCEDFARMING.get() * GLOBAL_FREQUENCY_ENHANCEDFARMING; + public static Integer GRAPE_PATCH_SIZE_ENHANCEDFARMING = EnhancedFarmingConfig.GRAPE_PATCH_SIZE_ENHANCEDFARMING.get() * GLOBAL_PATCH_SIZE_ENHANCEDFARMING; + + public static Integer PINEAPPLE_FREQUENCY_ENHANCEDFARMING = EnhancedFarmingConfig.PINEPAPPLE_FREQUENCY_ENHANCEDFARMING.get() * GLOBAL_FREQUENCY_ENHANCEDFARMING; + public static Integer PINEAPPLE_PATCH_SIZE_ENHANCEDFARMING = EnhancedFarmingConfig.PINEPAPPLE_PATCH_SIZE_ENHANCEDFARMING.get() * GLOBAL_PATCH_SIZE_ENHANCEDFARMING; + + public static Integer ONION_FREQUENCY_ENHANCEDFARMING = EnhancedFarmingConfig.ONION_FREQUENCY_ENHANCEDFARMING.get() * GLOBAL_FREQUENCY_ENHANCEDFARMING; + public static Integer ONION_PATCH_SIZE_ENHANCEDFARMING = EnhancedFarmingConfig.ONION_PATCH_SIZE_ENHANCEDFARMING.get() * GLOBAL_PATCH_SIZE_ENHANCEDFARMING; + + public static Integer CORN_FREQUENCY_ENHANCEDFARMING = EnhancedFarmingConfig.CORN_FREQUENCY_ENHANCEDFARMING.get() * GLOBAL_FREQUENCY_ENHANCEDFARMING; + public static Integer CORN_PATCH_SIZE_ENHANCEDFARMING = EnhancedFarmingConfig.CORN_PATCH_SIZE_ENHANCEDFARMING.get() * GLOBAL_PATCH_SIZE_ENHANCEDFARMING; + + public static Integer GARLIC_FREQUENCY_ENHANCEDFARMING = EnhancedFarmingConfig.GARLIC_FREQUENCY_ENHANCEDFARMING.get() * GLOBAL_FREQUENCY_ENHANCEDFARMING; + public static Integer GARLIC_PATCH_SIZE_ENHANCEDFARMING = EnhancedFarmingConfig.GARLIC_PATCH_SIZE_ENHANCEDFARMING.get() * GLOBAL_PATCH_SIZE_ENHANCEDFARMING; + + public static Integer LETTUCE_FREQUENCY_ENHANCEDFARMING = EnhancedFarmingConfig.LETTUCE_FREQUENCY_ENHANCEDFARMING.get() * GLOBAL_FREQUENCY_ENHANCEDFARMING; + public static Integer LETTUCE_PATCH_SIZE_ENHANCEDFARMING = EnhancedFarmingConfig.LETTUCE_PATCH_SIZE_ENHANCEDFARMING.get() * GLOBAL_PATCH_SIZE_ENHANCEDFARMING; + + //----------FEATURE---CONFIGS---------------- + + public static final BlockClusterFeatureConfig ENHANCEDFARMING_WILD_MINT = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.ENHANCEDFARMING_WILD_MINT.get().getDefaultState()), + new SimpleBlockPlacer())).tries(MINT_PATCH_SIZE_ENHANCEDFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig ENHANCEDFARMING_WILD_TOMATO = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.ENHANCEDFARMING_WILD_TOMATO.get().getDefaultState()), + new SimpleBlockPlacer())).tries(TOMATO_PATCH_SIZE_ENHANCEDFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig ENHANCEDFARMING_WILD_CUCUMBER = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.ENHANCEDFARMING_WILD_CUCUMBER.get().getDefaultState()), + new SimpleBlockPlacer())).tries(CUCUMBER_PATCH_SIZE_ENHANCEDFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig ENHANCEDFARMING_WILD_AUBERGINE = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.ENHANCEDFARMING_WILD_AUBERGINE.get().getDefaultState()), + new SimpleBlockPlacer())).tries(AUBERGINE_PATCH_SIZE_ENHANCEDFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig ENHANCEDFARMING_WILD_GRAPE = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.ENHANCEDFARMING_WILD_GRAPE.get().getDefaultState()), + new SimpleBlockPlacer())).tries(GRAPE_PATCH_SIZE_ENHANCEDFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig ENHANCEDFARMING_WILD_PINEAPPLE = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.ENHANCEDFARMING_WILD_PINEAPPLE.get().getDefaultState()), + new SimpleBlockPlacer())).tries(PINEAPPLE_PATCH_SIZE_ENHANCEDFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig ENHANCEDFARMING_WILD_ONION = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.ENHANCEDFARMING_WILD_ONION.get().getDefaultState()), + new SimpleBlockPlacer())).tries(ONION_PATCH_SIZE_ENHANCEDFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig ENHANCEDFARMING_WILD_CORN = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.ENHANCEDFARMING_WILD_CORN.get().getDefaultState()), + new SimpleBlockPlacer())).tries(CORN_PATCH_SIZE_ENHANCEDFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig ENHANCEDFARMING_WILD_GARLIC = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.ENHANCEDFARMING_WILD_GARLIC.get().getDefaultState()), + new SimpleBlockPlacer())).tries(GARLIC_PATCH_SIZE_ENHANCEDFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig ENHANCEDFARMING_WILD_LETTUCE = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.ENHANCEDFARMING_WILD_LETTUCE.get().getDefaultState()), + new SimpleBlockPlacer())).tries(LETTUCE_PATCH_SIZE_ENHANCEDFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + //----------PLACEMENT---CONFIGS---------------- + + public static final ConfiguredFeature ENHANCEDFARMING_WILD_MINT_PATCH = + Feature.FLOWER.withConfiguration(ENHANCEDFARMING_WILD_MINT) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(MINT_FREQUENCY_ENHANCEDFARMING); + + public static final ConfiguredFeature ENHANCEDFARMING_WILD_TOMATO_PATCH = + Feature.FLOWER.withConfiguration(ENHANCEDFARMING_WILD_TOMATO) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(TOMATO_FREQUENCY_ENHANCEDFARMING); + + public static final ConfiguredFeature ENHANCEDFARMING_WILD_CUCUMBER_PATCH = + Feature.FLOWER.withConfiguration(ENHANCEDFARMING_WILD_CUCUMBER) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(CUCUMBER_FREQUENCY_ENHANCEDFARMING); + + public static final ConfiguredFeature ENHANCEDFARMING_WILD_AUBERGINE_PATCH = + Feature.FLOWER.withConfiguration(ENHANCEDFARMING_WILD_AUBERGINE) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(AUBERGINE_FREQUENCY_ENHANCEDFARMING); + + public static final ConfiguredFeature ENHANCEDFARMING_WILD_GRAPE_PATCH = + Feature.FLOWER.withConfiguration(ENHANCEDFARMING_WILD_GRAPE) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(GRAPE_FREQUENCY_ENHANCEDFARMING); + + public static final ConfiguredFeature ENHANCEDFARMING_WILD_PINEAPPLE_PATCH = + Feature.FLOWER.withConfiguration(ENHANCEDFARMING_WILD_PINEAPPLE) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(PINEAPPLE_FREQUENCY_ENHANCEDFARMING); + + public static final ConfiguredFeature ENHANCEDFARMING_WILD_ONION_PATCH = + Feature.FLOWER.withConfiguration(ENHANCEDFARMING_WILD_ONION) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(ONION_FREQUENCY_ENHANCEDFARMING); + + public static final ConfiguredFeature ENHANCEDFARMING_WILD_CORN_PATCH = + Feature.FLOWER.withConfiguration(ENHANCEDFARMING_WILD_CORN) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(CORN_FREQUENCY_ENHANCEDFARMING); + + public static final ConfiguredFeature ENHANCEDFARMING_WILD_GARLIC_PATCH = + Feature.FLOWER.withConfiguration(ENHANCEDFARMING_WILD_GARLIC) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(GARLIC_FREQUENCY_ENHANCEDFARMING); + + public static final ConfiguredFeature ENHANCEDFARMING_WILD_LETTUCE_PATCH = + Feature.FLOWER.withConfiguration(ENHANCEDFARMING_WILD_LETTUCE) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(LETTUCE_FREQUENCY_ENHANCEDFARMING); +} \ No newline at end of file diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/enhancedfarming/EnhancedFarmingWildplantsGeneration.java b/src/main/java/wks/wolfkidsounds/wildplants/world/enhancedfarming/EnhancedFarmingWildplantsGeneration.java new file mode 100644 index 0000000..28fa90b --- /dev/null +++ b/src/main/java/wks/wolfkidsounds/wildplants/world/enhancedfarming/EnhancedFarmingWildplantsGeneration.java @@ -0,0 +1,127 @@ +package wks.wolfkidsounds.wildplants.world.enhancedfarming; + +import net.minecraft.util.RegistryKey; +import net.minecraft.util.registry.Registry; +import net.minecraft.world.biome.Biome; +import net.minecraft.world.gen.GenerationStage; +import net.minecraft.world.gen.feature.ConfiguredFeature; +import net.minecraftforge.common.BiomeDictionary; +import net.minecraftforge.event.world.BiomeLoadingEvent; +import wks.wolfkidsounds.wildplants.config.features.enhancedfarming.EnhancedFarmingConfig; + +import java.util.List; +import java.util.Set; +import java.util.function.Supplier; + +public class EnhancedFarmingWildplantsGeneration { + + public static void generateWildMint(final BiomeLoadingEvent event) { + RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); + Set types = BiomeDictionary.getTypes(key); + + if (types.contains(BiomeDictionary.Type.getType(EnhancedFarmingConfig.MINT_BIOME_TYPE_ENHANCEDFARMING.get()))) { + List>> base = + event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); + base.add(() -> EnhancedFarmingConfiguredFeatures.ENHANCEDFARMING_WILD_MINT_PATCH); + } + } + + public static void generateWildTomato(final BiomeLoadingEvent event) { + RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); + Set types = BiomeDictionary.getTypes(key); + + if (types.contains(BiomeDictionary.Type.getType(EnhancedFarmingConfig.TOMATO_BIOME_TYPE_ENHANCEDFARMING.get()))) { + List>> base = + event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); + base.add(() -> EnhancedFarmingConfiguredFeatures.ENHANCEDFARMING_WILD_TOMATO_PATCH); + } + } + + public static void generateWildCucumber(final BiomeLoadingEvent event) { + RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); + Set types = BiomeDictionary.getTypes(key); + + if (types.contains(BiomeDictionary.Type.getType(EnhancedFarmingConfig.CUCUMBER_BIOME_TYPE_ENHANCEDFARMING.get()))) { + List>> base = + event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); + base.add(() -> EnhancedFarmingConfiguredFeatures.ENHANCEDFARMING_WILD_CUCUMBER_PATCH); + } + } + + public static void generateWildAubergine(final BiomeLoadingEvent event) { + RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); + Set types = BiomeDictionary.getTypes(key); + + if (types.contains(BiomeDictionary.Type.getType(EnhancedFarmingConfig.AUBERGINE_BIOME_TYPE_ENHANCEDFARMING.get()))) { + List>> base = + event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); + base.add(() -> EnhancedFarmingConfiguredFeatures.ENHANCEDFARMING_WILD_AUBERGINE_PATCH); + } + } + + public static void generateWildGrape(final BiomeLoadingEvent event) { + RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); + Set types = BiomeDictionary.getTypes(key); + + if (types.contains(BiomeDictionary.Type.getType(EnhancedFarmingConfig.GRAPE_BIOME_TYPE_ENHANCEDFARMING.get()))) { + List>> base = + event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); + base.add(() -> EnhancedFarmingConfiguredFeatures.ENHANCEDFARMING_WILD_GRAPE_PATCH); + } + } + + public static void generateWildPineapple(final BiomeLoadingEvent event) { + RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); + Set types = BiomeDictionary.getTypes(key); + + if (types.contains(BiomeDictionary.Type.getType(EnhancedFarmingConfig.PINEPAPPLE_BIOME_TYPE_ENHANCEDFARMING.get()))) { + List>> base = + event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); + base.add(() -> EnhancedFarmingConfiguredFeatures.ENHANCEDFARMING_WILD_PINEAPPLE_PATCH); + } + } + + public static void generateWildCorn(final BiomeLoadingEvent event) { + RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); + Set types = BiomeDictionary.getTypes(key); + + if (types.contains(BiomeDictionary.Type.getType(EnhancedFarmingConfig.CORN_BIOME_TYPE_ENHANCEDFARMING.get()))) { + List>> base = + event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); + base.add(() -> EnhancedFarmingConfiguredFeatures.ENHANCEDFARMING_WILD_CORN_PATCH); + } + } + + public static void generateWildOnion(final BiomeLoadingEvent event) { + RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); + Set types = BiomeDictionary.getTypes(key); + + if (types.contains(BiomeDictionary.Type.getType(EnhancedFarmingConfig.ONION_BIOME_TYPE_ENHANCEDFARMING.get()))) { + List>> base = + event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); + base.add(() -> EnhancedFarmingConfiguredFeatures.ENHANCEDFARMING_WILD_ONION_PATCH); + } + } + + public static void generateWildGarlic(final BiomeLoadingEvent event) { + RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); + Set types = BiomeDictionary.getTypes(key); + + if (types.contains(BiomeDictionary.Type.getType(EnhancedFarmingConfig.GARLIC_BIOME_TYPE_ENHANCEDFARMING.get()))) { + List>> base = + event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); + base.add(() -> EnhancedFarmingConfiguredFeatures.ENHANCEDFARMING_WILD_GARLIC_PATCH); + } + } + + public static void generateWildLettuce(final BiomeLoadingEvent event) { + RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); + Set types = BiomeDictionary.getTypes(key); + + if (types.contains(BiomeDictionary.Type.getType(EnhancedFarmingConfig.LETTUCE_BIOME_TYPE_ENHANCEDFARMING.get()))) { + List>> base = + event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); + base.add(() -> EnhancedFarmingConfiguredFeatures.ENHANCEDFARMING_WILD_LETTUCE_PATCH); + } + } +} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftConfiguredFeatures.java b/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftConfiguredFeatures.java index 013baea..fbf1e54 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftConfiguredFeatures.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftConfiguredFeatures.java @@ -2,7 +2,10 @@ import net.minecraft.world.gen.blockplacer.SimpleBlockPlacer; import net.minecraft.world.gen.blockstateprovider.SimpleBlockStateProvider; -import net.minecraft.world.gen.feature.*; +import net.minecraft.world.gen.feature.BlockClusterFeatureConfig; +import net.minecraft.world.gen.feature.ConfiguredFeature; +import net.minecraft.world.gen.feature.Feature; +import net.minecraft.world.gen.feature.Features; import wks.wolfkidsounds.wildplants.block.ModBlocks; import wks.wolfkidsounds.wildplants.config.WildplantsConfig; import wks.wolfkidsounds.wildplants.config.features.harvestcraft.HarvestcraftConfig; @@ -1028,5 +1031,5 @@ public class HarvestcraftConfiguredFeatures { public static final ConfiguredFeature HARVESTCRAFT_WILD_ZUCCHINI_PATCH = Feature.FLOWER.withConfiguration(HARVESTCRAFT_WILD_ZUCCHINI) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(ZUCCHINI_FREQUENCY_HARVESTCRAFT); + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(ZUCCHINI_FREQUENCY_HARVESTCRAFT); } diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftWildplantsGeneration.java b/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftWildplantsGeneration.java index 9d6d42f..92ff4b4 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftWildplantsGeneration.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftWildplantsGeneration.java @@ -19,7 +19,7 @@ public static void generateWildAgave(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.AGAVE_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.AGAVE_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_AGAVE_PATCH); @@ -30,7 +30,7 @@ public static void generateWildAmaranth(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.AMARANTH_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.AMARANTH_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_AMARANTH_PATCH); @@ -41,7 +41,7 @@ public static void generateWildArrowroot(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ARROWROOT_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ARROWROOT_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_ARROWROOT_PATCH); @@ -52,7 +52,7 @@ public static void generateWildArtichoke(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ARTICHOKE_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ARTICHOKE_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_ARTICHOKE_PATCH); @@ -63,7 +63,7 @@ public static void generateWildAsparagus(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ASPARAGUS_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ASPARAGUS_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_ASPARAGUS_PATCH); @@ -74,7 +74,7 @@ public static void generateWildBarley(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BARLEY_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BARLEY_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_BARLEY_PATCH); @@ -85,7 +85,7 @@ public static void generateWildBean(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BEAN_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BEAN_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_BEAN_PATCH); @@ -96,7 +96,7 @@ public static void generateWildBellpepper(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BELLPEPPER_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BELLPEPPER_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_BELLPEPPER_PATCH); @@ -107,7 +107,7 @@ public static void generateWildBlackberry(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BLACKBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BLACKBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_BLACKBERRY_PATCH); @@ -118,7 +118,7 @@ public static void generateWildBlueberry(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BLUEBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BLUEBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_BLUEBERRY_PATCH); @@ -129,7 +129,7 @@ public static void generateWildBroccoli(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BROCCOLI_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BROCCOLI_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_BROCCOLI_PATCH); @@ -140,7 +140,7 @@ public static void generateWildBrusselsprout(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BRUSSELSPROUT_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BRUSSELSPROUT_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_BRUSSELSPROUT_PATCH); @@ -151,7 +151,7 @@ public static void generateWildCabbage(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CABBAGE_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CABBAGE_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CABBAGE_PATCH); @@ -162,7 +162,7 @@ public static void generateWildCactusfruit(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CACTUSFRUIT_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CACTUSFRUIT_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CACTUSFRUIT_PATCH); @@ -173,7 +173,7 @@ public static void generateWildCandleberry(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CANDLEBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CANDLEBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CANDLEBERRY_PATCH); @@ -184,7 +184,7 @@ public static void generateWildCantaloupe(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CANTALOUPE_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CANTALOUPE_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CANTALOUPE_PATCH); @@ -195,7 +195,7 @@ public static void generateWildCassava(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CASSAVA_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CASSAVA_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CASSAVA_PATCH); @@ -206,7 +206,7 @@ public static void generateWildCauliflower(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CAULIFLOWER_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CAULIFLOWER_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CAULIFLOWER_PATCH); @@ -217,7 +217,7 @@ public static void generateWildCelery(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CELERY_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CELERY_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CELERY_PATCH); @@ -228,7 +228,7 @@ public static void generateWildChickpea(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CHICKPEA_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CHICKPEA_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CHICKPEA_PATCH); @@ -239,7 +239,7 @@ public static void generateWildChilipepper(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CHILIPEPPER_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CHILIPEPPER_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CHILIPEPPER_PATCH); @@ -250,7 +250,7 @@ public static void generateWildCoffeebean(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.COFFEEBEAN_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.COFFEEBEAN_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_COFFEEBEAN_PATCH); @@ -261,7 +261,7 @@ public static void generateWildCorn(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CORN_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CORN_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CORN_PATCH); @@ -272,7 +272,7 @@ public static void generateWildCotton(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.COTTON_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.COTTON_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_COTTON_PATCH); @@ -283,7 +283,7 @@ public static void generateWildCranberry(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CRANBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CRANBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CRANBERRY_PATCH); @@ -294,7 +294,7 @@ public static void generateWildCucumber(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CUCUMBER_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CUCUMBER_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CUCUMBER_PATCH); @@ -305,7 +305,7 @@ public static void generateWildEggplant(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.EGGPLANT_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.EGGPLANT_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_EGGPLANT_PATCH); @@ -316,7 +316,7 @@ public static void generateWildElderberry(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ELDERBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ELDERBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_ELDERBERRY_PATCH); @@ -327,7 +327,7 @@ public static void generateWildFlax(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.FLAX_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.FLAX_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_FLAX_PATCH); @@ -338,7 +338,7 @@ public static void generateWildGarlic(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.GARLIC_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.GARLIC_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_GARLIC_PATCH); @@ -349,7 +349,7 @@ public static void generateWildGinger(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.GINGER_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.GINGER_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_GINGER_PATCH); @@ -360,7 +360,7 @@ public static void generateWildGrape(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.GRAPE_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.GRAPE_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_GRAPE_PATCH); @@ -371,7 +371,7 @@ public static void generateWildGreengrape(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.GREENGRAPE_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.GREENGRAPE_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_GREENGRAPE_PATCH); @@ -382,7 +382,7 @@ public static void generateWildHuckleberry(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.HUCKLEBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.HUCKLEBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_HUCKLEBERRY_PATCH); @@ -393,7 +393,7 @@ public static void generateWildJicama(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.JICAMA_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.JICAMA_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_JICAMA_PATCH); @@ -404,7 +404,7 @@ public static void generateWildJuniperberry(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.JUNIPERBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.JUNIPERBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_JUNIPERBERRY_PATCH); @@ -415,7 +415,7 @@ public static void generateWildJute(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.JUTE_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.JUTE_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_JUTE_PATCH); @@ -426,7 +426,7 @@ public static void generateWildKale(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.KALE_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.KALE_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_KALE_PATCH); @@ -437,7 +437,7 @@ public static void generateWildKenaf(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.KENAF_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.KENAF_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_KENAF_PATCH); @@ -448,7 +448,7 @@ public static void generateWildKiwi(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.KIWI_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.KIWI_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_KIWI_PATCH); @@ -459,7 +459,7 @@ public static void generateWildKohlrabi(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.KOHLRABI_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.KOHLRABI_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_KOHLRABI_PATCH); @@ -470,7 +470,7 @@ public static void generateWildLeek(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.LEEK_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.LEEK_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_LEEK_PATCH); @@ -481,7 +481,7 @@ public static void generateWildLentil(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.LENTIL_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.LENTIL_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_LENTIL_PATCH); @@ -492,7 +492,7 @@ public static void generateWildLettuce(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.LETTUCE_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.LETTUCE_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_LETTUCE_PATCH); @@ -503,7 +503,7 @@ public static void generateWildMillet(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.MILLET_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.MILLET_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_MILLET_PATCH); @@ -514,7 +514,7 @@ public static void generateWildMulberry(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.MULBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.MULBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_MULBERRY_PATCH); @@ -525,7 +525,7 @@ public static void generateWildMustardseeds(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.MUSTARDSEEDS_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.MUSTARDSEEDS_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_MUSTARDSEEDS_PATCH); @@ -536,7 +536,7 @@ public static void generateWildOats(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.OATS_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.OATS_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_OATS_PATCH); @@ -547,7 +547,7 @@ public static void generateWildOkra(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.OKRA_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.OKRA_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_OKRA_PATCH); @@ -558,7 +558,7 @@ public static void generateWildOnion(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ONION_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ONION_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_ONION_PATCH); @@ -569,7 +569,7 @@ public static void generateWildParsnip(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.PARSNIP_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.PARSNIP_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_PARSNIP_PATCH); @@ -580,7 +580,7 @@ public static void generateWildPeanut(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.PEANUT_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.PEANUT_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_PEANUT_PATCH); @@ -591,7 +591,7 @@ public static void generateWildPeas(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.PEAS_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.PEAS_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_PEAS_PATCH); @@ -602,7 +602,7 @@ public static void generateWildPineapple(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.PINEAPPLE_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.PINEAPPLE_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_PINEAPPLE_PATCH); @@ -613,7 +613,7 @@ public static void generateWildQuinoa(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.QUINOA_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.QUINOA_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_QUINOA_PATCH); @@ -624,7 +624,7 @@ public static void generateWildRadish(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RADISH_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RADISH_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_RADISH_PATCH); @@ -635,7 +635,7 @@ public static void generateWildRaspberry(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RASPBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RASPBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_RASPBERRY_PATCH); @@ -646,7 +646,7 @@ public static void generateWildRhubarb(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RHUBARB_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RHUBARB_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_RHUBARB_PATCH); @@ -657,7 +657,7 @@ public static void generateWildRice(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RICE_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RICE_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_RICE_PATCH); @@ -668,7 +668,7 @@ public static void generateWildRutabaga(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RUTABAGA_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RUTABAGA_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_RUTABAGA_PATCH); @@ -679,7 +679,7 @@ public static void generateWildRye(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RYE_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RYE_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_RYE_PATCH); @@ -690,7 +690,7 @@ public static void generateWildScallion(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SCALLION_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SCALLION_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_SCALLION_PATCH); @@ -701,7 +701,7 @@ public static void generateWildSesameseeds(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SESAMESEEDS_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SESAMESEEDS_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_SESAMESEEDS_PATCH); @@ -712,7 +712,7 @@ public static void generateWildSisal(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SISAL_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SISAL_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_SISAL_PATCH); @@ -723,7 +723,7 @@ public static void generateWildSoybean(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SOYBEAN_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SOYBEAN_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_SOYBEAN_PATCH); @@ -734,7 +734,7 @@ public static void generateWildSpinach(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SPINACH_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SPINACH_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_SPINACH_PATCH); @@ -745,7 +745,7 @@ public static void generateWildSpiceleaf(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SPICELEAF_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SPICELEAF_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_SPICELEAF_PATCH); @@ -756,7 +756,7 @@ public static void generateWildStrawberry(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.STRAWBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.STRAWBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_STRAWBERRY_PATCH); @@ -767,7 +767,7 @@ public static void generateWildSweetpotato(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SWEETPOTATO_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SWEETPOTATO_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_SWEETPOTATO_PATCH); @@ -778,7 +778,7 @@ public static void generateWildTaro(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.TARO_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.TARO_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_TARO_PATCH); @@ -789,7 +789,7 @@ public static void generateWildTealeaf(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.TEALEAF_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.TEALEAF_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_TEALEAF_PATCH); @@ -800,7 +800,7 @@ public static void generateWildTomatillo(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.TOMATILLO_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.TOMATILLO_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_TOMATILLO_PATCH); @@ -811,7 +811,7 @@ public static void generateWildTomato(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.TOMATO_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.TOMATO_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_TOMATO_PATCH); @@ -822,7 +822,7 @@ public static void generateWildTurnip(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.TURNIP_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.TURNIP_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_TURNIP_PATCH); @@ -833,7 +833,7 @@ public static void generateWildWaterchestnut(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.WATERCHESTNUT_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.WATERCHESTNUT_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_WATERCHESTNUT_PATCH); @@ -844,7 +844,7 @@ public static void generateWildWhitemushroom(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.WHITEMUSHROOM_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.WHITEMUSHROOM_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_WHITEMUSHROOM_PATCH); @@ -855,7 +855,7 @@ public static void generateWildWintersquash(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.WINTERSQUASH_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.WINTERSQUASH_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_WINTERSQUASH_PATCH); @@ -866,7 +866,7 @@ public static void generateWildZucchini(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ZUCCHINI_BIOME_TYPE_HARVESTCRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ZUCCHINI_BIOME_TYPE_HARVESTCRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_ZUCCHINI_PATCH); diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringConfiguredFeatures.java b/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringConfiguredFeatures.java index 4d4f2e9..9a88f8f 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringConfiguredFeatures.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringConfiguredFeatures.java @@ -2,7 +2,10 @@ import net.minecraft.world.gen.blockplacer.SimpleBlockPlacer; import net.minecraft.world.gen.blockstateprovider.SimpleBlockStateProvider; -import net.minecraft.world.gen.feature.*; +import net.minecraft.world.gen.feature.BlockClusterFeatureConfig; +import net.minecraft.world.gen.feature.ConfiguredFeature; +import net.minecraft.world.gen.feature.Feature; +import net.minecraft.world.gen.feature.Features; import wks.wolfkidsounds.wildplants.block.ModBlocks; import wks.wolfkidsounds.wildplants.config.WildplantsConfig; import wks.wolfkidsounds.wildplants.config.features.immersiveengineering.ImmersiveEngineeringConfig; diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringWildplantsGeneration.java b/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringWildplantsGeneration.java index 2832e66..cb7b01d 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringWildplantsGeneration.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringWildplantsGeneration.java @@ -19,7 +19,7 @@ public static void generateWildHemp(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(ImmersiveEngineeringConfig.HEMP_BIOME_TYPE_IMMERSIVEENINEERING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(ImmersiveEngineeringConfig.HEMP_BIOME_TYPE_IMMERSIVEENINEERING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> ImmersiveEngineeringConfiguredFeatures.IMMERSIVEENGINEERING_WILD_HEMP_PATCH); } diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftConfiguredFeatures.java b/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftConfiguredFeatures.java index 4335bd7..03e623d 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftConfiguredFeatures.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftConfiguredFeatures.java @@ -2,7 +2,10 @@ import net.minecraft.world.gen.blockplacer.SimpleBlockPlacer; import net.minecraft.world.gen.blockstateprovider.SimpleBlockStateProvider; -import net.minecraft.world.gen.feature.*; +import net.minecraft.world.gen.feature.BlockClusterFeatureConfig; +import net.minecraft.world.gen.feature.ConfiguredFeature; +import net.minecraft.world.gen.feature.Feature; +import net.minecraft.world.gen.feature.Features; import wks.wolfkidsounds.wildplants.block.ModBlocks; import wks.wolfkidsounds.wildplants.config.WildplantsConfig; import wks.wolfkidsounds.wildplants.config.features.minecraft.MinecraftConfig; @@ -29,8 +32,8 @@ public class MinecraftConfiguredFeatures { public static final BlockClusterFeatureConfig MINECRAFT_WILD_WHEAT_CONFIG = ( new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.MINECRAFT_WILD_WHEAT.get().getDefaultState()), - new SimpleBlockPlacer())).tries(WHEAT_PATCH_SIZE_MINECRAFT).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + new SimpleBlockStateProvider(ModBlocks.MINECRAFT_WILD_WHEAT.get().getDefaultState()), + new SimpleBlockPlacer())).tries(WHEAT_PATCH_SIZE_MINECRAFT).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); public static final BlockClusterFeatureConfig MINECRAFT_WILD_CARROTS_CONFIG = ( new BlockClusterFeatureConfig.Builder( @@ -51,7 +54,7 @@ public class MinecraftConfiguredFeatures { public static final ConfiguredFeature MINECRAFT_WILD_WHEAT_PATCH = Feature.FLOWER.withConfiguration(MINECRAFT_WILD_WHEAT_CONFIG) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(WHEAT_FREQUENCY_MINECRAFT); + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(WHEAT_FREQUENCY_MINECRAFT); public static final ConfiguredFeature MINECRAFT_WILD_CARROTS_PATCH = Feature.FLOWER.withConfiguration(MINECRAFT_WILD_CARROTS_CONFIG) diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftWildplantsGeneration.java b/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftWildplantsGeneration.java index 19f17d8..82e2847 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftWildplantsGeneration.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftWildplantsGeneration.java @@ -19,7 +19,7 @@ public static void generateWildWheat(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(MinecraftConfig.WHEAT_BIOME_TYPE_MINECRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(MinecraftConfig.WHEAT_BIOME_TYPE_MINECRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> MinecraftConfiguredFeatures.MINECRAFT_WILD_WHEAT_PATCH); } @@ -29,7 +29,7 @@ public static void generateWildCarrots(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(MinecraftConfig.CARROTS_BIOME_TYPE_MINECRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(MinecraftConfig.CARROTS_BIOME_TYPE_MINECRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> MinecraftConfiguredFeatures.MINECRAFT_WILD_CARROTS_PATCH); } @@ -39,7 +39,7 @@ public static void generateWildPotatoes(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(MinecraftConfig.POTATOES_BIOME_TYPE_MINECRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(MinecraftConfig.POTATOES_BIOME_TYPE_MINECRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> MinecraftConfiguredFeatures.MINECRAFT_WILD_POTATOES_PATCH); @@ -50,7 +50,7 @@ public static void generateWildBeetroots(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(MinecraftConfig.BEETROOTS_BIOME_TYPE_MINECRAFT.get()))) { + if (types.contains(BiomeDictionary.Type.getType(MinecraftConfig.BEETROOTS_BIOME_TYPE_MINECRAFT.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> MinecraftConfiguredFeatures.MINECRAFT_WILD_BEETROOTS_PATCH); diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/simplefarming/SimpleFarmingConfiguredFeatures.java b/src/main/java/wks/wolfkidsounds/wildplants/world/simplefarming/SimpleFarmingConfiguredFeatures.java index d3e7b21..1d5f23e 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/simplefarming/SimpleFarmingConfiguredFeatures.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/world/simplefarming/SimpleFarmingConfiguredFeatures.java @@ -11,440 +11,440 @@ import wks.wolfkidsounds.wildplants.config.features.simplefarming.SimpleFarmingConfig; public class SimpleFarmingConfiguredFeatures { - public static Integer GLOBAL_FREQUENCY_SIMPLEFARMING = WildplantsConfig.GLOBAL_FREQUENCY.get(); - public static Integer GLOBAL_PATCH_SIZE_SIMPLEFARMING = WildplantsConfig.GLOBAL_PATCH_SIZE.get(); - public static Integer SPREAD_SIZE = WildplantsConfig.GLOBAL_SPREAD_SIZE.get(); - - public static Integer CUMIN_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.CUMIN_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer CUMIN_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.CUMIN_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer QUINOA_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.QUINOA_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer QUINOA_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.QUINOA_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer SUNFLOWER_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.SUNFLOWER_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer SUNFLOWER_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.SUNFLOWER_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer CANTALOUPE_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.CANTALOUPE_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer CANTALOUPE_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.CANTALOUPE_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer HONEYDEW_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.HONEYDEW_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer HONEYDEW_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.HONEYDEW_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer SQUASH_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.SQUASH_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer SQUASH_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.SQUASH_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer BARLEY_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.BARLEY_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer BARLEY_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.BARLEY_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer BROCCOLI_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.BROCCOLI_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer BROCCOLI_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.BROCCOLI_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer CASSAVA_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.CASSAVA_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer CASSAVA_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.CASSAVA_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer CORN_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.CORN_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer CORN_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.CORN_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer COTTON_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.COTTON_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer COTTON_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.COTTON_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer CUCUMBER_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.CUCUMBER_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer CUCUMBER_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.CUCUMBER_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer EGGPLANT_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.EGGPLANT_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer EGGPLANT_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.EGGPLANT_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer GINGER_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.GINGER_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer GINGER_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.GINGER_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer GRAPE_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.GRAPE_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer GRAPE_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.GRAPE_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer KENAF_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.KENAF_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer KENAF_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.KENAF_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer LETTUCE_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.LETTUCE_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer LETTUCE_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.LETTUCE_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer OAT_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.OAT_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer OAT_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.OAT_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer ONION_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.ONION_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer ONION_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.ONION_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer PEA_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.PEA_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer PEA_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.PEA_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer PEANUT_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.PEANUT_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer PEANUT_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.PEANUT_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer PEPPER_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.PEPPER_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer PEPPER_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.PEPPER_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer RADISH_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.RADISH_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer RADISH_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.RADISH_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer RICE_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.RICE_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer RICE_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.RICE_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer RYE_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.RYE_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer RYE_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.RYE_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer SORGHUM_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.SORGHUM_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer SORGHUM_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.SORGHUM_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer SOYBEAN_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.SOYBEAN_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer SOYBEAN_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.SOYBEAN_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer SPINACH_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.SPINACH_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer SPINACH_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.SPINACH_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer SWEETPOTATO_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.SWEETPOTATO_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer SWEETPOTATO_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.SWEETPOTATO_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer TOMATO_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.TOMATO_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer TOMATO_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.TOMATO_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer TURNIP_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.TURNIP_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer TURNIP_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.TURNIP_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer YAM_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.YAM_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer YAM_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.YAM_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - public static Integer ZUCCHINI_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.ZUCCHINI_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; - public static Integer ZUCCHINI_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.ZUCCHINI_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; - - - //----------FEATURE---CONFIGS---------------- - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_CUMIN = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_CUMIN.get().getDefaultState()), - new SimpleBlockPlacer())).tries(CUMIN_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_QUINOA = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_QUINOA.get().getDefaultState()), - new SimpleBlockPlacer())).tries(QUINOA_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_SUNFLOWER = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_SUNFLOWER.get().getDefaultState()), - new SimpleBlockPlacer())).tries(SUNFLOWER_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_CANTALOUPE = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_CANTALOUPE.get().getDefaultState()), - new SimpleBlockPlacer())).tries(CANTALOUPE_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_HONEYDEW = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_HONEYDEW.get().getDefaultState()), - new SimpleBlockPlacer())).tries(HONEYDEW_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_SQUASH = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_SQUASH.get().getDefaultState()), - new SimpleBlockPlacer())).tries(SQUASH_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_BARLEY = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_BARLEY.get().getDefaultState()), - new SimpleBlockPlacer())).tries(BARLEY_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_BROCCOLI = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_BROCCOLI.get().getDefaultState()), - new SimpleBlockPlacer())).tries(BROCCOLI_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_CASSAVA = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_CASSAVA.get().getDefaultState()), - new SimpleBlockPlacer())).tries(CASSAVA_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_CORN = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_CORN.get().getDefaultState()), - new SimpleBlockPlacer())).tries(CORN_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_COTTON = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_COTTON.get().getDefaultState()), - new SimpleBlockPlacer())).tries(COTTON_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_CUCUMBER = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_CUCUMBER.get().getDefaultState()), - new SimpleBlockPlacer())).tries(CUCUMBER_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_EGGPLANT = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_EGGPLANT.get().getDefaultState()), - new SimpleBlockPlacer())).tries(EGGPLANT_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_GINGER = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_GINGER.get().getDefaultState()), - new SimpleBlockPlacer())).tries(GINGER_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_GRAPE = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_GRAPE.get().getDefaultState()), - new SimpleBlockPlacer())).tries(GRAPE_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_KENAF = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_KENAF.get().getDefaultState()), - new SimpleBlockPlacer())).tries(KENAF_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_LETTUCE = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_LETTUCE.get().getDefaultState()), - new SimpleBlockPlacer())).tries(LETTUCE_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_OAT = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_OAT.get().getDefaultState()), - new SimpleBlockPlacer())).tries(OAT_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_ONION = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_ONION.get().getDefaultState()), - new SimpleBlockPlacer())).tries(ONION_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_PEA = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_PEA.get().getDefaultState()), - new SimpleBlockPlacer())).tries(PEA_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_PEANUT = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_PEANUT.get().getDefaultState()), - new SimpleBlockPlacer())).tries(PEANUT_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_PEPPER = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_PEPPER.get().getDefaultState()), - new SimpleBlockPlacer())).tries(PEPPER_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_RADISH = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_RADISH.get().getDefaultState()), - new SimpleBlockPlacer())).tries(RADISH_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_RICE = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_RICE.get().getDefaultState()), - new SimpleBlockPlacer())).tries(RICE_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_RYE = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_RYE.get().getDefaultState()), - new SimpleBlockPlacer())).tries(RYE_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_SORGHUM = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_SORGHUM.get().getDefaultState()), - new SimpleBlockPlacer())).tries(SORGHUM_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_SOYBEAN = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_SOYBEAN.get().getDefaultState()), - new SimpleBlockPlacer())).tries(SOYBEAN_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_SPINACH = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_SPINACH.get().getDefaultState()), - new SimpleBlockPlacer())).tries(SPINACH_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_SWEETPOTATO = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_SWEETPOTATO.get().getDefaultState()), - new SimpleBlockPlacer())).tries(SWEETPOTATO_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_TOMATO = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_TOMATO.get().getDefaultState()), - new SimpleBlockPlacer())).tries(TOMATO_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_TURNIP = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_TURNIP.get().getDefaultState()), - new SimpleBlockPlacer())).tries(TURNIP_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_YAM = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_YAM.get().getDefaultState()), - new SimpleBlockPlacer())).tries(YAM_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - - public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_ZUCCHINI = ( - new BlockClusterFeatureConfig.Builder( - new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_ZUCCHINI.get().getDefaultState()), - new SimpleBlockPlacer())).tries(ZUCCHINI_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); - - //----------PLACEMENT---CONFIGS---------------- - - public static final ConfiguredFeature SIMPLEFARMING_WILD_CUMIN_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_CUMIN) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(CUMIN_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_QUINOA_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_QUINOA) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(QUINOA_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_SUNFLOWER_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_SUNFLOWER) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(SUNFLOWER_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_CANTALOUPE_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_CANTALOUPE) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(CANTALOUPE_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_HONEYDEW_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_HONEYDEW) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(HONEYDEW_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_SQUASH_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_SQUASH) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(SQUASH_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_BARLEY_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_BARLEY) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(BARLEY_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_BROCCOLI_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_BROCCOLI) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(BROCCOLI_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_CASSAVA_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_CASSAVA) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(CASSAVA_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_CORN_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_CORN) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(CORN_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_COTTON_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_COTTON) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(COTTON_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_CUCUMBER_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_CUCUMBER) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(CUCUMBER_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_EGGPLANT_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_EGGPLANT) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(EGGPLANT_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_GINGER_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_GINGER) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(GINGER_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_GRAPE_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_GRAPE) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(GRAPE_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_KENAF_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_KENAF) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(KENAF_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_LETTUCE_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_LETTUCE) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(LETTUCE_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_OAT_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_OAT) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(OAT_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_ONION_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_ONION) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(ONION_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_PEA_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_PEA) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(PEA_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_PEANUT_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_PEANUT) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(PEANUT_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_PEPPER_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_PEPPER) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(PEPPER_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_RADISH_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_RADISH) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(RADISH_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_RICE_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_RICE) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(RICE_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_RYE_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_RYE) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(RYE_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_SORGHUM_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_SORGHUM) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(SORGHUM_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_SOYBEAN_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_SOYBEAN) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(SOYBEAN_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_SPINACH_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_SPINACH) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(SPINACH_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_SWEETPOTATO_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_SWEETPOTATO) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(SWEETPOTATO_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_TOMATO_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_TOMATO) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(TOMATO_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_TURNIP_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_TURNIP) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(TURNIP_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_YAM_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_YAM) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(YAM_FREQUENCY_SIMPLEFARMING); - - public static final ConfiguredFeature SIMPLEFARMING_WILD_ZUCCHINI_PATCH = - Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_ZUCCHINI) - .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(ZUCCHINI_FREQUENCY_SIMPLEFARMING); + public static Integer GLOBAL_FREQUENCY_SIMPLEFARMING = WildplantsConfig.GLOBAL_FREQUENCY.get(); + public static Integer GLOBAL_PATCH_SIZE_SIMPLEFARMING = WildplantsConfig.GLOBAL_PATCH_SIZE.get(); + public static Integer SPREAD_SIZE = WildplantsConfig.GLOBAL_SPREAD_SIZE.get(); + + public static Integer CUMIN_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.CUMIN_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer CUMIN_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.CUMIN_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer QUINOA_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.QUINOA_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer QUINOA_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.QUINOA_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer SUNFLOWER_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.SUNFLOWER_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer SUNFLOWER_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.SUNFLOWER_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer CANTALOUPE_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.CANTALOUPE_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer CANTALOUPE_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.CANTALOUPE_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer HONEYDEW_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.HONEYDEW_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer HONEYDEW_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.HONEYDEW_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer SQUASH_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.SQUASH_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer SQUASH_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.SQUASH_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer BARLEY_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.BARLEY_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer BARLEY_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.BARLEY_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer BROCCOLI_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.BROCCOLI_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer BROCCOLI_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.BROCCOLI_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer CASSAVA_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.CASSAVA_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer CASSAVA_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.CASSAVA_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer CORN_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.CORN_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer CORN_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.CORN_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer COTTON_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.COTTON_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer COTTON_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.COTTON_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer CUCUMBER_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.CUCUMBER_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer CUCUMBER_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.CUCUMBER_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer EGGPLANT_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.EGGPLANT_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer EGGPLANT_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.EGGPLANT_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer GINGER_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.GINGER_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer GINGER_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.GINGER_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer GRAPE_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.GRAPE_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer GRAPE_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.GRAPE_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer KENAF_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.KENAF_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer KENAF_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.KENAF_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer LETTUCE_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.LETTUCE_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer LETTUCE_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.LETTUCE_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer OAT_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.OAT_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer OAT_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.OAT_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer ONION_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.ONION_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer ONION_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.ONION_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer PEA_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.PEA_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer PEA_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.PEA_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer PEANUT_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.PEANUT_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer PEANUT_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.PEANUT_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer PEPPER_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.PEPPER_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer PEPPER_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.PEPPER_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer RADISH_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.RADISH_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer RADISH_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.RADISH_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer RICE_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.RICE_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer RICE_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.RICE_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer RYE_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.RYE_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer RYE_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.RYE_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer SORGHUM_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.SORGHUM_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer SORGHUM_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.SORGHUM_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer SOYBEAN_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.SOYBEAN_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer SOYBEAN_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.SOYBEAN_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer SPINACH_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.SPINACH_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer SPINACH_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.SPINACH_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer SWEETPOTATO_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.SWEETPOTATO_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer SWEETPOTATO_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.SWEETPOTATO_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer TOMATO_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.TOMATO_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer TOMATO_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.TOMATO_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer TURNIP_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.TURNIP_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer TURNIP_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.TURNIP_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer YAM_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.YAM_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer YAM_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.YAM_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + public static Integer ZUCCHINI_FREQUENCY_SIMPLEFARMING = SimpleFarmingConfig.ZUCCHINI_FREQUENCY_SIMPLEFARMING.get() * GLOBAL_FREQUENCY_SIMPLEFARMING; + public static Integer ZUCCHINI_PATCH_SIZE_SIMPLEFARMING = SimpleFarmingConfig.ZUCCHINI_PATCH_SIZE_SIMPLEFARMING.get() * GLOBAL_PATCH_SIZE_SIMPLEFARMING; + + + //----------FEATURE---CONFIGS---------------- + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_CUMIN = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_CUMIN.get().getDefaultState()), + new SimpleBlockPlacer())).tries(CUMIN_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_QUINOA = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_QUINOA.get().getDefaultState()), + new SimpleBlockPlacer())).tries(QUINOA_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_SUNFLOWER = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_SUNFLOWER.get().getDefaultState()), + new SimpleBlockPlacer())).tries(SUNFLOWER_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_CANTALOUPE = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_CANTALOUPE.get().getDefaultState()), + new SimpleBlockPlacer())).tries(CANTALOUPE_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_HONEYDEW = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_HONEYDEW.get().getDefaultState()), + new SimpleBlockPlacer())).tries(HONEYDEW_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_SQUASH = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_SQUASH.get().getDefaultState()), + new SimpleBlockPlacer())).tries(SQUASH_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_BARLEY = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_BARLEY.get().getDefaultState()), + new SimpleBlockPlacer())).tries(BARLEY_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_BROCCOLI = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_BROCCOLI.get().getDefaultState()), + new SimpleBlockPlacer())).tries(BROCCOLI_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_CASSAVA = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_CASSAVA.get().getDefaultState()), + new SimpleBlockPlacer())).tries(CASSAVA_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_CORN = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_CORN.get().getDefaultState()), + new SimpleBlockPlacer())).tries(CORN_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_COTTON = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_COTTON.get().getDefaultState()), + new SimpleBlockPlacer())).tries(COTTON_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_CUCUMBER = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_CUCUMBER.get().getDefaultState()), + new SimpleBlockPlacer())).tries(CUCUMBER_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_EGGPLANT = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_EGGPLANT.get().getDefaultState()), + new SimpleBlockPlacer())).tries(EGGPLANT_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_GINGER = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_GINGER.get().getDefaultState()), + new SimpleBlockPlacer())).tries(GINGER_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_GRAPE = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_GRAPE.get().getDefaultState()), + new SimpleBlockPlacer())).tries(GRAPE_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_KENAF = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_KENAF.get().getDefaultState()), + new SimpleBlockPlacer())).tries(KENAF_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_LETTUCE = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_LETTUCE.get().getDefaultState()), + new SimpleBlockPlacer())).tries(LETTUCE_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_OAT = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_OAT.get().getDefaultState()), + new SimpleBlockPlacer())).tries(OAT_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_ONION = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_ONION.get().getDefaultState()), + new SimpleBlockPlacer())).tries(ONION_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_PEA = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_PEA.get().getDefaultState()), + new SimpleBlockPlacer())).tries(PEA_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_PEANUT = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_PEANUT.get().getDefaultState()), + new SimpleBlockPlacer())).tries(PEANUT_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_PEPPER = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_PEPPER.get().getDefaultState()), + new SimpleBlockPlacer())).tries(PEPPER_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_RADISH = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_RADISH.get().getDefaultState()), + new SimpleBlockPlacer())).tries(RADISH_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_RICE = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_RICE.get().getDefaultState()), + new SimpleBlockPlacer())).tries(RICE_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_RYE = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_RYE.get().getDefaultState()), + new SimpleBlockPlacer())).tries(RYE_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_SORGHUM = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_SORGHUM.get().getDefaultState()), + new SimpleBlockPlacer())).tries(SORGHUM_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_SOYBEAN = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_SOYBEAN.get().getDefaultState()), + new SimpleBlockPlacer())).tries(SOYBEAN_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_SPINACH = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_SPINACH.get().getDefaultState()), + new SimpleBlockPlacer())).tries(SPINACH_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_SWEETPOTATO = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_SWEETPOTATO.get().getDefaultState()), + new SimpleBlockPlacer())).tries(SWEETPOTATO_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_TOMATO = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_TOMATO.get().getDefaultState()), + new SimpleBlockPlacer())).tries(TOMATO_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_TURNIP = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_TURNIP.get().getDefaultState()), + new SimpleBlockPlacer())).tries(TURNIP_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_YAM = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_YAM.get().getDefaultState()), + new SimpleBlockPlacer())).tries(YAM_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + + public static final BlockClusterFeatureConfig SIMPLEFARMING_WILD_ZUCCHINI = ( + new BlockClusterFeatureConfig.Builder( + new SimpleBlockStateProvider(ModBlocks.SIMPLEFARMING_WILD_ZUCCHINI.get().getDefaultState()), + new SimpleBlockPlacer())).tries(ZUCCHINI_PATCH_SIZE_SIMPLEFARMING).xSpread(SPREAD_SIZE).zSpread(SPREAD_SIZE).build(); + + //----------PLACEMENT---CONFIGS---------------- + + public static final ConfiguredFeature SIMPLEFARMING_WILD_CUMIN_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_CUMIN) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(CUMIN_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_QUINOA_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_QUINOA) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(QUINOA_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_SUNFLOWER_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_SUNFLOWER) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(SUNFLOWER_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_CANTALOUPE_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_CANTALOUPE) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(CANTALOUPE_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_HONEYDEW_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_HONEYDEW) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(HONEYDEW_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_SQUASH_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_SQUASH) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(SQUASH_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_BARLEY_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_BARLEY) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(BARLEY_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_BROCCOLI_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_BROCCOLI) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(BROCCOLI_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_CASSAVA_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_CASSAVA) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(CASSAVA_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_CORN_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_CORN) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(CORN_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_COTTON_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_COTTON) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(COTTON_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_CUCUMBER_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_CUCUMBER) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(CUCUMBER_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_EGGPLANT_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_EGGPLANT) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(EGGPLANT_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_GINGER_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_GINGER) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(GINGER_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_GRAPE_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_GRAPE) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(GRAPE_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_KENAF_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_KENAF) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(KENAF_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_LETTUCE_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_LETTUCE) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(LETTUCE_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_OAT_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_OAT) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(OAT_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_ONION_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_ONION) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(ONION_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_PEA_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_PEA) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(PEA_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_PEANUT_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_PEANUT) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(PEANUT_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_PEPPER_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_PEPPER) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(PEPPER_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_RADISH_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_RADISH) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(RADISH_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_RICE_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_RICE) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(RICE_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_RYE_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_RYE) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(RYE_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_SORGHUM_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_SORGHUM) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(SORGHUM_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_SOYBEAN_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_SOYBEAN) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(SOYBEAN_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_SPINACH_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_SPINACH) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(SPINACH_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_SWEETPOTATO_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_SWEETPOTATO) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(SWEETPOTATO_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_TOMATO_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_TOMATO) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(TOMATO_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_TURNIP_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_TURNIP) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(TURNIP_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_YAM_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_YAM) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(YAM_FREQUENCY_SIMPLEFARMING); + + public static final ConfiguredFeature SIMPLEFARMING_WILD_ZUCCHINI_PATCH = + Feature.FLOWER.withConfiguration(SIMPLEFARMING_WILD_ZUCCHINI) + .withPlacement(Features.Placements.PATCH_PLACEMENT.square()).chance(ZUCCHINI_FREQUENCY_SIMPLEFARMING); } \ No newline at end of file diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/simplefarming/SimpleFarmingWildplantsGeneration.java b/src/main/java/wks/wolfkidsounds/wildplants/world/simplefarming/SimpleFarmingWildplantsGeneration.java index d8c1cc9..5c8ce38 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/simplefarming/SimpleFarmingWildplantsGeneration.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/world/simplefarming/SimpleFarmingWildplantsGeneration.java @@ -19,7 +19,7 @@ public static void generateWildCumin(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.CUMIN_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.CUMIN_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_CUMIN_PATCH); @@ -30,7 +30,7 @@ public static void generateWildQuinoa(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.QUINOA_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.QUINOA_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_QUINOA_PATCH); @@ -41,7 +41,7 @@ public static void generateWildSunflower(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.SUNFLOWER_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.SUNFLOWER_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_SUNFLOWER_PATCH); @@ -52,7 +52,7 @@ public static void generateWildCantaloupe(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.CANTALOUPE_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.CANTALOUPE_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_CANTALOUPE_PATCH); @@ -63,7 +63,7 @@ public static void generateWildHoneydew(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.HONEYDEW_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.HONEYDEW_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_HONEYDEW_PATCH); @@ -74,7 +74,7 @@ public static void generateWildSquash(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.SQUASH_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.SQUASH_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_SQUASH_PATCH); @@ -85,7 +85,7 @@ public static void generateWildBarley(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.BARLEY_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.BARLEY_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_BARLEY_PATCH); @@ -96,7 +96,7 @@ public static void generateWildBroccoli(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.BROCCOLI_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.BROCCOLI_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_BROCCOLI_PATCH); @@ -107,7 +107,7 @@ public static void generateWildCassava(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.CASSAVA_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.CASSAVA_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_CASSAVA_PATCH); @@ -118,7 +118,7 @@ public static void generateWildCorn(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.CORN_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.CORN_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_CORN_PATCH); @@ -129,7 +129,7 @@ public static void generateWildCotton(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.COTTON_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.COTTON_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_COTTON_PATCH); @@ -140,7 +140,7 @@ public static void generateWildCucumber(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.CUCUMBER_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.CUCUMBER_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_CUCUMBER_PATCH); @@ -151,7 +151,7 @@ public static void generateWildEggplant(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.EGGPLANT_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.EGGPLANT_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_EGGPLANT_PATCH); @@ -162,7 +162,7 @@ public static void generateWildGinger(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.GINGER_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.GINGER_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_GINGER_PATCH); @@ -173,7 +173,7 @@ public static void generateWildGrape(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.GRAPE_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.GRAPE_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_GRAPE_PATCH); @@ -184,7 +184,7 @@ public static void generateWildKenaf(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.KENAF_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.KENAF_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_KENAF_PATCH); @@ -195,7 +195,7 @@ public static void generateWildLettuce(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.LETTUCE_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.LETTUCE_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_LETTUCE_PATCH); @@ -206,7 +206,7 @@ public static void generateWildOat(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.OAT_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.OAT_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_OAT_PATCH); @@ -217,7 +217,7 @@ public static void generateWildOnion(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.ONION_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.ONION_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_ONION_PATCH); @@ -228,7 +228,7 @@ public static void generateWildPea(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.PEA_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.PEA_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_PEA_PATCH); @@ -239,7 +239,7 @@ public static void generateWildPeanut(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.PEANUT_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.PEANUT_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_PEANUT_PATCH); @@ -250,7 +250,7 @@ public static void generateWildPepper(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.PEPPER_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.PEPPER_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_PEPPER_PATCH); @@ -261,7 +261,7 @@ public static void generateWildRadish(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.RADISH_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.RADISH_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_RADISH_PATCH); @@ -272,7 +272,7 @@ public static void generateWildRice(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.RICE_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.RICE_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_RICE_PATCH); @@ -283,7 +283,7 @@ public static void generateWildRye(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.RYE_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.RYE_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_RYE_PATCH); @@ -294,7 +294,7 @@ public static void generateWildSorghum(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.SORGHUM_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.SORGHUM_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_SORGHUM_PATCH); @@ -305,7 +305,7 @@ public static void generateWildSoybean(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.SOYBEAN_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.SOYBEAN_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_SOYBEAN_PATCH); @@ -316,7 +316,7 @@ public static void generateWildSpinach(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.SPINACH_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.SPINACH_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_SPINACH_PATCH); @@ -327,7 +327,7 @@ public static void generateWildSweetpotato(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.SWEETPOTATO_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.SWEETPOTATO_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_SWEETPOTATO_PATCH); @@ -338,7 +338,7 @@ public static void generateWildTomato(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.TOMATO_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.TOMATO_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_TOMATO_PATCH); @@ -350,7 +350,7 @@ public static void generateWildTurnip(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.TURNIP_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.TURNIP_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_TURNIP_PATCH); @@ -361,7 +361,7 @@ public static void generateWildYam(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.YAM_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.YAM_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_YAM_PATCH); @@ -372,7 +372,7 @@ public static void generateWildZucchini(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.ZUCCHINI_BIOME_TYPE_SIMPLEFARMING.get()))) { + if (types.contains(BiomeDictionary.Type.getType(SimpleFarmingConfig.ZUCCHINI_BIOME_TYPE_SIMPLEFARMING.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> SimpleFarmingConfiguredFeatures.SIMPLEFARMING_WILD_ZUCCHINI_PATCH); diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/veggieway/VeggiewayWildplantsGeneration.java b/src/main/java/wks/wolfkidsounds/wildplants/world/veggieway/VeggiewayWildplantsGeneration.java index 48914ff..733ea3e 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/veggieway/VeggiewayWildplantsGeneration.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/world/veggieway/VeggiewayWildplantsGeneration.java @@ -19,7 +19,7 @@ public static void generateWildCorn(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(VeggiewayConfig.CORN_BIOME_TYPE_VEGGIEWAY.get()))) { + if (types.contains(BiomeDictionary.Type.getType(VeggiewayConfig.CORN_BIOME_TYPE_VEGGIEWAY.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> VeggiewayConfiguredFeatures.VEGGIEWAY_WILD_CORN_PATCH); } @@ -29,7 +29,7 @@ public static void generateWildLentil(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(VeggiewayConfig.LENTIL_BIOME_TYPE_VEGGIEWAY.get()))) { + if (types.contains(BiomeDictionary.Type.getType(VeggiewayConfig.LENTIL_BIOME_TYPE_VEGGIEWAY.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> VeggiewayConfiguredFeatures.VEGGIEWAY_WILD_LENTIL_PATCH); } @@ -39,7 +39,7 @@ public static void generateWildQuinoa(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(VeggiewayConfig.QUINOA_BIOME_TYPE_VEGGIEWAY.get()))) { + if (types.contains(BiomeDictionary.Type.getType(VeggiewayConfig.QUINOA_BIOME_TYPE_VEGGIEWAY.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> VeggiewayConfiguredFeatures.VEGGIEWAY_WILD_QUINOA_PATCH); @@ -50,7 +50,7 @@ public static void generateWildSoybean(final BiomeLoadingEvent event) { RegistryKey key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set types = BiomeDictionary.getTypes(key); - if(types.contains(BiomeDictionary.Type.getType(VeggiewayConfig.SOYBEAN_BIOME_TYPE_VEGGIEWAY.get()))) { + if (types.contains(BiomeDictionary.Type.getType(VeggiewayConfig.SOYBEAN_BIOME_TYPE_VEGGIEWAY.get()))) { List>> base = event.getGeneration().getFeatures(GenerationStage.Decoration.VEGETAL_DECORATION); base.add(() -> VeggiewayConfiguredFeatures.VEGGIEWAY_WILD_SOYBEAN_PATCH); diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 7efc765..20e9833 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -4,7 +4,7 @@ license="GNU General Public License version 3 (GPLv3)" [[mods]] modId="wildplants" -version="1.16.5_2.5.2_forge" +version="1.16.5_2.6.1_forge" displayName="Wildplants" credits="WOLFKIDSOUNDS" displayURL="https://wolfkidsounds.com" diff --git a/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_aubergine.json b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_aubergine.json new file mode 100644 index 0000000..c843fa2 --- /dev/null +++ b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_aubergine.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "enhancedfarming:block/aubergine_crop_5" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_corn.json b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_corn.json new file mode 100644 index 0000000..14cae54 --- /dev/null +++ b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_corn.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "enhancedfarming:block/corn_crop_7" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_cucumber.json b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_cucumber.json new file mode 100644 index 0000000..4218e6c --- /dev/null +++ b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_cucumber.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "enhancedfarming:block/cucumber_crop_5" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_garlic.json b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_garlic.json new file mode 100644 index 0000000..a48da58 --- /dev/null +++ b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_garlic.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "enhancedfarming:block/garlic_crop_5" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_grape.json b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_grape.json new file mode 100644 index 0000000..359ea8c --- /dev/null +++ b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_grape.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "enhancedfarming:block/grape_crop_5" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_lettuce.json b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_lettuce.json new file mode 100644 index 0000000..30b7964 --- /dev/null +++ b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_lettuce.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "enhancedfarming:block/lettuce_crop_5" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_mint.json b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_mint.json new file mode 100644 index 0000000..831780d --- /dev/null +++ b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_mint.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "enhancedfarming:block/mint_crop_5" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_onion.json b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_onion.json new file mode 100644 index 0000000..d8eaf6e --- /dev/null +++ b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_onion.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "enhancedfarming:block/onion_crop_5" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_pineapple.json b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_pineapple.json new file mode 100644 index 0000000..71e0c6d --- /dev/null +++ b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_pineapple.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "enhancedfarming:block/pineapple_crop_5" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_tomato.json b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_tomato.json new file mode 100644 index 0000000..748469b --- /dev/null +++ b/src/main/resources/assets/wildplants/blockstates/enhancedfarming_wild_tomato.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "enhancedfarming:block/tomato_crop_6" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/lang/en_us.json b/src/main/resources/assets/wildplants/lang/en_us.json index 4f7e47f..b30725b 100644 --- a/src/main/resources/assets/wildplants/lang/en_us.json +++ b/src/main/resources/assets/wildplants/lang/en_us.json @@ -120,6 +120,17 @@ "block.wildplants.simplefarming_wild_tomato" : "Wild Tomato", "block.wildplants.simplefarming_wild_turnip" : "Wild Turnip", "block.wildplants.simplefarming_wild_yam" : "Wild Yam", - "block.wildplants.simplefarming_wild_zucchini" : "Wild Zucchini" + "block.wildplants.simplefarming_wild_zucchini" : "Wild Zucchini", + + "block.wildplants.enhancedfarming_wild_mint" : "Wild Mint", + "block.wildplants.enhancedfarming_wild_tomato" : "Wild Tomato", + "block.wildplants.enhancedfarming_wild_cucumber" : "Wild Cucumber", + "block.wildplants.enhancedfarming_wild_aubergine" : "Wild Aubergine", + "block.wildplants.enhancedfarming_wild_grape" : "Wild Grape", + "block.wildplants.enhancedfarming_wild_pineapple" : "Wild Pineapple", + "block.wildplants.enhancedfarming_wild_corn" : "Wild Corn", + "block.wildplants.enhancedfarming_wild_onion" : "Wild Onion", + "block.wildplants.enhancedfarming_wild_garlic" : "Wild Garlic", + "block.wildplants.enhancedfarming_wild_lettuce" : "Wild Lettuce" } \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_aubergine.json b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_aubergine.json new file mode 100644 index 0000000..cbeb715 --- /dev/null +++ b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_aubergine.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "enhancedfarming:block/crops/aubergine_crop_5" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_corn.json b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_corn.json new file mode 100644 index 0000000..7476b4f --- /dev/null +++ b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_corn.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "enhancedfarming:block/crops/corn_crop_7" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_cucumber.json b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_cucumber.json new file mode 100644 index 0000000..b9dd2d7 --- /dev/null +++ b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_cucumber.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "enhancedfarming:block/crops/cucumber_crop_5" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_garlic.json b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_garlic.json new file mode 100644 index 0000000..a3b2393 --- /dev/null +++ b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_garlic.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "enhancedfarming:block/crops/garlic_crop_5" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_grape.json b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_grape.json new file mode 100644 index 0000000..278dc49 --- /dev/null +++ b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_grape.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "enhancedfarming:block/crops/grape_crop_5" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_lettuce.json b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_lettuce.json new file mode 100644 index 0000000..414667e --- /dev/null +++ b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_lettuce.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "enhancedfarming:block/crops/lettuce_crop_5" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_mint.json b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_mint.json new file mode 100644 index 0000000..d769727 --- /dev/null +++ b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_mint.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "enhancedfarming:block/crops/mint_crop_5" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_onion.json b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_onion.json new file mode 100644 index 0000000..1da38b7 --- /dev/null +++ b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_onion.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "enhancedfarming:block/crops/onion_crop_5" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_pineapple.json b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_pineapple.json new file mode 100644 index 0000000..1c2fe1c --- /dev/null +++ b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_pineapple.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "enhancedfarming:block/crops/pineapple_crop_5" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_tomato.json b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_tomato.json new file mode 100644 index 0000000..e4945c3 --- /dev/null +++ b/src/main/resources/assets/wildplants/models/item/enhancedfarming_wild_tomato.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "enhancedfarming:block/crops/tomato_crop_6" + } +} \ No newline at end of file diff --git a/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_aubergine.json b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_aubergine.json new file mode 100644 index 0000000..439a361 --- /dev/null +++ b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_aubergine.json @@ -0,0 +1,66 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:aubergine_crop", + "properties": { + "age": "5" + } + } + ], + "name": "enhancedfarming:aubergine" + }, + { + "type": "minecraft:item", + "name": "enhancedfarming:aubergine_seeds" + } + ] + } + ] + }, + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "enhancedfarming:aubergine_seeds" + } + ], + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:aubergine_crop", + "properties": { + "age": "5" + } + } + ] + } + ], + "functions": [ + { + "function": "minecraft:explosion_decay" + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_corn.json b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_corn.json new file mode 100644 index 0000000..9d049a5 --- /dev/null +++ b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_corn.json @@ -0,0 +1,66 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:corn_crop", + "properties": { + "age": "7" + } + } + ], + "name": "enhancedfarming:corn" + }, + { + "type": "minecraft:item", + "name": "enhancedfarming:corn_seeds" + } + ] + } + ] + }, + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "enhancedfarming:corn_seeds" + } + ], + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:corn_crop", + "properties": { + "age": "7" + } + } + ] + } + ], + "functions": [ + { + "function": "minecraft:explosion_decay" + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_cucumber.json b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_cucumber.json new file mode 100644 index 0000000..603ad6d --- /dev/null +++ b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_cucumber.json @@ -0,0 +1,66 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:cucumber_crop", + "properties": { + "age": "5" + } + } + ], + "name": "enhancedfarming:cucumber" + }, + { + "type": "minecraft:item", + "name": "enhancedfarming:cucumber_seeds" + } + ] + } + ] + }, + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "enhancedfarming:cucumber_seeds" + } + ], + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:cucumber_crop", + "properties": { + "age": "5" + } + } + ] + } + ], + "functions": [ + { + "function": "minecraft:explosion_decay" + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_garlic.json b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_garlic.json new file mode 100644 index 0000000..56709f6 --- /dev/null +++ b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_garlic.json @@ -0,0 +1,66 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:garlic_crop", + "properties": { + "age": "5" + } + } + ], + "name": "enhancedfarming:garlic" + }, + { + "type": "minecraft:item", + "name": "enhancedfarming:garlic_seeds" + } + ] + } + ] + }, + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "enhancedfarming:garlic_seeds" + } + ], + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:garlic_crop", + "properties": { + "age": "5" + } + } + ] + } + ], + "functions": [ + { + "function": "minecraft:explosion_decay" + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_grape.json b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_grape.json new file mode 100644 index 0000000..15edb31 --- /dev/null +++ b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_grape.json @@ -0,0 +1,66 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:grape_crop", + "properties": { + "age": "5" + } + } + ], + "name": "enhancedfarming:grapes" + }, + { + "type": "minecraft:item", + "name": "enhancedfarming:grape_seeds" + } + ] + } + ] + }, + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "enhancedfarming:grape_seeds" + } + ], + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:grape_crop", + "properties": { + "age": "5" + } + } + ] + } + ], + "functions": [ + { + "function": "minecraft:explosion_decay" + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_lettuce.json b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_lettuce.json new file mode 100644 index 0000000..e67646f --- /dev/null +++ b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_lettuce.json @@ -0,0 +1,66 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:lettuce_crop", + "properties": { + "age": "5" + } + } + ], + "name": "enhancedfarming:lettuce" + }, + { + "type": "minecraft:item", + "name": "enhancedfarming:lettuce_seeds" + } + ] + } + ] + }, + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "enhancedfarming:lettuce_seeds" + } + ], + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:lettuce_crop", + "properties": { + "age": "5" + } + } + ] + } + ], + "functions": [ + { + "function": "minecraft:explosion_decay" + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_mint.json b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_mint.json new file mode 100644 index 0000000..4f5dc92 --- /dev/null +++ b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_mint.json @@ -0,0 +1,66 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:mint_crop", + "properties": { + "age": "5" + } + } + ], + "name": "enhancedfarming:mint" + }, + { + "type": "minecraft:item", + "name": "enhancedfarming:mint_seeds" + } + ] + } + ] + }, + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "enhancedfarming:mint_seeds" + } + ], + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:mint_crop", + "properties": { + "age": "5" + } + } + ] + } + ], + "functions": [ + { + "function": "minecraft:explosion_decay" + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_nether_flower.json b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_nether_flower.json new file mode 100644 index 0000000..6bb3c3c --- /dev/null +++ b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_nether_flower.json @@ -0,0 +1,66 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:nether_flower_crop", + "properties": { + "age": "5" + } + } + ], + "name": "minecraft:blaze_rod" + }, + { + "type": "minecraft:item", + "name": "enhancedfarming:nether_flower_seeds" + } + ] + } + ] + }, + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "enhancedfarming:nether_flower_seeds" + } + ], + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:nether_flower_crop", + "properties": { + "age": "5" + } + } + ] + } + ], + "functions": [ + { + "function": "minecraft:explosion_decay" + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_onion.json b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_onion.json new file mode 100644 index 0000000..0a80a20 --- /dev/null +++ b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_onion.json @@ -0,0 +1,66 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:onion_crop", + "properties": { + "age": "5" + } + } + ], + "name": "enhancedfarming:onion" + }, + { + "type": "minecraft:item", + "name": "enhancedfarming:onion_seeds" + } + ] + } + ] + }, + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "enhancedfarming:onion_seeds" + } + ], + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:onion_crop", + "properties": { + "age": "5" + } + } + ] + } + ], + "functions": [ + { + "function": "minecraft:explosion_decay" + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_pineapple.json b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_pineapple.json new file mode 100644 index 0000000..7239b80 --- /dev/null +++ b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_pineapple.json @@ -0,0 +1,66 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:pineapple_crop", + "properties": { + "age": "5" + } + } + ], + "name": "enhancedfarming:pineapple" + }, + { + "type": "minecraft:item", + "name": "enhancedfarming:pineapple_seeds" + } + ] + } + ] + }, + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "enhancedfarming:pineapple_seeds" + } + ], + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:pineapple_crop", + "properties": { + "age": "5" + } + } + ] + } + ], + "functions": [ + { + "function": "minecraft:explosion_decay" + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_tomato.json b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_tomato.json new file mode 100644 index 0000000..2788938 --- /dev/null +++ b/src/main/resources/data/wildplants/loot_tables/blocks/enhancedfarming_wild_tomato.json @@ -0,0 +1,66 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:tomato_crop", + "properties": { + "age": "6" + } + } + ], + "name": "enhancedfarming:tomato" + }, + { + "type": "minecraft:item", + "name": "enhancedfarming:tomato_seeds" + } + ] + } + ] + }, + { + "rolls": 1.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "enhancedfarming:tomato_seeds" + } + ], + "conditions": [ + { + "condition": "minecraft:block_state_property", + "block": "enhancedfarming:tomato_crop", + "properties": { + "age": "6" + } + } + ] + } + ], + "functions": [ + { + "function": "minecraft:explosion_decay" + } + ] +} \ No newline at end of file