From 390c637e003f4246fe7aa7b201edcf2f218aad3e Mon Sep 17 00:00:00 2001 From: wolfkidsounds <32850639+wolfkidsounds@users.noreply.github.com> Date: Tue, 24 Jan 2023 15:51:26 +0100 Subject: [PATCH] 1.18.2 - 3.1.1 - rewrote the entire mod - new world generation - new configuration - new registries --- build.gradle | 4 +- .../wolfkidsounds/wildplants/Wildplants.java | 56 +- .../wildplants/block/ModBlocks.java | 327 ---- .../wildplants/block/package-info.java | 7 + .../wildplants/config/CompatConfig.java | 42 - .../wildplants/config/WildplantsConfig.java | 42 - .../config/features/HarvestcraftConfig.java | 1494 ----------------- .../features/ImmersiveEngineeringConfig.java | 31 - .../config/features/MinecraftConfig.java | 133 +- .../config/features/VeggiewayConfig.java | 109 -- .../features/WildplantsFeaturesConfig.java | 51 - .../wildplants/items/ModItems.java | 16 - .../wildplants/registry/ModItemGroups.java | 14 + .../wildplants/render/ModRenderers.java | 117 -- .../wildplants/utils/FileUtils.java | 21 - .../wildplants/world/ModWorldEvents.java | 124 -- .../HarvestcraftConfiguredFeatures.java | 489 ------ .../HarvestcraftPlacedFeatures.java | 409 ----- .../HarvestcraftWildplantsGeneration.java | 875 ---------- ...mmersiveEngineeringConfiguredFeatures.java | 25 - .../ImmersiveEngineeringPlacedFeatures.java | 20 - ...ersiveEngineeringWildplantsGeneration.java | 28 - .../MinecraftConfiguredFeatures.java | 47 - .../minecraft/MinecraftPlacedFeatures.java | 32 - .../MinecraftWildplantsGeneration.java | 66 - .../world/settings/BiomeTagFilter.java | 42 + .../world/settings/WildCropConfig.java | 51 + .../VeggiewayConfiguredFeatures.java | 50 - .../veggieway/VeggiewayPlacedFeatures.java | 40 - .../VeggiewayWildplantsGeneration.java | 73 - src/main/resources/META-INF/mods.toml | 2 +- .../assets/wildplants/lang/en_us.json | 2 +- 32 files changed, 186 insertions(+), 4653 deletions(-) delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/block/ModBlocks.java create mode 100644 src/main/java/wks/wolfkidsounds/wildplants/block/package-info.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/config/CompatConfig.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/config/WildplantsConfig.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/config/features/HarvestcraftConfig.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/config/features/ImmersiveEngineeringConfig.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/config/features/VeggiewayConfig.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/config/features/WildplantsFeaturesConfig.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/items/ModItems.java create mode 100644 src/main/java/wks/wolfkidsounds/wildplants/registry/ModItemGroups.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/render/ModRenderers.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/utils/FileUtils.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/ModWorldEvents.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftConfiguredFeatures.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftPlacedFeatures.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftWildplantsGeneration.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringConfiguredFeatures.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringPlacedFeatures.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringWildplantsGeneration.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftConfiguredFeatures.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftPlacedFeatures.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftWildplantsGeneration.java create mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/settings/BiomeTagFilter.java create mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/settings/WildCropConfig.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/veggieway/VeggiewayConfiguredFeatures.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/veggieway/VeggiewayPlacedFeatures.java delete mode 100644 src/main/java/wks/wolfkidsounds/wildplants/world/veggieway/VeggiewayWildplantsGeneration.java diff --git a/build.gradle b/build.gradle index 03a02f4..09bccbf 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ plugins { apply plugin: 'net.minecraftforge.gradle' apply plugin: 'org.parchmentmc.librarian.forgegradle' -version = '1.18.2_2.5.1_forge' +version = '1.18.2_3.1.1_forge' group = 'wks.wolfkidsounds' archivesBaseName = 'wildplants' @@ -184,7 +184,7 @@ jar { } } -// Example configuration to allow publishing using the maven-publish plugin +// Example settings to allow publishing using the maven-publish plugin // This is the preferred method to reobfuscate your jar file jar.finalizedBy('reobfJar') // However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing diff --git a/src/main/java/wks/wolfkidsounds/wildplants/Wildplants.java b/src/main/java/wks/wolfkidsounds/wildplants/Wildplants.java index f0e8d89..db2a0ff 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/Wildplants.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/Wildplants.java @@ -1,58 +1,38 @@ package wks.wolfkidsounds.wildplants; -import net.minecraft.world.item.CreativeModeTab; -import net.minecraft.world.item.ItemStack; -import net.minecraft.world.level.block.Blocks; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.fml.ModLoadingContext; import net.minecraftforge.fml.common.Mod; -import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; -import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; -import wks.wolfkidsounds.wildplants.block.ModBlocks; -import wks.wolfkidsounds.wildplants.config.WildplantsConfig; -import wks.wolfkidsounds.wildplants.config.features.WildplantsFeaturesConfig; -import wks.wolfkidsounds.wildplants.utils.FileUtils; -import wks.wolfkidsounds.wildplants.items.ModItems; -import wks.wolfkidsounds.wildplants.render.ModRenderers; - -// The value here should match an entry in the META-INF/mods.toml file -@Mod("wildplants") +import wks.wolfkidsounds.wildplants.config.Configuration; +import wks.wolfkidsounds.wildplants.config.features.MinecraftConfig; +import wks.wolfkidsounds.wildplants.registry.ModBiomeFeatures; +import wks.wolfkidsounds.wildplants.registry.ModBlocks; +import wks.wolfkidsounds.wildplants.registry.ModItems; +import wks.wolfkidsounds.wildplants.registry.ModPlacementModifiers; +import wks.wolfkidsounds.wildplants.world.RenderSetup; + +@Mod(Wildplants.MOD_ID) public class Wildplants { - public static final String MOD_ID = "wildplants"; - public static final Logger LOGGER = LogManager.getLogger(Wildplants.class); - public static final CreativeModeTab ITEM_GROUP = new CreativeModeTab("tab_wild_plants") { - @Override - public ItemStack makeIcon() { - return new ItemStack(Blocks.TALL_GRASS); - } - }; public Wildplants() { - IEventBus eventBus = FMLJavaModLoadingContext.get().getModEventBus(); + final IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); - FileUtils.createFolders(); + modEventBus.addListener(CommonSetup::init); + modEventBus.addListener(RenderSetup::init); - ModLoadingContext.get().registerConfig(net.minecraftforge.fml.config.ModConfig.Type.COMMON, WildplantsConfig.SPEC, "wildplants/wildplants-common.toml"); - ModLoadingContext.get().registerConfig(net.minecraftforge.fml.config.ModConfig.Type.CLIENT, WildplantsFeaturesConfig.SPEC, "wildplants/settings-common.toml"); + ModLoadingContext.get().registerConfig(net.minecraftforge.fml.config.ModConfig.Type.COMMON, Configuration.SPEC, "wildplants/wildplants-common.toml"); + ModLoadingContext.get().registerConfig(net.minecraftforge.fml.config.ModConfig.Type.CLIENT, MinecraftConfig.SPEC, "wildplants/mods/minecraft.toml"); - ModBlocks.register(eventBus); - ModItems.register(eventBus); - - FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); - FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff); + ModItems.ITEMS.register(modEventBus); + ModBlocks.BLOCKS.register(modEventBus); + ModBiomeFeatures.FEATURES.register(modEventBus); + ModPlacementModifiers.PLACEMENT_MODIFIERS.register(modEventBus); MinecraftForge.EVENT_BUS.register(this); } - - private void setup(final FMLCommonSetupEvent event) { - } - - private void doClientStuff(final FMLClientSetupEvent event) { - ModRenderers.registerBlockCutout(); - } } diff --git a/src/main/java/wks/wolfkidsounds/wildplants/block/ModBlocks.java b/src/main/java/wks/wolfkidsounds/wildplants/block/ModBlocks.java deleted file mode 100644 index e3cdcb4..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/block/ModBlocks.java +++ /dev/null @@ -1,327 +0,0 @@ -package wks.wolfkidsounds.wildplants.block; - -import net.minecraft.world.effect.MobEffects; -import net.minecraft.world.item.BlockItem; -import net.minecraft.world.item.Item; -import net.minecraft.world.level.block.Block; -import net.minecraft.world.level.block.Blocks; -import net.minecraft.world.level.block.FlowerBlock; -import net.minecraft.world.level.block.state.BlockBehaviour; -import net.minecraftforge.eventbus.api.IEventBus; -import net.minecraftforge.registries.DeferredRegister; -import net.minecraftforge.registries.ForgeRegistries; -import net.minecraftforge.registries.RegistryObject; -import wks.wolfkidsounds.wildplants.Wildplants; -import wks.wolfkidsounds.wildplants.config.CompatConfig; -import wks.wolfkidsounds.wildplants.items.ModItems; - -import java.util.function.Supplier; - -public class ModBlocks { - public static final DeferredRegister BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, Wildplants.MOD_ID); - - //MINECRAFT_BLOCKS - public static final RegistryObject MINECRAFT_WILD_WHEAT = registerMinecraftBlock("minecraft_wild_wheat", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject MINECRAFT_WILD_CARROTS = registerMinecraftBlock("minecraft_wild_carrots", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject MINECRAFT_WILD_POTATOES = registerMinecraftBlock("minecraft_wild_potatoes", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject MINECRAFT_WILD_BEETROOTS = registerMinecraftBlock("minecraft_wild_beetroots", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - //IMMERSIVEENGINEERING_BLOCKS - public static final RegistryObject IMMERSIVEENGINEERING_WILD_HEMP = registerImmersiveEngineeringBlock("immersiveenineering_wild_hemp", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - //VEGGIEWAY_BLOCKS - public static final RegistryObject VEGGIEWAY_WILD_CORN = registerVeggiewayBlock("veggieway_wild_corn", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject VEGGIEWAY_WILD_LENTIL = registerVeggiewayBlock("veggieway_wild_lentil", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject VEGGIEWAY_WILD_QUINOA = registerVeggiewayBlock("veggieway_wild_quinoa", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject VEGGIEWAY_WILD_SOYBEAN = registerVeggiewayBlock("veggieway_wild_soybean", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject VEGGIEWAY_WILD_COTTON = registerVeggiewayBlock("veggieway_wild_cotton", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - //HARVESTCRAFT_BLOCKS - public static final RegistryObject HARVESTCRAFT_WILD_AGAVE = registerHarvestcraftBlock("harvestcraft_wild_agave", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_AMARANTH = registerHarvestcraftBlock("harvestcraft_wild_amaranth", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_ARROWROOT = registerHarvestcraftBlock("harvestcraft_wild_arrowroot", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_ARTICHOKE = registerHarvestcraftBlock("harvestcraft_wild_artichoke", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_ASPARAGUS = registerHarvestcraftBlock("harvestcraft_wild_asparagus", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_BARLEY = registerHarvestcraftBlock("harvestcraft_wild_barley", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_BEAN = registerHarvestcraftBlock("harvestcraft_wild_bean", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_BELLPEPPER = registerHarvestcraftBlock("harvestcraft_wild_bellpepper", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_BLACKBERRY = registerHarvestcraftBlock("harvestcraft_wild_blackberry", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_BLUEBERRY = registerHarvestcraftBlock("harvestcraft_wild_blueberry", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_BROCCOLI = registerHarvestcraftBlock("harvestcraft_wild_broccoli", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_BRUSSELSPROUT = registerHarvestcraftBlock("harvestcraft_wild_brusselsprout", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_CABBAGE = registerHarvestcraftBlock("harvestcraft_wild_cabbage", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_CACTUSFRUIT = registerHarvestcraftBlock("harvestcraft_wild_cactusfruit", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_CANDLEBERRY = registerHarvestcraftBlock("harvestcraft_wild_candleberry", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_CANTALOUPE = registerHarvestcraftBlock("harvestcraft_wild_cantaloupe", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_CASSAVA = registerHarvestcraftBlock("harvestcraft_wild_cassava", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_CAULIFLOWER = registerHarvestcraftBlock("harvestcraft_wild_cauliflower", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_CELERY = registerHarvestcraftBlock("harvestcraft_wild_celery", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_CHICKPEA = registerHarvestcraftBlock("harvestcraft_wild_chickpea", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_CHILIPEPPER = registerHarvestcraftBlock("harvestcraft_wild_chilipepper", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_COFFEEBEAN = registerHarvestcraftBlock("harvestcraft_wild_coffeebean", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_CORN = registerHarvestcraftBlock("harvestcraft_wild_corn", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_COTTON = registerHarvestcraftBlock("harvestcraft_wild_cotton", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_CRANBERRY = registerHarvestcraftBlock("harvestcraft_wild_cranberry", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_CUCUMBER = registerHarvestcraftBlock("harvestcraft_wild_cucumber", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_EGGPLANT = registerHarvestcraftBlock("harvestcraft_wild_eggplant", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_ELDERBERRY = registerHarvestcraftBlock("harvestcraft_wild_elderberry", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_FLAX = registerHarvestcraftBlock("harvestcraft_wild_flax", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_GARLIC = registerHarvestcraftBlock("harvestcraft_wild_garlic", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_GINGER = registerHarvestcraftBlock("harvestcraft_wild_ginger", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_GRAPE = registerHarvestcraftBlock("harvestcraft_wild_grape", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_GREENGRAPE = registerHarvestcraftBlock("harvestcraft_wild_greengrape", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_HUCKLEBERRY = registerHarvestcraftBlock("harvestcraft_wild_huckleberry", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_JICAMA = registerHarvestcraftBlock("harvestcraft_wild_jicama", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_JUNIPERBERRY = registerHarvestcraftBlock("harvestcraft_wild_juniperberry", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_JUTE = registerHarvestcraftBlock("harvestcraft_wild_jute", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_KALE = registerHarvestcraftBlock("harvestcraft_wild_kale", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_KENAF = registerHarvestcraftBlock("harvestcraft_wild_kenaf", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_KIWI = registerHarvestcraftBlock("harvestcraft_wild_kiwi", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_KOHLRABI = registerHarvestcraftBlock("harvestcraft_wild_kohlrabi", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_LEEK = registerHarvestcraftBlock("harvestcraft_wild_leek", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_LENTIL = registerHarvestcraftBlock("harvestcraft_wild_lentil", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_LETTUCE = registerHarvestcraftBlock("harvestcraft_wild_lettuce", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_MILLET = registerHarvestcraftBlock("harvestcraft_wild_millet", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_MULBERRY = registerHarvestcraftBlock("harvestcraft_wild_mulberry", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_MUSTARDSEEDS = registerHarvestcraftBlock("harvestcraft_wild_mustardseeds", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_OATS = registerHarvestcraftBlock("harvestcraft_wild_oats", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_OKRA = registerHarvestcraftBlock("harvestcraft_wild_okra", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_ONION = registerHarvestcraftBlock("harvestcraft_wild_onion", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_PARSNIP = registerHarvestcraftBlock("harvestcraft_wild_parsnip", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_PEANUT = registerHarvestcraftBlock("harvestcraft_wild_peanut", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_PEAS = registerHarvestcraftBlock("harvestcraft_wild_peas", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_PINEAPPLE = registerHarvestcraftBlock("harvestcraft_wild_pineapple", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_QUINOA = registerHarvestcraftBlock("harvestcraft_wild_quinoa", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_RADISH = registerHarvestcraftBlock("harvestcraft_wild_radish", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_RASPBERRY = registerHarvestcraftBlock("harvestcraft_wild_raspberry", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_RHUBARB = registerHarvestcraftBlock("harvestcraft_wild_rhubarb", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_RICE = registerHarvestcraftBlock("harvestcraft_wild_rice", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_RUTABAGA = registerHarvestcraftBlock("harvestcraft_wild_rutabaga", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_RYE = registerHarvestcraftBlock("harvestcraft_wild_rye", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_SCALLION = registerHarvestcraftBlock("harvestcraft_wild_scallion", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_SESAMESEEDS = registerHarvestcraftBlock("harvestcraft_wild_sesameseeds", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_SISAL = registerHarvestcraftBlock("harvestcraft_wild_sisal", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_SOYBEAN = registerHarvestcraftBlock("harvestcraft_wild_soybean", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_SPINACH = registerHarvestcraftBlock("harvestcraft_wild_spinach", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_SPICELEAF = registerHarvestcraftBlock("harvestcraft_wild_spiceleaf", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_STRAWBERRY = registerHarvestcraftBlock("harvestcraft_wild_strawberry", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_SWEETPOTATO = registerHarvestcraftBlock("harvestcraft_wild_sweetpotato", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_TARO = registerHarvestcraftBlock("harvestcraft_wild_taro", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_TEALEAF = registerHarvestcraftBlock("harvestcraft_wild_tealeaf", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_TOMATILLO = registerHarvestcraftBlock("harvestcraft_wild_tomatillo", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_TOMATO = registerHarvestcraftBlock("harvestcraft_wild_tomato", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_TURNIP = registerHarvestcraftBlock("harvestcraft_wild_turnip", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_WATERCHESTNUT = registerHarvestcraftBlock("harvestcraft_wild_waterchestnut", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_WHITEMUSHROOM = registerHarvestcraftBlock("harvestcraft_wild_whitemushroom", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_WINTERSQUASH = registerHarvestcraftBlock("harvestcraft_wild_wintersquash", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(Blocks.DANDELION))); - - public static final RegistryObject HARVESTCRAFT_WILD_ZUCCHINI = registerHarvestcraftBlock("harvestcraft_wild_zucchini", - () -> new FlowerBlock(MobEffects.HEAL, 2, BlockBehaviour.Properties.copy(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 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 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 void registerBlockItem(String name, RegistryObject block) { - ModItems.ITEMS.register(name, () -> new BlockItem(block.get(), - new Item.Properties().tab(Wildplants.ITEM_GROUP))); - } - - public static void register(IEventBus eventBus) { - BLOCKS.register(eventBus); - } -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/block/package-info.java b/src/main/java/wks/wolfkidsounds/wildplants/block/package-info.java new file mode 100644 index 0000000..7f9886f --- /dev/null +++ b/src/main/java/wks/wolfkidsounds/wildplants/block/package-info.java @@ -0,0 +1,7 @@ +@ParametersAreNonnullByDefault +@MethodsReturnNonnullByDefault + +package wks.wolfkidsounds.wildplants.block; + +import net.minecraft.MethodsReturnNonnullByDefault; +import javax.annotation.ParametersAreNonnullByDefault; \ No newline at end of file diff --git a/src/main/java/wks/wolfkidsounds/wildplants/config/CompatConfig.java b/src/main/java/wks/wolfkidsounds/wildplants/config/CompatConfig.java deleted file mode 100644 index e73b8e2..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/config/CompatConfig.java +++ /dev/null @@ -1,42 +0,0 @@ -package wks.wolfkidsounds.wildplants.config; - -import net.minecraftforge.common.ForgeConfigSpec; -import net.minecraftforge.fml.ModList; -import wks.wolfkidsounds.wildplants.Wildplants; - -public class CompatConfig { - - //COMPAT - public static ForgeConfigSpec.BooleanValue ENABLE_MINECRAFT; - public static ForgeConfigSpec.BooleanValue ENABLE_IMMERSIVEENGINEERING; - public static ForgeConfigSpec.BooleanValue ENABLE_VEGGIEWAY; - public static ForgeConfigSpec.BooleanValue ENABLE_HARVESTCRAFT; - - public static Boolean LOADED_IMMERSIVEENGINEERING = ModList.get().isLoaded("immersiveengineering"); - public static Boolean LOADED_VEGGIEWAY = ModList.get().isLoaded("veggie_way"); - public static Boolean LOADED_HARVESTCRAFT = ModList.get().isLoaded("pamhc2crops"); - - public static void initMinecraft(ForgeConfigSpec.Builder BUILDER) { - Wildplants.LOGGER.debug("init-compat-minecraft-configuration"); - ENABLE_MINECRAFT = BUILDER - .define("Minecraft", true); - } - - public static void initImmersiveEngineering(ForgeConfigSpec.Builder BUILDER) { - Wildplants.LOGGER.debug("init-compat-immersiveengineering-configuration"); - ENABLE_IMMERSIVEENGINEERING = BUILDER - .define("Immersive_Engineering", true); - } - - public static void initVeggieway(ForgeConfigSpec.Builder BUILDER) { - Wildplants.LOGGER.debug("init-compat-veggieway-configuration"); - ENABLE_VEGGIEWAY = BUILDER - .define("Veggie_Way", true); - } - - public static void initHarvestcraft(ForgeConfigSpec.Builder BUILDER) { - Wildplants.LOGGER.debug("init-compat-harvestcraft-configuration"); - ENABLE_HARVESTCRAFT = BUILDER - .define("Harvestcraft", true); - } -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/config/WildplantsConfig.java b/src/main/java/wks/wolfkidsounds/wildplants/config/WildplantsConfig.java deleted file mode 100644 index e475466..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/config/WildplantsConfig.java +++ /dev/null @@ -1,42 +0,0 @@ -package wks.wolfkidsounds.wildplants.config; - -import net.minecraftforge.common.ForgeConfigSpec; -import wks.wolfkidsounds.wildplants.Wildplants; - -public final class WildplantsConfig { - public static final ForgeConfigSpec.Builder BUILDER = new ForgeConfigSpec.Builder(); - public static final ForgeConfigSpec SPEC; - - public static ForgeConfigSpec.ConfigValue GLOBAL_FREQUENCY; - public static ForgeConfigSpec.ConfigValue GLOBAL_PATCH_SIZE; - public static ForgeConfigSpec.ConfigValue GLOBAL_SPREAD_SIZE; - - static { - - Wildplants.LOGGER.debug("init-configuration"); - - BUILDER.push("General"); - BUILDER.push("Global_Modifier"); - GLOBAL_FREQUENCY = BUILDER - .comment("How many plant patches there are in the world (higher is more) [Default: 1]") - .define("Frequency", 1); - GLOBAL_PATCH_SIZE = BUILDER - .comment("How many plants are placed in a patch at maximum (higher is more) [Default: 6]") - .define("Size", 3); - GLOBAL_SPREAD_SIZE = BUILDER - .comment("How far apart the plants are at maximum (higher is more far) [Default: 2]") - .define("Spread", 50); - BUILDER.pop(); - BUILDER.push("Compat"); - BUILDER.comment("A config file will be generated when the mod is loaded while the feature is enabled. \n" + - "If you disable a feature the config file and block registration/generation will be disabled"); - CompatConfig.initMinecraft(BUILDER); - CompatConfig.initVeggieway(BUILDER); - CompatConfig.initImmersiveEngineering(BUILDER); - CompatConfig.initHarvestcraft(BUILDER); - BUILDER.pop(); - BUILDER.pop(); - - SPEC = BUILDER.build(); - } -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/config/features/HarvestcraftConfig.java b/src/main/java/wks/wolfkidsounds/wildplants/config/features/HarvestcraftConfig.java deleted file mode 100644 index bbdbfcd..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/config/features/HarvestcraftConfig.java +++ /dev/null @@ -1,1494 +0,0 @@ -package wks.wolfkidsounds.wildplants.config.features; - -import net.minecraftforge.common.ForgeConfigSpec; -import wks.wolfkidsounds.wildplants.Wildplants; - -public class HarvestcraftConfig { - - //HARVESTCRAFT - public static ForgeConfigSpec.BooleanValue AGAVE_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue AGAVE_BIOME_TYPE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue AGAVE_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue AGAVE_PATCH_SIZE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue AMARANTH_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue AMARANTH_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue AMARANTH_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue AMARANTH_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue ARROWROOT_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ARROWROOT_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ARROWROOT_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ARROWROOT_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue ARTICHOKE_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ARTICHOKE_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ARTICHOKE_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ARTICHOKE_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue ASPARAGUS_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ASPARAGUS_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ASPARAGUS_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ASPARAGUS_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue BARLEY_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BARLEY_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BARLEY_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BARLEY_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue BEAN_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BEAN_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BEAN_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BEAN_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue BELLPEPPER_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BELLPEPPER_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BELLPEPPER_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BELLPEPPER_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue BLACKBERRY_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BLACKBERRY_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BLACKBERRY_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BLACKBERRY_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue BLUEBERRY_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BLUEBERRY_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BLUEBERRY_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BLUEBERRY_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue BROCCOLI_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BROCCOLI_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BROCCOLI_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BROCCOLI_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue BRUSSELSPROUT_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BRUSSELSPROUT_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BRUSSELSPROUT_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue BRUSSELSPROUT_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue CABBAGE_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CABBAGE_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CABBAGE_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CABBAGE_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue CACTUSFRUIT_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CACTUSFRUIT_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CACTUSFRUIT_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CACTUSFRUIT_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue CANDLEBERRY_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CANDLEBERRY_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CANDLEBERRY_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CANDLEBERRY_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue CANTALOUPE_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CANTALOUPE_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CANTALOUPE_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CANTALOUPE_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue CASSAVA_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CASSAVA_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CASSAVA_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CASSAVA_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue CAULIFLOWER_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CAULIFLOWER_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CAULIFLOWER_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CAULIFLOWER_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue CELERY_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CELERY_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CELERY_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CELERY_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue CHICKPEA_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CHICKPEA_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CHICKPEA_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CHICKPEA_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue CHILIPEPPER_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CHILIPEPPER_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CHILIPEPPER_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CHILIPEPPER_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue COFFEEBEAN_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue COFFEEBEAN_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue COFFEEBEAN_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue COFFEEBEAN_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue CORN_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CORN_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CORN_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CORN_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue COTTON_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue COTTON_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue COTTON_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue COTTON_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue CRANBERRY_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CRANBERRY_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CRANBERRY_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CRANBERRY_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue CUCUMBER_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CUCUMBER_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CUCUMBER_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue CUCUMBER_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue EGGPLANT_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue EGGPLANT_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue EGGPLANT_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue EGGPLANT_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue ELDERBERRY_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ELDERBERRY_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ELDERBERRY_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ELDERBERRY_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue FLAX_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue FLAX_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue FLAX_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue FLAX_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue GARLIC_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue GARLIC_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue GARLIC_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue GARLIC_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue GINGER_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue GINGER_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue GINGER_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue GINGER_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue GRAPE_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue GRAPE_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue GRAPE_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue GRAPE_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue GREENGRAPE_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue GREENGRAPE_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue GREENGRAPE_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue GREENGRAPE_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue HUCKLEBERRY_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue HUCKLEBERRY_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue HUCKLEBERRY_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue HUCKLEBERRY_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue JICAMA_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue JICAMA_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue JICAMA_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue JICAMA_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue JUNIPERBERRY_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue JUNIPERBERRY_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue JUNIPERBERRY_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue JUNIPERBERRY_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue JUTE_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue JUTE_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue JUTE_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue JUTE_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue KALE_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue KALE_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue KALE_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue KALE_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue KENAF_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue KENAF_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue KENAF_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue KENAF_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue KIWI_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue KIWI_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue KIWI_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue KIWI_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue KOHLRABI_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue KOHLRABI_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue KOHLRABI_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue KOHLRABI_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue LEEK_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue LEEK_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue LEEK_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue LEEK_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue LENTIL_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue LENTIL_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue LENTIL_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue LENTIL_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue LETTUCE_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue LETTUCE_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue LETTUCE_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue LETTUCE_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue MILLET_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue MILLET_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue MILLET_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue MILLET_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue MULBERRY_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue MULBERRY_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue MULBERRY_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue MULBERRY_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue MUSTARDSEEDS_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue MUSTARDSEEDS_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue MUSTARDSEEDS_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue MUSTARDSEEDS_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue OATS_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue OATS_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue OATS_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue OATS_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue OKRA_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue OKRA_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue OKRA_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue OKRA_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue ONION_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ONION_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ONION_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ONION_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue PARSNIP_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue PARSNIP_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue PARSNIP_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue PARSNIP_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue PEANUT_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue PEANUT_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue PEANUT_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue PEANUT_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue PEAS_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue PEAS_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue PEAS_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue PEAS_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue PINEAPPLE_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue PINEAPPLE_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue PINEAPPLE_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue PINEAPPLE_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue QUINOA_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue QUINOA_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue QUINOA_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue QUINOA_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue RADISH_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RADISH_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RADISH_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RADISH_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue RASPBERRY_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RASPBERRY_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RASPBERRY_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RASPBERRY_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue RHUBARB_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RHUBARB_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RHUBARB_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RHUBARB_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue RICE_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RICE_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RICE_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RICE_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue RUTABAGA_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RUTABAGA_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RUTABAGA_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RUTABAGA_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue RYE_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RYE_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RYE_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue RYE_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue SCALLION_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SCALLION_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SCALLION_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SCALLION_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue SESAMESEEDS_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SESAMESEEDS_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SESAMESEEDS_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SESAMESEEDS_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue SISAL_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SISAL_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SISAL_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SISAL_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue SOYBEAN_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SOYBEAN_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SOYBEAN_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SOYBEAN_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue SPICELEAF_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SPICELEAF_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SPICELEAF_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SPICELEAF_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue STRAWBERRY_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue STRAWBERRY_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue STRAWBERRY_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue STRAWBERRY_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue SWEETPOTATO_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SWEETPOTATO_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SWEETPOTATO_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SWEETPOTATO_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue TARO_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue TARO_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue TARO_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue TARO_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue TEALEAF_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue TEALEAF_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue TEALEAF_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue TEALEAF_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue TOMATILLO_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue TOMATILLO_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue TOMATILLO_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue TOMATILLO_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue TOMATO_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue TOMATO_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue TOMATO_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue TOMATO_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue TURNIP_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue TURNIP_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue TURNIP_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue TURNIP_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue WATERCHESTNUT_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue WATERCHESTNUT_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue WATERCHESTNUT_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue WATERCHESTNUT_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue WINTERSQUASH_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue WINTERSQUASH_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue WINTERSQUASH_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue WINTERSQUASH_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue WHITEMUSHROOM_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue WHITEMUSHROOM_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue WHITEMUSHROOM_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue WHITEMUSHROOM_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue ZUCCHINI_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ZUCCHINI_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ZUCCHINI_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue ZUCCHINI_BIOME_TYPE_HARVESTCRAFT; - - public static ForgeConfigSpec.BooleanValue SPINACH_ENABLED_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SPINACH_FREQUENCY_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SPINACH_PATCH_SIZE_HARVESTCRAFT; - public static ForgeConfigSpec.ConfigValue SPINACH_BIOME_TYPE_HARVESTCRAFT; - - public static void init(ForgeConfigSpec.Builder BUILDER) { - Wildplants.LOGGER.debug("init-harvestcraft-feature-config"); - - BUILDER.push("WILD AGAVE"); - AGAVE_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - AGAVE_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [MESA]") - .define("Biome Type:", "MESA"); - AGAVE_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - AGAVE_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD AMARANTH"); - AMARANTH_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - AMARANTH_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [HOT]") - .define("Biome Type:", "HOT"); - AMARANTH_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - AMARANTH_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD ARROWROOT"); - ARROWROOT_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - ARROWROOT_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [DENSE]") - .define("Biome Type:", "DENSE"); - ARROWROOT_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - ARROWROOT_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD ARTICHOKE"); - ARTICHOKE_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - ARTICHOKE_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [DRY]") - .define("Biome Type:", "DRY"); - ARTICHOKE_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - ARTICHOKE_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD ASPARAGUS"); - ASPARAGUS_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - ASPARAGUS_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [RIVER]") - .define("Biome Type:", "RIVER"); - ASPARAGUS_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - ASPARAGUS_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD BARLEY"); - BARLEY_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - BARLEY_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "PLAINS"); - BARLEY_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - BARLEY_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD BEAN"); - BEAN_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - BEAN_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - BEAN_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - BEAN_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD BELLPEPPER"); - BELLPEPPER_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - BELLPEPPER_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "PLAINS"); - BELLPEPPER_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - BELLPEPPER_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD BLACKBERRY"); - BLACKBERRY_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - BLACKBERRY_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - BLACKBERRY_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - BLACKBERRY_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD BLUEBERRY"); - BLUEBERRY_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - BLUEBERRY_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [RIVER]") - .define("Biome Type:", "RIVER"); - BLUEBERRY_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - BLUEBERRY_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD BROCCOLI"); - BROCCOLI_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - BROCCOLI_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [COLD]") - .define("Biome Type:", "COLD"); - BROCCOLI_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - BROCCOLI_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD BRUSSELSPROUT"); - BRUSSELSPROUT_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - BRUSSELSPROUT_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [SWAMP]") - .define("Biome Type:", "SWAMP"); - BRUSSELSPROUT_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - BRUSSELSPROUT_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD CABBAGE"); - CABBAGE_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - CABBAGE_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [COLD]") - .define("Biome Type:", "COLD"); - CABBAGE_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CABBAGE_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD CACTUSFRUIT"); - CACTUSFRUIT_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - CACTUSFRUIT_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [SANDY]") - .define("Biome Type:", "SANDY"); - CACTUSFRUIT_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CACTUSFRUIT_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD CANDLEBERRY"); - CANDLEBERRY_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - CANDLEBERRY_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "PLAINS"); - CANDLEBERRY_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CANDLEBERRY_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD CANTALOUPE"); - CANTALOUPE_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - CANTALOUPE_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [WATER]") - .define("Biome Type:", "WATER"); - CANTALOUPE_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CANTALOUPE_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD CASSAVA"); - CASSAVA_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - CASSAVA_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [SANDY]") - .define("Biome Type:", "SANDY"); - CASSAVA_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CASSAVA_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD CAULIFLOWER"); - CAULIFLOWER_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - CAULIFLOWER_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [COLD]") - .define("Biome Type:", "COLD"); - CAULIFLOWER_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CAULIFLOWER_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD CELERY"); - CELERY_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - CELERY_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [COLD]") - .define("Biome Type:", "COLD"); - CELERY_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CELERY_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD CHICKPEA"); - CHICKPEA_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - CHICKPEA_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [SANDY]") - .define("Biome Type:", "SANDY"); - CHICKPEA_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CHICKPEA_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD CHILIPEPPER"); - CHILIPEPPER_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - CHILIPEPPER_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [SAVANNA]") - .define("Biome Type:", "SAVANNA"); - CHILIPEPPER_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CHILIPEPPER_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD COFFEEBEAN"); - COFFEEBEAN_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - COFFEEBEAN_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [BEACH]") - .define("Biome Type:", "BEACH"); - COFFEEBEAN_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - COFFEEBEAN_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD CORN"); - CORN_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - CORN_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [SAVANNA]") - .define("Biome Type:", "SAVANNA"); - CORN_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CORN_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD COTTON"); - COTTON_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - COTTON_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [MOUNTAIN]") - .define("Biome Type:", "MOUNTAIN"); - COTTON_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - COTTON_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD CRANBERRY"); - CRANBERRY_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - CRANBERRY_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [RIVER]") - .define("Biome Type:", "RIVER"); - CRANBERRY_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CRANBERRY_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD CUCUMBER"); - CUCUMBER_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - CUCUMBER_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "PLAINS"); - CUCUMBER_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CUCUMBER_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD EGGPLANT"); - EGGPLANT_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - EGGPLANT_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [WATER]") - .define("Biome Type:", "WATER"); - EGGPLANT_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - EGGPLANT_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD ELDERBERRY"); - ELDERBERRY_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - ELDERBERRY_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "PLAINS"); - ELDERBERRY_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - ELDERBERRY_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD FLAX"); - FLAX_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - FLAX_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [SAVANNA]") - .define("Biome Type:", "SAVANNA"); - FLAX_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - FLAX_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD GARLIC"); - GARLIC_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - GARLIC_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - GARLIC_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - GARLIC_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD GINGER"); - GINGER_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - GINGER_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [WATER]") - .define("Biome Type:", "WATER"); - GINGER_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - GINGER_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD GRAPE"); - GRAPE_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - GRAPE_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [BEACH]") - .define("Biome Type:", "BEACH"); - GRAPE_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - GRAPE_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD GREENGRAPE"); - GREENGRAPE_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - GREENGRAPE_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "PLAINS"); - GREENGRAPE_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - GREENGRAPE_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD HUCKLEBERRY"); - HUCKLEBERRY_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - HUCKLEBERRY_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [MOUNTAIN]") - .define("Biome Type:", "MOUNTAIN"); - HUCKLEBERRY_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - HUCKLEBERRY_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD JICAMA"); - JICAMA_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - JICAMA_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [SWAMP]") - .define("Biome Type:", "SWAMP"); - JICAMA_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - JICAMA_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD JUNIPERBERRY"); - JUNIPERBERRY_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - JUNIPERBERRY_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "PLAINS"); - JUNIPERBERRY_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - JUNIPERBERRY_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD JUTE"); - JUTE_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - JUTE_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - JUTE_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - JUTE_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD KALE"); - KALE_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - KALE_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [SWAMP]") - .define("Biome Type:", "SWAMP"); - KALE_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - KALE_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD KENAF"); - KENAF_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - KENAF_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [BEACH]") - .define("Biome Type:", "BEACH"); - KENAF_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - KENAF_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD KIWI"); - KIWI_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - KIWI_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [BEACH]") - .define("Biome Type:", "BEACH"); - KIWI_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - KIWI_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD KOHLRABI"); - KOHLRABI_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - KOHLRABI_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [COLD]") - .define("Biome Type:", "COLD"); - KOHLRABI_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - KOHLRABI_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD LEEK"); - LEEK_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - LEEK_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - LEEK_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - LEEK_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD LENTIL"); - LENTIL_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - LENTIL_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [MESA]") - .define("Biome Type:", "MESA"); - LENTIL_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - LENTIL_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD LETTUCE"); - LETTUCE_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - LETTUCE_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [SAVANNA]") - .define("Biome Type:", "SAVANNA"); - LETTUCE_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - LETTUCE_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD MILLET"); - MILLET_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - MILLET_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [SWAMP]") - .define("Biome Type:", "SWAMP"); - MILLET_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - MILLET_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD MULBERRY"); - MULBERRY_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - MULBERRY_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [RIVER]") - .define("Biome Type:", "RIVER"); - MULBERRY_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - MULBERRY_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD MUSTARDSEEDS"); - MUSTARDSEEDS_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - MUSTARDSEEDS_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "PLAINS"); - MUSTARDSEEDS_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - MUSTARDSEEDS_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD OATS"); - OATS_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - OATS_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [HILLS]") - .define("Biome Type:", "HILLS"); - OATS_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - OATS_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD OKRA"); - OKRA_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - OKRA_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [SWAMP]") - .define("Biome Type:", "SWAMP"); - OKRA_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - OKRA_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD ONION"); - ONION_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - ONION_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "HOT"); - ONION_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - ONION_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD PARSNIP"); - PARSNIP_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - PARSNIP_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [DRY]") - .define("Biome Type:", "DRY"); - PARSNIP_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - PARSNIP_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD PEANUT"); - PEANUT_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - PEANUT_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [SANDY]") - .define("Biome Type:", "SANDY"); - PEANUT_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - PEANUT_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD PEAS"); - PEAS_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - PEAS_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [MOUNTAIN]") - .define("Biome Type:", "MOUNTAIN"); - PEAS_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - PEAS_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD PINEAPPLE"); - PINEAPPLE_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - PINEAPPLE_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [BEACH]") - .define("Biome Type:", "BEACH"); - PINEAPPLE_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - PINEAPPLE_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD QUINOA"); - QUINOA_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - QUINOA_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [COLD]") - .define("Biome Type:", "COLD"); - QUINOA_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - QUINOA_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD RADISH"); - RADISH_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - RADISH_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - RADISH_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - RADISH_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD RASPBERRY"); - RASPBERRY_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - RASPBERRY_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [MOUNTAIN]") - .define("Biome Type:", "MOUNTAIN"); - RASPBERRY_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - RASPBERRY_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD RHUBARB"); - RHUBARB_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - RHUBARB_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - RHUBARB_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - RHUBARB_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD RICE"); - RICE_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - RICE_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [SWAMP]") - .define("Biome Type:", "SWAMP"); - RICE_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - RICE_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD RUTABAGA"); - RUTABAGA_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - RUTABAGA_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [COLD]") - .define("Biome Type:", "COLD"); - RUTABAGA_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - RUTABAGA_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD RYE"); - RYE_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - RYE_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [HILLS]") - .define("Biome Type:", "HILLS"); - RYE_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - RYE_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD SCALLION"); - SCALLION_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - SCALLION_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - SCALLION_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - SCALLION_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD SESAMESEEDS"); - SESAMESEEDS_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - SESAMESEEDS_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [SAVANNA]") - .define("Biome Type:", "SAVANNA"); - SESAMESEEDS_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - SESAMESEEDS_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD SISAL"); - SISAL_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - SISAL_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [SANDY]") - .define("Biome Type:", "SANDY"); - SISAL_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - SISAL_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD SOYBEAN"); - SOYBEAN_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - SOYBEAN_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [WATER]") - .define("Biome Type:", "WATER"); - SOYBEAN_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - SOYBEAN_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD SPICELEAF"); - SPICELEAF_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - SPICELEAF_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - SPICELEAF_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - SPICELEAF_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD SPINACH"); - SPINACH_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - SPINACH_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [COLD]") - .define("Biome Type:", "COLD"); - SPINACH_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - SPINACH_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD STRAWBERRY"); - STRAWBERRY_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - STRAWBERRY_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "PLAINS"); - STRAWBERRY_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - STRAWBERRY_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD SWEETPOTATO"); - SWEETPOTATO_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - SWEETPOTATO_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - SWEETPOTATO_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - SWEETPOTATO_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD TARO"); - TARO_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - TARO_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [BEACH]") - .define("Biome Type:", "BEACH"); - TARO_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - TARO_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD TEALEAF"); - TEALEAF_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - TEALEAF_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - TEALEAF_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - TEALEAF_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD TOMATILLO"); - TOMATILLO_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - TOMATILLO_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - TOMATILLO_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - TOMATILLO_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD TOMATO"); - TOMATO_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - TOMATO_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [DESERT]") - .define("Biome Type:", "DESERT"); - TOMATO_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - TOMATO_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD TURNIP"); - TURNIP_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - TURNIP_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - TURNIP_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - TURNIP_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD WATERCHESTNUT"); - WATERCHESTNUT_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - WATERCHESTNUT_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [RIVER]") - .define("Biome Type:", "RIVER"); - WATERCHESTNUT_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - WATERCHESTNUT_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD WHITEMUSHROOM"); - WHITEMUSHROOM_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - WHITEMUSHROOM_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - WHITEMUSHROOM_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - WHITEMUSHROOM_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD WINTERSQUASH"); - WINTERSQUASH_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - WINTERSQUASH_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [PLAINS]") - .define("Biome Type:", "PLAINS"); - WINTERSQUASH_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - WINTERSQUASH_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD ZUCCHINI"); - ZUCCHINI_ENABLED_HARVESTCRAFT = BUILDER - .define("Enabled:", true); - ZUCCHINI_BIOME_TYPE_HARVESTCRAFT = BUILDER - .comment("Default: [FOREST]") - .define("Biome Type:", "FOREST"); - ZUCCHINI_FREQUENCY_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - ZUCCHINI_PATCH_SIZE_HARVESTCRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - } -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/config/features/ImmersiveEngineeringConfig.java b/src/main/java/wks/wolfkidsounds/wildplants/config/features/ImmersiveEngineeringConfig.java deleted file mode 100644 index 47e9482..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/config/features/ImmersiveEngineeringConfig.java +++ /dev/null @@ -1,31 +0,0 @@ -package wks.wolfkidsounds.wildplants.config.features; - -import net.minecraftforge.common.ForgeConfigSpec; -import wks.wolfkidsounds.wildplants.Wildplants; - -public class ImmersiveEngineeringConfig { - - //IMMERSIVE ENGINEERING - public static ForgeConfigSpec.ConfigValue HEMP_BIOME_TYPE_IMMERSIVEENINEERING; - public static ForgeConfigSpec.ConfigValue HEMP_FREQUENCY_IMMERSIVEENINEERING; - public static ForgeConfigSpec.ConfigValue HEMP_PATCH_SIZE_IMMERSIVEENINEERING; - public static ForgeConfigSpec.BooleanValue HEMP_ENABLED_IMMERSIVEENINEERING; - - public static void init(ForgeConfigSpec.Builder BUILDER) { - Wildplants.LOGGER.debug("init-immersiveengineering-feature-config"); - - BUILDER.push("WILD HEMP"); - HEMP_ENABLED_IMMERSIVEENINEERING = BUILDER - .define("Enabled:", true); - HEMP_BIOME_TYPE_IMMERSIVEENINEERING = BUILDER - .comment("Default: [HOT]") - .define("Biome Type:", "HOT"); - HEMP_FREQUENCY_IMMERSIVEENINEERING = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - HEMP_PATCH_SIZE_IMMERSIVEENINEERING = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - } -} \ No newline at end of file diff --git a/src/main/java/wks/wolfkidsounds/wildplants/config/features/MinecraftConfig.java b/src/main/java/wks/wolfkidsounds/wildplants/config/features/MinecraftConfig.java index eab8ea3..0054610 100644 --- a/src/main/java/wks/wolfkidsounds/wildplants/config/features/MinecraftConfig.java +++ b/src/main/java/wks/wolfkidsounds/wildplants/config/features/MinecraftConfig.java @@ -1,91 +1,58 @@ package wks.wolfkidsounds.wildplants.config.features; -//TODO DEFAULT BIOMES import net.minecraftforge.common.ForgeConfigSpec; -import wks.wolfkidsounds.wildplants.Wildplants; public class MinecraftConfig { - //MINECRAFT - public static ForgeConfigSpec.ConfigValue WHEAT_BIOME_TYPE_MINECRAFT; - public static ForgeConfigSpec.ConfigValue WHEAT_FREQUENCY_MINECRAFT; - public static ForgeConfigSpec.ConfigValue WHEAT_PATCH_SIZE_MINECRAFT; - public static ForgeConfigSpec.BooleanValue WHEAT_ENABLED_MINECRAFT; - - public static ForgeConfigSpec.ConfigValue CARROTS_BIOME_TYPE_MINECRAFT; - public static ForgeConfigSpec.ConfigValue CARROTS_FREQUENCY_MINECRAFT; - public static ForgeConfigSpec.ConfigValue CARROTS_PATCH_SIZE_MINECRAFT; - public static ForgeConfigSpec.BooleanValue CARROTS_ENABLED_MINECRAFT; - - public static ForgeConfigSpec.ConfigValue POTATOES_BIOME_TYPE_MINECRAFT; - public static ForgeConfigSpec.ConfigValue POTATOES_FREQUENCY_MINECRAFT; - public static ForgeConfigSpec.ConfigValue POTATOES_PATCH_SIZE_MINECRAFT; - public static ForgeConfigSpec.BooleanValue POTATOES_ENABLED_MINECRAFT; - - public static ForgeConfigSpec.ConfigValue BEETROOTS_BIOME_TYPE_MINECRAFT; - public static ForgeConfigSpec.ConfigValue BEETROOTS_FREQUENCY_MINECRAFT; - public static ForgeConfigSpec.ConfigValue BEETROOTS_PATCH_SIZE_MINECRAFT; - public static ForgeConfigSpec.BooleanValue BEETROOTS_ENABLED_MINECRAFT; - - public static void init(ForgeConfigSpec.Builder BUILDER) { - Wildplants.LOGGER.debug("init-minecraft-feature-config"); - - BUILDER.push("MINECRAFT_WILD WHEAT"); - WHEAT_ENABLED_MINECRAFT = BUILDER - .define("Enabled:", true); - WHEAT_BIOME_TYPE_MINECRAFT = BUILDER - .comment("Default: [SAVANNA]") - .define("Biome Type:", "SAVANNA"); - WHEAT_FREQUENCY_MINECRAFT = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - WHEAT_PATCH_SIZE_MINECRAFT = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); + public static final ForgeConfigSpec.Builder BUILDER = new ForgeConfigSpec.Builder(); + public static final ForgeConfigSpec SPEC; - 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 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(); + //MINECRAFT + public static ForgeConfigSpec.ConfigValue CHANCE_MINECRAFT_WILD_WHEAT; + public static ForgeConfigSpec.BooleanValue GENERATE_MINECRAFT_WILD_WHEAT; + + public static ForgeConfigSpec.ConfigValue CHANCE_MINECRAFT_WILD_CARROTS; + public static ForgeConfigSpec.BooleanValue GENERATE_MINECRAFT_WILD_CARROTS; + + public static ForgeConfigSpec.ConfigValue CHANCE_MINECRAFT_WILD_POTATOES; + public static ForgeConfigSpec.BooleanValue GENERATE_MINECRAFT_WILD_POTATOES; + + public static ForgeConfigSpec.ConfigValue CHANCE_MINECRAFT_WILD_BEETROOTS; + public static ForgeConfigSpec.BooleanValue GENERATE_MINECRAFT_WILD_BEETROOTS; + + static { + BUILDER.push("MINECRAFT_WILD WHEAT"); + GENERATE_MINECRAFT_WILD_WHEAT = BUILDER + .define("Enabled:", true); + CHANCE_MINECRAFT_WILD_WHEAT = BUILDER + .comment("Default [30]") + .defineInRange("Chance:", 30, 0, Integer.MAX_VALUE); + BUILDER.pop(); + + BUILDER.push("MINECRAFT_WILD CARROTS"); + GENERATE_MINECRAFT_WILD_CARROTS = BUILDER + .define("Enabled:", true); + CHANCE_MINECRAFT_WILD_CARROTS = BUILDER + .comment("Default [30]") + .defineInRange("Chance:", 30, 0, Integer.MAX_VALUE); + BUILDER.pop(); + + BUILDER.push("MINECRAFT_WILD POTATOES"); + GENERATE_MINECRAFT_WILD_POTATOES = BUILDER + .define("Enabled:", true); + CHANCE_MINECRAFT_WILD_POTATOES = BUILDER + .comment("Default [30]") + .defineInRange("Chance:", 30, 5, Integer.MAX_VALUE); + BUILDER.pop(); + + BUILDER.push("MINECRAFT_WILD BEETROOTS"); + GENERATE_MINECRAFT_WILD_BEETROOTS = BUILDER + .define("Enabled:", true); + CHANCE_MINECRAFT_WILD_BEETROOTS = BUILDER + .comment("Default [30]") + .defineInRange("Chance:", 30, 5, Integer.MAX_VALUE); + BUILDER.pop(); + + SPEC = BUILDER.build(); } - - -} \ No newline at end of file +} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/config/features/VeggiewayConfig.java b/src/main/java/wks/wolfkidsounds/wildplants/config/features/VeggiewayConfig.java deleted file mode 100644 index 81cef3d..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/config/features/VeggiewayConfig.java +++ /dev/null @@ -1,109 +0,0 @@ -package wks.wolfkidsounds.wildplants.config.features; - -import net.minecraftforge.common.ForgeConfigSpec; -import wks.wolfkidsounds.wildplants.Wildplants; - -public class VeggiewayConfig { - - //VEGGIEWAY - public static ForgeConfigSpec.ConfigValue CORN_BIOME_TYPE_VEGGIEWAY; - public static ForgeConfigSpec.ConfigValue CORN_FREQUENCY_VEGGIEWAY; - public static ForgeConfigSpec.ConfigValue CORN_PATCH_SIZE_VEGGIEWAY; - public static ForgeConfigSpec.BooleanValue CORN_ENABLED_VEGGIEWAY; - - public static ForgeConfigSpec.ConfigValue LENTIL_BIOME_TYPE_VEGGIEWAY; - public static ForgeConfigSpec.ConfigValue LENTIL_FREQUENCY_VEGGIEWAY; - public static ForgeConfigSpec.ConfigValue LENTIL_PATCH_SIZE_VEGGIEWAY; - public static ForgeConfigSpec.BooleanValue LENTIL_ENABLED_VEGGIEWAY; - - public static ForgeConfigSpec.ConfigValue QUINOA_BIOME_TYPE_VEGGIEWAY; - public static ForgeConfigSpec.ConfigValue QUINOA_FREQUENCY_VEGGIEWAY; - public static ForgeConfigSpec.ConfigValue QUINOA_PATCH_SIZE_VEGGIEWAY; - public static ForgeConfigSpec.BooleanValue QUINOA_ENABLED_VEGGIEWAY; - - public static ForgeConfigSpec.ConfigValue SOYBEAN_BIOME_TYPE_VEGGIEWAY; - public static ForgeConfigSpec.ConfigValue SOYBEAN_FREQUENCY_VEGGIEWAY; - public static ForgeConfigSpec.ConfigValue SOYBEAN_PATCH_SIZE_VEGGIEWAY; - public static ForgeConfigSpec.BooleanValue SOYBEAN_ENABLED_VEGGIEWAY; - - public static ForgeConfigSpec.ConfigValue COTTON_BIOME_TYPE_VEGGIEWAY; - public static ForgeConfigSpec.ConfigValue COTTON_FREQUENCY_VEGGIEWAY; - public static ForgeConfigSpec.ConfigValue COTTON_PATCH_SIZE_VEGGIEWAY; - public static ForgeConfigSpec.BooleanValue COTTON_ENABLED_VEGGIEWAY; - - //-------------------------------------------------------------- - - public static void init(ForgeConfigSpec.Builder BUILDER) { - Wildplants.LOGGER.debug("init-minecraft-feature-config"); - - BUILDER.push("WILD CORN"); - CORN_ENABLED_VEGGIEWAY = BUILDER - .define("Enabled:", true); - CORN_BIOME_TYPE_VEGGIEWAY = BUILDER - .comment("Default: [SAVANNA]") - .define("Biome Type:", "SAVANNA"); - CORN_FREQUENCY_VEGGIEWAY = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - CORN_PATCH_SIZE_VEGGIEWAY = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD LENTIL"); - LENTIL_ENABLED_VEGGIEWAY = BUILDER - .define("Enabled:", true); - LENTIL_BIOME_TYPE_VEGGIEWAY = BUILDER - .comment("Default: [MESA]") - .define("Biome Type:", "MESA"); - LENTIL_FREQUENCY_VEGGIEWAY = BUILDER - .comment("Default [1]") - .define("Frequency: ", 1); - LENTIL_PATCH_SIZE_VEGGIEWAY = BUILDER - .comment("Default [1]") - .define("Patch Size: ", 1); - BUILDER.pop(); - - BUILDER.push("WILD QUINOA"); - QUINOA_ENABLED_VEGGIEWAY = BUILDER - .define("Enabled:", true); - QUINOA_BIOME_TYPE_VEGGIEWAY = BUILDER - .comment("Default: [COLD]") - .define("Biome Type:", "COLD"); - QUINOA_FREQUENCY_VEGGIEWAY = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - QUINOA_PATCH_SIZE_VEGGIEWAY = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD SOYBEAN"); - SOYBEAN_ENABLED_VEGGIEWAY = BUILDER - .define("Enabled:", true); - SOYBEAN_BIOME_TYPE_VEGGIEWAY = BUILDER - .comment("Default: [WATER]") - .define("Biome Type:", "WATER"); - SOYBEAN_FREQUENCY_VEGGIEWAY = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - SOYBEAN_PATCH_SIZE_VEGGIEWAY = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - - BUILDER.push("WILD COTTON"); - COTTON_ENABLED_VEGGIEWAY = BUILDER - .define("Enabled:", true); - COTTON_BIOME_TYPE_VEGGIEWAY = BUILDER - .comment("Default: [DRY]") - .define("Biome Type:", "DRY"); - COTTON_FREQUENCY_VEGGIEWAY = BUILDER - .comment("Default [1]") - .define("Frequency:", 1); - COTTON_PATCH_SIZE_VEGGIEWAY = BUILDER - .comment("Default [1]") - .define("Patch Size:", 1); - BUILDER.pop(); - } -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/config/features/WildplantsFeaturesConfig.java b/src/main/java/wks/wolfkidsounds/wildplants/config/features/WildplantsFeaturesConfig.java deleted file mode 100644 index 4f37232..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/config/features/WildplantsFeaturesConfig.java +++ /dev/null @@ -1,51 +0,0 @@ -package wks.wolfkidsounds.wildplants.config.features; - -import net.minecraftforge.common.ForgeConfigSpec; -import wks.wolfkidsounds.wildplants.Wildplants; -import wks.wolfkidsounds.wildplants.config.CompatConfig; - - -public final class WildplantsFeaturesConfig { - - public static final ForgeConfigSpec.Builder BUILDER = new ForgeConfigSpec.Builder(); - public static final ForgeConfigSpec SPEC; - - static { - Wildplants.LOGGER.debug("init-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"); - - if (CompatConfig.ENABLE_MINECRAFT.get()) { - BUILDER.push("Minecraft"); - MinecraftConfig.init(BUILDER); - BUILDER.pop(); - } - - if (CompatConfig.LOADED_IMMERSIVEENGINEERING && CompatConfig.ENABLE_IMMERSIVEENGINEERING.get()) { - BUILDER.push("Immersive_Engineering"); - ImmersiveEngineeringConfig.init(BUILDER); - BUILDER.pop(); - } - - if (CompatConfig.LOADED_VEGGIEWAY && CompatConfig.ENABLE_VEGGIEWAY.get()) { - BUILDER.push("Veggie_Way"); - VeggiewayConfig.init(BUILDER); - BUILDER.pop(); - } - - if (CompatConfig.LOADED_HARVESTCRAFT && CompatConfig.ENABLE_HARVESTCRAFT.get()) { - BUILDER.push("Harvestcraft"); - HarvestcraftConfig.init(BUILDER); - 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 deleted file mode 100644 index d17d496..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/items/ModItems.java +++ /dev/null @@ -1,16 +0,0 @@ -package wks.wolfkidsounds.wildplants.items; - -import net.minecraft.world.item.Item; -import net.minecraftforge.eventbus.api.IEventBus; -import net.minecraftforge.registries.DeferredRegister; -import net.minecraftforge.registries.ForgeRegistries; -import wks.wolfkidsounds.wildplants.Wildplants; - -public class ModItems { - public static final DeferredRegister ITEMS = - DeferredRegister.create(ForgeRegistries.ITEMS, Wildplants.MOD_ID); - - public static void register(IEventBus eventBus) { - ITEMS.register(eventBus); - } -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/registry/ModItemGroups.java b/src/main/java/wks/wolfkidsounds/wildplants/registry/ModItemGroups.java new file mode 100644 index 0000000..09c45cd --- /dev/null +++ b/src/main/java/wks/wolfkidsounds/wildplants/registry/ModItemGroups.java @@ -0,0 +1,14 @@ +package wks.wolfkidsounds.wildplants.registry; + +import net.minecraft.world.item.CreativeModeTab; +import net.minecraft.world.item.ItemStack; +import net.minecraft.world.item.Items; + +public class ModItemGroups { + public static final CreativeModeTab MINECRAFT_TAB = new CreativeModeTab("wildplants_minecraft_tab") { + @Override + public ItemStack makeIcon() { + return new ItemStack(Items.GRASS.asItem()); + } + }; +} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/render/ModRenderers.java b/src/main/java/wks/wolfkidsounds/wildplants/render/ModRenderers.java deleted file mode 100644 index 5eecf97..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/render/ModRenderers.java +++ /dev/null @@ -1,117 +0,0 @@ -package wks.wolfkidsounds.wildplants.render; - -import net.minecraft.client.renderer.ItemBlockRenderTypes; -import net.minecraft.client.renderer.RenderType; -import wks.wolfkidsounds.wildplants.block.ModBlocks; -import wks.wolfkidsounds.wildplants.config.CompatConfig; - -public class ModRenderers { - - public ModRenderers() { - } - - public static void registerBlockCutout() { - if (CompatConfig.ENABLE_MINECRAFT.get()) { - ItemBlockRenderTypes.setRenderLayer(ModBlocks.MINECRAFT_WILD_WHEAT.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.MINECRAFT_WILD_CARROTS.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.MINECRAFT_WILD_POTATOES.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.MINECRAFT_WILD_BEETROOTS.get(), RenderType.cutout()); - } - - if (CompatConfig.LOADED_IMMERSIVEENGINEERING && CompatConfig.ENABLE_IMMERSIVEENGINEERING.get()) { - ItemBlockRenderTypes.setRenderLayer(ModBlocks.IMMERSIVEENGINEERING_WILD_HEMP.get(), RenderType.cutout()); - } - - if (CompatConfig.LOADED_VEGGIEWAY && CompatConfig.ENABLE_VEGGIEWAY.get()) { - ItemBlockRenderTypes.setRenderLayer(ModBlocks.VEGGIEWAY_WILD_CORN.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.VEGGIEWAY_WILD_LENTIL.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.VEGGIEWAY_WILD_QUINOA.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.VEGGIEWAY_WILD_SOYBEAN.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.VEGGIEWAY_WILD_COTTON.get(), RenderType.cutout()); - } - - if (CompatConfig.LOADED_HARVESTCRAFT && CompatConfig.ENABLE_HARVESTCRAFT.get()) { - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_AGAVE.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_AMARANTH.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_ARROWROOT.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_ARTICHOKE.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_ASPARAGUS.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_BARLEY.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_BEAN.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_BELLPEPPER.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_BLACKBERRY.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_BLUEBERRY.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_BROCCOLI.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_BRUSSELSPROUT.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_CABBAGE.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_CACTUSFRUIT.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_CANDLEBERRY.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_CANTALOUPE.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_CASSAVA.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_CAULIFLOWER.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_CELERY.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_CHICKPEA.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_CHILIPEPPER.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_COFFEEBEAN.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_CORN.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_COTTON.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_CRANBERRY.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_CUCUMBER.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_EGGPLANT.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_ELDERBERRY.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_FLAX.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_GARLIC.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_GINGER.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_GRAPE.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_GREENGRAPE.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_HUCKLEBERRY.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_JICAMA.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_JUNIPERBERRY.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_JUTE.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_KALE.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_KENAF.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_KIWI.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_KOHLRABI.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_LEEK.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_LENTIL.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_LETTUCE.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_MILLET.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_MULBERRY.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_MUSTARDSEEDS.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_OATS.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_OKRA.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_ONION.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_PARSNIP.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_PEANUT.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_PEAS.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_PINEAPPLE.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_QUINOA.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_RADISH.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_RASPBERRY.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_RHUBARB.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_RICE.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_RUTABAGA.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_RYE.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_SCALLION.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_SESAMESEEDS.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_SISAL.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_SOYBEAN.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_SPINACH.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_SPICELEAF.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_STRAWBERRY.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_SWEETPOTATO.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_TARO.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_TEALEAF.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_TOMATILLO.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_TOMATO.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_TURNIP.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_WATERCHESTNUT.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_WHITEMUSHROOM.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_WINTERSQUASH.get(), RenderType.cutout()); - ItemBlockRenderTypes.setRenderLayer(ModBlocks.HARVESTCRAFT_WILD_ZUCCHINI.get(), RenderType.cutout()); - } - } - - - -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/utils/FileUtils.java b/src/main/java/wks/wolfkidsounds/wildplants/utils/FileUtils.java deleted file mode 100644 index 0f0f514..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/utils/FileUtils.java +++ /dev/null @@ -1,21 +0,0 @@ -package wks.wolfkidsounds.wildplants.utils; - -import net.minecraftforge.fml.loading.FMLPaths; -import wks.wolfkidsounds.wildplants.Wildplants; - -import java.io.IOException; -import java.nio.file.FileAlreadyExistsException; -import java.nio.file.Files; -import java.nio.file.Path; -import java.nio.file.Paths; - -public class FileUtils { - - public static void createFolders() { - Path wildplantsConfigurationPath = Paths.get(FMLPaths.CONFIGDIR.get().toAbsolutePath().toString(), "wildplants"); - - try {Files.createDirectory(wildplantsConfigurationPath);} - catch (FileAlreadyExistsException event) { Wildplants.LOGGER.debug("Configuration already exists. nice."); }//do nothing - catch (IOException event) {Wildplants.LOGGER.error("The wildplants 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 deleted file mode 100644 index 777e974..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/ModWorldEvents.java +++ /dev/null @@ -1,124 +0,0 @@ -package wks.wolfkidsounds.wildplants.world; - -import net.minecraftforge.event.world.BiomeLoadingEvent; -import net.minecraftforge.eventbus.api.SubscribeEvent; -import net.minecraftforge.fml.common.Mod; -import wks.wolfkidsounds.wildplants.Wildplants; -import wks.wolfkidsounds.wildplants.config.CompatConfig; -import wks.wolfkidsounds.wildplants.config.features.HarvestcraftConfig; -import wks.wolfkidsounds.wildplants.config.features.ImmersiveEngineeringConfig; -import wks.wolfkidsounds.wildplants.config.features.MinecraftConfig; -import wks.wolfkidsounds.wildplants.config.features.VeggiewayConfig; -import wks.wolfkidsounds.wildplants.world.harvestcraft.HarvestcraftWildplantsGeneration; -import wks.wolfkidsounds.wildplants.world.immersiveengineering.ImmersiveEngineeringWildplantsGeneration; -import wks.wolfkidsounds.wildplants.world.minecraft.MinecraftWildplantsGeneration; -import wks.wolfkidsounds.wildplants.world.veggieway.VeggiewayWildplantsGeneration; - - -@Mod.EventBusSubscriber(modid = Wildplants.MOD_ID) -public class ModWorldEvents { - - @SubscribeEvent - 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 (CompatConfig.LOADED_IMMERSIVEENGINEERING && CompatConfig.ENABLE_IMMERSIVEENGINEERING.get()) { - if (ImmersiveEngineeringConfig.HEMP_ENABLED_IMMERSIVEENINEERING.get()) { ImmersiveEngineeringWildplantsGeneration.generateWildHemp(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.COTTON_ENABLED_VEGGIEWAY.get()) { VeggiewayWildplantsGeneration.generateWildCotton(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); } - } - } -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftConfiguredFeatures.java b/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftConfiguredFeatures.java deleted file mode 100644 index af3f65d..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftConfiguredFeatures.java +++ /dev/null @@ -1,489 +0,0 @@ -package wks.wolfkidsounds.wildplants.world.harvestcraft; - -import net.minecraft.core.Holder; -import net.minecraft.data.worldgen.features.FeatureUtils; -import net.minecraft.data.worldgen.placement.PlacementUtils; -import net.minecraft.world.level.levelgen.feature.ConfiguredFeature; -import net.minecraft.world.level.levelgen.feature.Feature; -import net.minecraft.world.level.levelgen.feature.configurations.RandomPatchConfiguration; -import net.minecraft.world.level.levelgen.feature.configurations.SimpleBlockConfiguration; -import net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider; -import wks.wolfkidsounds.wildplants.block.ModBlocks; -import wks.wolfkidsounds.wildplants.config.WildplantsConfig; -import wks.wolfkidsounds.wildplants.config.features.HarvestcraftConfig; - -public class HarvestcraftConfiguredFeatures { - - public static Integer GLOBAL_PATCH_SIZE_HARVESTCRAFT = WildplantsConfig.GLOBAL_PATCH_SIZE.get(); - public static Integer SPREAD_SIZE = WildplantsConfig.GLOBAL_SPREAD_SIZE.get(); - public static Integer AGAVE_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.AGAVE_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer AMARANTH_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.AMARANTH_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer ARROWROOT_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.ARROWROOT_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer ARTICHOKE_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.ARTICHOKE_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer ASPARAGUS_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.ASPARAGUS_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer BARLEY_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.BARLEY_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer BEAN_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.BEAN_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer BELLPEPPER_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.BELLPEPPER_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer BLACKBERRY_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.BLACKBERRY_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer BLUEBERRY_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.BLUEBERRY_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer BROCCOLI_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.BROCCOLI_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer BRUSSELSPROUT_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.BRUSSELSPROUT_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer CABBAGE_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.CABBAGE_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer CACTUSFRUIT_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.CACTUSFRUIT_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer CANDLEBERRY_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.CANDLEBERRY_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer CANTALOUPE_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.CANTALOUPE_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer CASSAVA_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.CASSAVA_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer CAULIFLOWER_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.CAULIFLOWER_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer CELERY_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.CELERY_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer CHICKPEA_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.CHICKPEA_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer CHILIPEPPER_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.CHILIPEPPER_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer COFFEEBEAN_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.COFFEEBEAN_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer CORN_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.CORN_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer COTTON_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.COTTON_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer CRANBERRY_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.CRANBERRY_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer CUCUMBER_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.CUCUMBER_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer EGGPLANT_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.EGGPLANT_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer ELDERBERRY_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.ELDERBERRY_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer FLAX_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.FLAX_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer GARLIC_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.GARLIC_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer GINGER_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.GINGER_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer GRAPE_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.GRAPE_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer GREENGRAPE_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.GREENGRAPE_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer HUCKLEBERRY_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.HUCKLEBERRY_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer JICAMA_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.JICAMA_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer JUNIPERBERRY_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.JUNIPERBERRY_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer JUTE_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.JUTE_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer KALE_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.KALE_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer KENAF_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.KENAF_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer KIWI_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.KIWI_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer KOHLRABI_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.KOHLRABI_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer LEEK_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.LEEK_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer LENTIL_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.LENTIL_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer LETTUCE_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.LETTUCE_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer MILLET_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.MILLET_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer MULBERRY_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.MULBERRY_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer MUSTARDSEEDS_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.MUSTARDSEEDS_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer OATS_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.OATS_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer OKRA_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.OKRA_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer ONION_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.ONION_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer PARSNIP_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.PARSNIP_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer PEANUT_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.PEANUT_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer PEAS_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.PEAS_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer PINEAPPLE_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.PINEAPPLE_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer QUINOA_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.QUINOA_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer RADISH_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.RADISH_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer RASPBERRY_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.RASPBERRY_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer RHUBARB_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.RHUBARB_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer RICE_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.RICE_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer RUTABAGA_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.RUTABAGA_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer RYE_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.RYE_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer SCALLION_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.SCALLION_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer SESAMESEEDS_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.SESAMESEEDS_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer SISAL_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.SISAL_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer SOYBEAN_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.SOYBEAN_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer SPICELEAF_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.SPICELEAF_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer STRAWBERRY_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.STRAWBERRY_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer SWEETPOTATO_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.SWEETPOTATO_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer TARO_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.TARO_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer TEALEAF_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.TEALEAF_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer TOMATILLO_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.TOMATILLO_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer TOMATO_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.TOMATO_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer TURNIP_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.TURNIP_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer WATERCHESTNUT_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.WATERCHESTNUT_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer WHITEMUSHROOM_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.WHITEMUSHROOM_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer WINTERSQUASH_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.WINTERSQUASH_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer ZUCCHINI_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.ZUCCHINI_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - public static Integer SPINACH_PATCH_SIZE_HARVESTCRAFT = HarvestcraftConfig.SPINACH_PATCH_SIZE_HARVESTCRAFT.get() * GLOBAL_PATCH_SIZE_HARVESTCRAFT; - - //----------FEATURE---CONFIGS---------------- - - public static final Holder> HARVESTCRAFT_WILD_AGAVE_CONFIG = - FeatureUtils.register("harvestcraft_wild_agave_config", Feature.FLOWER, - new RandomPatchConfiguration(AGAVE_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_AGAVE.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_AMARANTH_CONFIG = - FeatureUtils.register("harvestcraft_wild_amaranth_config", Feature.FLOWER, - new RandomPatchConfiguration(AMARANTH_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_AMARANTH.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_ARROWROOT_CONFIG = - FeatureUtils.register("harvestcraft_wild_arrowroot_config", Feature.FLOWER, - new RandomPatchConfiguration(ARROWROOT_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_ARROWROOT.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_ARTICHOKE_CONFIG = - FeatureUtils.register("harvestcraft_wild_artichoke_config", Feature.FLOWER, - new RandomPatchConfiguration(ARTICHOKE_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_ARTICHOKE.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_ASPARAGUS_CONFIG = - FeatureUtils.register("harvestcraft_wild_asparagus_config", Feature.FLOWER, - new RandomPatchConfiguration(ASPARAGUS_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_ASPARAGUS.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_BARLEY_CONFIG = - FeatureUtils.register("harvestcraft_wild_barley_config", Feature.FLOWER, - new RandomPatchConfiguration(BARLEY_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_BARLEY.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_BEAN_CONFIG = - FeatureUtils.register("harvestcraft_wild_bean_config", Feature.FLOWER, - new RandomPatchConfiguration(BEAN_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_BEAN.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_BELLPEPPER_CONFIG = - FeatureUtils.register("harvestcraft_wild_bellpepper_config", Feature.FLOWER, - new RandomPatchConfiguration(BELLPEPPER_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_BELLPEPPER.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_BLACKBERRY_CONFIG = - FeatureUtils.register("harvestcraft_wild_blackberry_config", Feature.FLOWER, - new RandomPatchConfiguration(BLACKBERRY_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_BLACKBERRY.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_BLUEBERRY_CONFIG = - FeatureUtils.register("harvestcraft_wild_blueberry_config", Feature.FLOWER, - new RandomPatchConfiguration(BLUEBERRY_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_BLUEBERRY.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_BROCCOLI_CONFIG = - FeatureUtils.register("harvestcraft_wild_broccoli_config", Feature.FLOWER, - new RandomPatchConfiguration(BROCCOLI_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_BROCCOLI.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_BRUSSELSPROUT_CONFIG = - FeatureUtils.register("harvestcraft_wild_brusselsprout_config", Feature.FLOWER, - new RandomPatchConfiguration(BRUSSELSPROUT_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_BRUSSELSPROUT.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_CABBAGE_CONFIG = - FeatureUtils.register("harvestcraft_wild_cabbage_config", Feature.FLOWER, - new RandomPatchConfiguration(CABBAGE_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_CABBAGE.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_CACTUSFRUIT_CONFIG = - FeatureUtils.register("harvestcraft_wild_cactusfruit_config", Feature.FLOWER, - new RandomPatchConfiguration(CACTUSFRUIT_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_CACTUSFRUIT.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_CANDLEBERRY_CONFIG = - FeatureUtils.register("harvestcraft_wild_candleberry_config", Feature.FLOWER, - new RandomPatchConfiguration(CANDLEBERRY_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_CANDLEBERRY.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_CANTALOUPE_CONFIG = - FeatureUtils.register("harvestcraft_wild_cantaloupe_config", Feature.FLOWER, - new RandomPatchConfiguration(CANTALOUPE_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_CANTALOUPE.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_CASSAVA_CONFIG = - FeatureUtils.register("harvestcraft_wild_cassava_config", Feature.FLOWER, - new RandomPatchConfiguration(CASSAVA_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_CASSAVA.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_CAULIFLOWER_CONFIG = - FeatureUtils.register("harvestcraft_wild_cauliflower_config", Feature.FLOWER, - new RandomPatchConfiguration(CAULIFLOWER_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_CAULIFLOWER.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_CELERY_CONFIG = - FeatureUtils.register("harvestcraft_wild_celery_config", Feature.FLOWER, - new RandomPatchConfiguration(CELERY_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_CELERY.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_CHICKPEA_CONFIG = - FeatureUtils.register("harvestcraft_wild_chickpea_config", Feature.FLOWER, - new RandomPatchConfiguration(CHICKPEA_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_CHICKPEA.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_CHILIPEPPER_CONFIG = - FeatureUtils.register("harvestcraft_wild_chilipepper_config", Feature.FLOWER, - new RandomPatchConfiguration(CHILIPEPPER_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_CHILIPEPPER.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_COFFEEBEAN_CONFIG = - FeatureUtils.register("harvestcraft_wild_coffeebean_config", Feature.FLOWER, - new RandomPatchConfiguration(COFFEEBEAN_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_COFFEEBEAN.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_CORN_CONFIG = - FeatureUtils.register("harvestcraft_wild_corn_config", Feature.FLOWER, - new RandomPatchConfiguration(CORN_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_CORN.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_COTTON_CONFIG = - FeatureUtils.register("harvestcraft_wild_cotton_config", Feature.FLOWER, - new RandomPatchConfiguration(COTTON_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_COTTON.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_CRANBERRY_CONFIG = - FeatureUtils.register("harvestcraft_wild_cranberry_config", Feature.FLOWER, - new RandomPatchConfiguration(CRANBERRY_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_CRANBERRY.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_CUCUMBER_CONFIG = - FeatureUtils.register("harvestcraft_wild_cucumber_config", Feature.FLOWER, - new RandomPatchConfiguration(CUCUMBER_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_CUCUMBER.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_EGGPLANT_CONFIG = - FeatureUtils.register("harvestcraft_wild_eggplant_config", Feature.FLOWER, - new RandomPatchConfiguration(EGGPLANT_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_EGGPLANT.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_ELDERBERRY_CONFIG = - FeatureUtils.register("harvestcraft_wild_elderberry_config", Feature.FLOWER, - new RandomPatchConfiguration(ELDERBERRY_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_ELDERBERRY.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_FLAX_CONFIG = - FeatureUtils.register("harvestcraft_wild_flax_config", Feature.FLOWER, - new RandomPatchConfiguration(FLAX_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_FLAX.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_GARLIC_CONFIG = - FeatureUtils.register("harvestcraft_wild_garlic_config", Feature.FLOWER, - new RandomPatchConfiguration(GARLIC_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_GARLIC.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_GINGER_CONFIG = - FeatureUtils.register("harvestcraft_wild_ginger_config", Feature.FLOWER, - new RandomPatchConfiguration(GINGER_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_GINGER.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_GRAPE_CONFIG = - FeatureUtils.register("harvestcraft_wild_grape_config", Feature.FLOWER, - new RandomPatchConfiguration(GRAPE_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_GRAPE.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_GREENGRAPE_CONFIG = - FeatureUtils.register("harvestcraft_wild_greengrape_config", Feature.FLOWER, - new RandomPatchConfiguration(GREENGRAPE_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_GREENGRAPE.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_HUCKLEBERRY_CONFIG = - FeatureUtils.register("harvestcraft_wild_huckleberry_config", Feature.FLOWER, - new RandomPatchConfiguration(HUCKLEBERRY_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_HUCKLEBERRY.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_JICAMA_CONFIG = - FeatureUtils.register("harvestcraft_wild_jicama_config", Feature.FLOWER, - new RandomPatchConfiguration(JICAMA_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_JICAMA.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_JUNIPERBERRY_CONFIG = - FeatureUtils.register("harvestcraft_wild_juniperberry_config", Feature.FLOWER, - new RandomPatchConfiguration(JUNIPERBERRY_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_JUNIPERBERRY.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_JUTE_CONFIG = - FeatureUtils.register("harvestcraft_wild_jute_config", Feature.FLOWER, - new RandomPatchConfiguration(JUTE_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_JUTE.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_KALE_CONFIG = - FeatureUtils.register("harvestcraft_wild_kale_config", Feature.FLOWER, - new RandomPatchConfiguration(KALE_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_KALE.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_KENAF_CONFIG = - FeatureUtils.register("harvestcraft_wild_kenaf_config", Feature.FLOWER, - new RandomPatchConfiguration(KENAF_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_KENAF.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_KIWI_CONFIG = - FeatureUtils.register("harvestcraft_wild_kiwi_config", Feature.FLOWER, - new RandomPatchConfiguration(KIWI_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_KIWI.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_KOHLRABI_CONFIG = - FeatureUtils.register("harvestcraft_wild_kohlrabi_config", Feature.FLOWER, - new RandomPatchConfiguration(KOHLRABI_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_KOHLRABI.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_LEEK_CONFIG = - FeatureUtils.register("harvestcraft_wild_leek_config", Feature.FLOWER, - new RandomPatchConfiguration(LEEK_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_LEEK.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_LENTIL_CONFIG = - FeatureUtils.register("harvestcraft_wild_lentil_config", Feature.FLOWER, - new RandomPatchConfiguration(LENTIL_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_LENTIL.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_LETTUCE_CONFIG = - FeatureUtils.register("harvestcraft_wild_lettuce_config", Feature.FLOWER, - new RandomPatchConfiguration(LETTUCE_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_LETTUCE.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_MILLET_CONFIG = - FeatureUtils.register("harvestcraft_wild_millet_config", Feature.FLOWER, - new RandomPatchConfiguration(MILLET_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_MILLET.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_MULBERRY_CONFIG = - FeatureUtils.register("harvestcraft_wild_mulberry_config", Feature.FLOWER, - new RandomPatchConfiguration(MULBERRY_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_MULBERRY.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_MUSTARDSEEDS_CONFIG = - FeatureUtils.register("harvestcraft_wild_mustardseeds_config", Feature.FLOWER, - new RandomPatchConfiguration(MUSTARDSEEDS_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_MUSTARDSEEDS.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_OATS_CONFIG = - FeatureUtils.register("harvestcraft_wild_oats_config", Feature.FLOWER, - new RandomPatchConfiguration(OATS_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_OATS.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_OKRA_CONFIG = - FeatureUtils.register("harvestcraft_wild_okra_config", Feature.FLOWER, - new RandomPatchConfiguration(OKRA_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_OKRA.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_ONION_CONFIG = - FeatureUtils.register("harvestcraft_wild_onion_config", Feature.FLOWER, - new RandomPatchConfiguration(ONION_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_ONION.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_PARSNIP_CONFIG = - FeatureUtils.register("harvestcraft_wild_parsnip_config", Feature.FLOWER, - new RandomPatchConfiguration(PARSNIP_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_PARSNIP.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_PEANUT_CONFIG = - FeatureUtils.register("harvestcraft_wild_peanut_config", Feature.FLOWER, - new RandomPatchConfiguration(PEANUT_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_PEANUT.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_PEAS_CONFIG = - FeatureUtils.register("harvestcraft_wild_peas_config", Feature.FLOWER, - new RandomPatchConfiguration(PEAS_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_PEAS.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_PINEAPPLE_CONFIG = - FeatureUtils.register("harvestcraft_wild_pineapple_config", Feature.FLOWER, - new RandomPatchConfiguration(PINEAPPLE_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_PINEAPPLE.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_QUINOA_CONFIG = - FeatureUtils.register("harvestcraft_wild_quinoa_config", Feature.FLOWER, - new RandomPatchConfiguration(QUINOA_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_QUINOA.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_RADISH_CONFIG = - FeatureUtils.register("harvestcraft_wild_radish_config", Feature.FLOWER, - new RandomPatchConfiguration(RADISH_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_RADISH.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_RASPBERRY_CONFIG = - FeatureUtils.register("harvestcraft_wild_raspberry_config", Feature.FLOWER, - new RandomPatchConfiguration(RASPBERRY_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_RASPBERRY.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_RHUBARB_CONFIG = - FeatureUtils.register("harvestcraft_wild_rhubarb_config", Feature.FLOWER, - new RandomPatchConfiguration(RHUBARB_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_RHUBARB.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_RICE_CONFIG = - FeatureUtils.register("harvestcraft_wild_rice_config", Feature.FLOWER, - new RandomPatchConfiguration(RICE_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_RICE.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_RUTABAGA_CONFIG = - FeatureUtils.register("harvestcraft_wild_rutabaga_config", Feature.FLOWER, - new RandomPatchConfiguration(RUTABAGA_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_RUTABAGA.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_RYE_CONFIG = - FeatureUtils.register("harvestcraft_wild_rye_config", Feature.FLOWER, - new RandomPatchConfiguration(RYE_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_RYE.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_SCALLION_CONFIG = - FeatureUtils.register("harvestcraft_wild_scallion_config", Feature.FLOWER, - new RandomPatchConfiguration(SCALLION_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_SCALLION.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_SESAMESEEDS_CONFIG = - FeatureUtils.register("harvestcraft_wild_sesameseeds_config", Feature.FLOWER, - new RandomPatchConfiguration(SESAMESEEDS_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_SESAMESEEDS.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_SISAL_CONFIG = - FeatureUtils.register("harvestcraft_wild_sisal_config", Feature.FLOWER, - new RandomPatchConfiguration(SISAL_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_SISAL.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_SOYBEAN_CONFIG = - FeatureUtils.register("harvestcraft_wild_soybean_config", Feature.FLOWER, - new RandomPatchConfiguration(SOYBEAN_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_SOYBEAN.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_SPINACH_CONFIG = - FeatureUtils.register("harvestcraft_wild_spinach_config", Feature.FLOWER, - new RandomPatchConfiguration(SPINACH_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_SPINACH.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_SPICELEAF_CONFIG = - FeatureUtils.register("harvestcraft_wild_spiceleaf_config", Feature.FLOWER, - new RandomPatchConfiguration(SPICELEAF_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_SPICELEAF.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_STRAWBERRY_CONFIG = - FeatureUtils.register("harvestcraft_wild_strawberry_config", Feature.FLOWER, - new RandomPatchConfiguration(STRAWBERRY_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_STRAWBERRY.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_SWEETPOTATO_CONFIG = - FeatureUtils.register("harvestcraft_wild_sweetpotato_config", Feature.FLOWER, - new RandomPatchConfiguration(SWEETPOTATO_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_SWEETPOTATO.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_TARO_CONFIG = - FeatureUtils.register("harvestcraft_wild_taro_config", Feature.FLOWER, - new RandomPatchConfiguration(TARO_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_TARO.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_TEALEAF_CONFIG = - FeatureUtils.register("harvestcraft_wild_tealeaf_config", Feature.FLOWER, - new RandomPatchConfiguration(TEALEAF_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_TEALEAF.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_TOMATILLO_CONFIG = - FeatureUtils.register("harvestcraft_wild_tomatillo_config", Feature.FLOWER, - new RandomPatchConfiguration(TOMATILLO_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_TOMATILLO.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_TOMATO_CONFIG = - FeatureUtils.register("harvestcraft_wild_tomato_config", Feature.FLOWER, - new RandomPatchConfiguration(TOMATO_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_TOMATO.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_TURNIP_CONFIG = - FeatureUtils.register("harvestcraft_wild_turnip_config", Feature.FLOWER, - new RandomPatchConfiguration(TURNIP_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_TURNIP.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_WATERCHESTNUT_CONFIG = - FeatureUtils.register("harvestcraft_wild_waterchestnut_config", Feature.FLOWER, - new RandomPatchConfiguration(WATERCHESTNUT_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_WATERCHESTNUT.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_WHITEMUSHROOM_CONFIG = - FeatureUtils.register("harvestcraft_wild_whitemushroom_config", Feature.FLOWER, - new RandomPatchConfiguration(WHITEMUSHROOM_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_WHITEMUSHROOM.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_WINTERSQUASH_CONFIG = - FeatureUtils.register("harvestcraft_wild_wintersquash_config", Feature.FLOWER, - new RandomPatchConfiguration(WINTERSQUASH_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_WINTERSQUASH.get()))))); - - public static final Holder> HARVESTCRAFT_WILD_ZUCCHINI_CONFIG = - FeatureUtils.register("harvestcraft_wild_zucchini_config", Feature.FLOWER, - new RandomPatchConfiguration(ZUCCHINI_PATCH_SIZE_HARVESTCRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.HARVESTCRAFT_WILD_ZUCCHINI.get()))))); -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftPlacedFeatures.java b/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftPlacedFeatures.java deleted file mode 100644 index 574192d..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftPlacedFeatures.java +++ /dev/null @@ -1,409 +0,0 @@ -package wks.wolfkidsounds.wildplants.world.harvestcraft; - -import net.minecraft.core.Holder; -import net.minecraft.data.worldgen.placement.PlacementUtils; -import net.minecraft.world.level.levelgen.placement.BiomeFilter; -import net.minecraft.world.level.levelgen.placement.InSquarePlacement; -import net.minecraft.world.level.levelgen.placement.PlacedFeature; -import net.minecraft.world.level.levelgen.placement.RarityFilter; -import wks.wolfkidsounds.wildplants.config.WildplantsConfig; -import wks.wolfkidsounds.wildplants.config.features.HarvestcraftConfig; - -public class HarvestcraftPlacedFeatures { - -public static Integer GLOBAL_FREQUENCY_HARVESTCRAFT = WildplantsConfig.GLOBAL_FREQUENCY.get(); - -public static Integer AGAVE_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.AGAVE_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer AMARANTH_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.AMARANTH_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer ARROWROOT_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.ARROWROOT_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer ARTICHOKE_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.ARTICHOKE_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer ASPARAGUS_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.ASPARAGUS_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer BARLEY_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.BARLEY_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer BEAN_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.BEAN_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer BELLPEPPER_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.BELLPEPPER_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer BLACKBERRY_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.BLACKBERRY_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer BLUEBERRY_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.BLUEBERRY_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer BROCCOLI_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.BROCCOLI_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer BRUSSELSPROUT_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.BRUSSELSPROUT_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer CABBAGE_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.CABBAGE_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer CACTUSFRUIT_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.CACTUSFRUIT_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer CANDLEBERRY_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.CANDLEBERRY_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer CANTALOUPE_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.CANTALOUPE_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer CASSAVA_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.CASSAVA_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer CAULIFLOWER_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.CAULIFLOWER_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer CELERY_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.CELERY_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer CHICKPEA_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.CHICKPEA_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer CHILIPEPPER_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.CHILIPEPPER_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer COFFEEBEAN_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.COFFEEBEAN_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer CORN_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.CORN_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer COTTON_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.COTTON_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer CRANBERRY_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.CRANBERRY_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer CUCUMBER_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.CUCUMBER_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer EGGPLANT_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.EGGPLANT_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer ELDERBERRY_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.ELDERBERRY_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer FLAX_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.FLAX_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer GARLIC_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.GARLIC_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer GINGER_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.GINGER_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer GRAPE_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.GRAPE_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer GREENGRAPE_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.GREENGRAPE_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer HUCKLEBERRY_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.HUCKLEBERRY_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer JICAMA_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.JICAMA_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer JUNIPERBERRY_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.JUNIPERBERRY_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer JUTE_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.JUTE_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer KALE_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.KALE_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer KENAF_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.KENAF_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer KIWI_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.KIWI_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer KOHLRABI_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.KOHLRABI_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer LEEK_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.LEEK_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer LENTIL_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.LENTIL_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer LETTUCE_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.LETTUCE_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer MILLET_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.MILLET_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer MULBERRY_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.MULBERRY_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer MUSTARDSEEDS_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.MUSTARDSEEDS_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer OATS_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.OATS_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer OKRA_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.OKRA_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer ONION_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.ONION_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer PARSNIP_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.PARSNIP_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer PEANUT_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.PEANUT_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer PEAS_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.PEAS_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer PINEAPPLE_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.PINEAPPLE_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer QUINOA_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.QUINOA_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer RADISH_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.RADISH_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer RASPBERRY_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.RASPBERRY_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer RHUBARB_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.RHUBARB_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer RICE_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.RICE_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer RUTABAGA_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.RUTABAGA_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer RYE_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.RYE_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer SCALLION_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.SCALLION_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer SESAMESEEDS_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.SESAMESEEDS_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer SISAL_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.SISAL_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer SOYBEAN_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.SOYBEAN_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer SPICELEAF_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.SPICELEAF_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer STRAWBERRY_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.STRAWBERRY_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer SWEETPOTATO_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.SWEETPOTATO_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer TARO_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.TARO_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer TEALEAF_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.TEALEAF_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer TOMATILLO_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.TOMATILLO_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer TOMATO_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.TOMATO_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer TURNIP_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.TURNIP_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer WATERCHESTNUT_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.WATERCHESTNUT_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer WHITEMUSHROOM_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.WHITEMUSHROOM_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer WINTERSQUASH_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.WINTERSQUASH_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer ZUCCHINI_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.ZUCCHINI_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; -public static Integer SPINACH_FREQUENCY_HARVESTCRAFT = HarvestcraftConfig.SPINACH_FREQUENCY_HARVESTCRAFT.get() * GLOBAL_FREQUENCY_HARVESTCRAFT; - - //----------PLACEMENT---CONFIGS---------------- - - public static final Holder HARVESTCRAFT_WILD_AGAVE_PLACED = PlacementUtils.register("harvestcraft_wild_agave_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_AGAVE_CONFIG, RarityFilter.onAverageOnceEvery(AGAVE_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_AMARANTH_PLACED = PlacementUtils.register("harvestcraft_wild_amaranth_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_AMARANTH_CONFIG, RarityFilter.onAverageOnceEvery(AMARANTH_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_ARROWROOT_PLACED = PlacementUtils.register("harvestcraft_wild_arrowroot_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_ARROWROOT_CONFIG, RarityFilter.onAverageOnceEvery(ARROWROOT_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_ARTICHOKE_PLACED = PlacementUtils.register("harvestcraft_wild_artichoke_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_ARTICHOKE_CONFIG, RarityFilter.onAverageOnceEvery(ARTICHOKE_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_ASPARAGUS_PLACED = PlacementUtils.register("harvestcraft_wild_asparagus_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_ASPARAGUS_CONFIG, RarityFilter.onAverageOnceEvery(ASPARAGUS_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_BARLEY_PLACED = PlacementUtils.register("harvestcraft_wild_barley_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_BARLEY_CONFIG, RarityFilter.onAverageOnceEvery(BARLEY_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_BEAN_PLACED = PlacementUtils.register("harvestcraft_wild_bean_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_BEAN_CONFIG, RarityFilter.onAverageOnceEvery(BEAN_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_BELLPEPPER_PLACED = PlacementUtils.register("harvestcraft_wild_bellpepper_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_BELLPEPPER_CONFIG, RarityFilter.onAverageOnceEvery(BELLPEPPER_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_BLACKBERRY_PLACED = PlacementUtils.register("harvestcraft_wild_blackberry_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_BLACKBERRY_CONFIG, RarityFilter.onAverageOnceEvery(BLACKBERRY_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_BLUEBERRY_PLACED = PlacementUtils.register("harvestcraft_wild_blueberry_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_BLUEBERRY_CONFIG, RarityFilter.onAverageOnceEvery(BLUEBERRY_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_BROCCOLI_PLACED = PlacementUtils.register("harvestcraft_wild_broccoli_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_BROCCOLI_CONFIG, RarityFilter.onAverageOnceEvery(BROCCOLI_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_BRUSSELSPROUT_PLACED = PlacementUtils.register("harvestcraft_wild_brusselsprout_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_BRUSSELSPROUT_CONFIG, RarityFilter.onAverageOnceEvery(BRUSSELSPROUT_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_CABBAGE_PLACED = PlacementUtils.register("harvestcraft_wild_cabbage_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CABBAGE_CONFIG, RarityFilter.onAverageOnceEvery(CABBAGE_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_CACTUSFRUIT_PLACED = PlacementUtils.register("harvestcraft_wild_cactusfruit_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CACTUSFRUIT_CONFIG, RarityFilter.onAverageOnceEvery(CACTUSFRUIT_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_CANDLEBERRY_PLACED = PlacementUtils.register("harvestcraft_wild_candleberry_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CANDLEBERRY_CONFIG, RarityFilter.onAverageOnceEvery(CANDLEBERRY_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_CANTALOUPE_PLACED = PlacementUtils.register("harvestcraft_wild_cantaloupe_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CANTALOUPE_CONFIG, RarityFilter.onAverageOnceEvery(CANTALOUPE_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_CASSAVA_PLACED = PlacementUtils.register("harvestcraft_wild_cassava_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CASSAVA_CONFIG, RarityFilter.onAverageOnceEvery(CASSAVA_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_CAULIFLOWER_PLACED = PlacementUtils.register("harvestcraft_wild_cauliflower_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CAULIFLOWER_CONFIG, RarityFilter.onAverageOnceEvery(CAULIFLOWER_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_CELERY_PLACED = PlacementUtils.register("harvestcraft_wild_celery_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CELERY_CONFIG, RarityFilter.onAverageOnceEvery(CELERY_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_CHICKPEA_PLACED = PlacementUtils.register("harvestcraft_wild_chickpea_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CHICKPEA_CONFIG, RarityFilter.onAverageOnceEvery(CHICKPEA_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_CHILIPEPPER_PLACED = PlacementUtils.register("harvestcraft_wild_chilipepper_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CHILIPEPPER_CONFIG, RarityFilter.onAverageOnceEvery(CHILIPEPPER_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_COFFEEBEAN_PLACED = PlacementUtils.register("harvestcraft_wild_coffeebean_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_COFFEEBEAN_CONFIG, RarityFilter.onAverageOnceEvery(COFFEEBEAN_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_CORN_PLACED = PlacementUtils.register("harvestcraft_wild_corn_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CORN_CONFIG, RarityFilter.onAverageOnceEvery(CORN_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_COTTON_PLACED = PlacementUtils.register("harvestcraft_wild_cotton_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_COTTON_CONFIG, RarityFilter.onAverageOnceEvery(COTTON_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_CRANBERRY_PLACED = PlacementUtils.register("harvestcraft_wild_cranberry_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CRANBERRY_CONFIG, RarityFilter.onAverageOnceEvery(CRANBERRY_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_CUCUMBER_PLACED = PlacementUtils.register("harvestcraft_wild_cucumber_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_CUCUMBER_CONFIG, RarityFilter.onAverageOnceEvery(CUCUMBER_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_EGGPLANT_PLACED = PlacementUtils.register("harvestcraft_wild_eggplant_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_EGGPLANT_CONFIG, RarityFilter.onAverageOnceEvery(EGGPLANT_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_ELDERBERRY_PLACED = PlacementUtils.register("harvestcraft_wild_elderberry_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_ELDERBERRY_CONFIG, RarityFilter.onAverageOnceEvery(ELDERBERRY_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_FLAX_PLACED = PlacementUtils.register("harvestcraft_wild_flax_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_FLAX_CONFIG, RarityFilter.onAverageOnceEvery(FLAX_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_GARLIC_PLACED = PlacementUtils.register("harvestcraft_wild_garlic_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_GARLIC_CONFIG, RarityFilter.onAverageOnceEvery(GARLIC_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_GINGER_PLACED = PlacementUtils.register("harvestcraft_wild_ginger_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_GINGER_CONFIG, RarityFilter.onAverageOnceEvery(GINGER_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_GRAPE_PLACED = PlacementUtils.register("harvestcraft_wild_grape_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_GRAPE_CONFIG, RarityFilter.onAverageOnceEvery(GRAPE_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_GREENGRAPE_PLACED = PlacementUtils.register("harvestcraft_wild_greengrape_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_GREENGRAPE_CONFIG, RarityFilter.onAverageOnceEvery(GREENGRAPE_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_HUCKLEBERRY_PLACED = PlacementUtils.register("harvestcraft_wild_huckleberry_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_HUCKLEBERRY_CONFIG, RarityFilter.onAverageOnceEvery(HUCKLEBERRY_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_JICAMA_PLACED = PlacementUtils.register("harvestcraft_wild_jicama_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_JICAMA_CONFIG, RarityFilter.onAverageOnceEvery(JICAMA_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_JUNIPERBERRY_PLACED = PlacementUtils.register("harvestcraft_wild_juniperberry_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_JUNIPERBERRY_CONFIG, RarityFilter.onAverageOnceEvery(JUNIPERBERRY_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_JUTE_PLACED = PlacementUtils.register("harvestcraft_wild_jute_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_JUTE_CONFIG, RarityFilter.onAverageOnceEvery(JUTE_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_KALE_PLACED = PlacementUtils.register("harvestcraft_wild_kale_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_KALE_CONFIG, RarityFilter.onAverageOnceEvery(KALE_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_KENAF_PLACED = PlacementUtils.register("harvestcraft_wild_kenaf_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_KENAF_CONFIG, RarityFilter.onAverageOnceEvery(KENAF_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_KIWI_PLACED = PlacementUtils.register("harvestcraft_wild_kiwi_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_KIWI_CONFIG, RarityFilter.onAverageOnceEvery(KIWI_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_KOHLRABI_PLACED = PlacementUtils.register("harvestcraft_wild_kohlrabi_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_KOHLRABI_CONFIG, RarityFilter.onAverageOnceEvery(KOHLRABI_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_LEEK_PLACED = PlacementUtils.register("harvestcraft_wild_leek_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_LEEK_CONFIG, RarityFilter.onAverageOnceEvery(LEEK_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_LENTIL_PLACED = PlacementUtils.register("harvestcraft_wild_lentil_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_LENTIL_CONFIG, RarityFilter.onAverageOnceEvery(LENTIL_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_LETTUCE_PLACED = PlacementUtils.register("harvestcraft_wild_lettuce_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_LETTUCE_CONFIG, RarityFilter.onAverageOnceEvery(LETTUCE_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_MILLET_PLACED = PlacementUtils.register("harvestcraft_wild_millet_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_MILLET_CONFIG, RarityFilter.onAverageOnceEvery(MILLET_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_MULBERRY_PLACED = PlacementUtils.register("harvestcraft_wild_mulberry_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_MULBERRY_CONFIG, RarityFilter.onAverageOnceEvery(MULBERRY_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_MUSTARDSEEDS_PLACED = PlacementUtils.register("harvestcraft_wild_mustardseeds_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_MUSTARDSEEDS_CONFIG, RarityFilter.onAverageOnceEvery(MUSTARDSEEDS_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_OATS_PLACED = PlacementUtils.register("harvestcraft_wild_oats_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_OATS_CONFIG, RarityFilter.onAverageOnceEvery(OATS_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_OKRA_PLACED = PlacementUtils.register("harvestcraft_wild_okra_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_OKRA_CONFIG, RarityFilter.onAverageOnceEvery(OKRA_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_ONION_PLACED = PlacementUtils.register("harvestcraft_wild_onion_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_ONION_CONFIG, RarityFilter.onAverageOnceEvery(ONION_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_PARSNIP_PLACED = PlacementUtils.register("harvestcraft_wild_parsnip_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_PARSNIP_CONFIG, RarityFilter.onAverageOnceEvery(PARSNIP_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_PEANUT_PLACED = PlacementUtils.register("harvestcraft_wild_peanut_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_PEANUT_CONFIG, RarityFilter.onAverageOnceEvery(PEANUT_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_PEAS_PLACED = PlacementUtils.register("harvestcraft_wild_peas_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_PEAS_CONFIG, RarityFilter.onAverageOnceEvery(PEAS_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_PINEAPPLE_PLACED = PlacementUtils.register("harvestcraft_wild_pineapple_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_PINEAPPLE_CONFIG, RarityFilter.onAverageOnceEvery(PINEAPPLE_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_QUINOA_PLACED = PlacementUtils.register("harvestcraft_wild_quinoa_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_QUINOA_CONFIG, RarityFilter.onAverageOnceEvery(QUINOA_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_RADISH_PLACED = PlacementUtils.register("harvestcraft_wild_radish_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_RADISH_CONFIG, RarityFilter.onAverageOnceEvery(RADISH_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_RASPBERRY_PLACED = PlacementUtils.register("harvestcraft_wild_raspberry_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_RASPBERRY_CONFIG, RarityFilter.onAverageOnceEvery(RASPBERRY_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_RHUBARB_PLACED = PlacementUtils.register("harvestcraft_wild_rhubarb_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_RHUBARB_CONFIG, RarityFilter.onAverageOnceEvery(RHUBARB_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_RICE_PLACED = PlacementUtils.register("harvestcraft_wild_rice_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_RICE_CONFIG, RarityFilter.onAverageOnceEvery(RICE_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_RUTABAGA_PLACED = PlacementUtils.register("harvestcraft_wild_rutabaga_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_RUTABAGA_CONFIG, RarityFilter.onAverageOnceEvery(RUTABAGA_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_RYE_PLACED = PlacementUtils.register("harvestcraft_wild_rye_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_RYE_CONFIG, RarityFilter.onAverageOnceEvery(RYE_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_SCALLION_PLACED = PlacementUtils.register("harvestcraft_wild_scallion_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_SCALLION_CONFIG, RarityFilter.onAverageOnceEvery(SCALLION_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_SESAMESEEDS_PLACED = PlacementUtils.register("harvestcraft_wild_sesameseeds_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_SESAMESEEDS_CONFIG, RarityFilter.onAverageOnceEvery(SESAMESEEDS_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_SISAL_PLACED = PlacementUtils.register("harvestcraft_wild_sisal_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_SISAL_CONFIG, RarityFilter.onAverageOnceEvery(SISAL_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_SOYBEAN_PLACED = PlacementUtils.register("harvestcraft_wild_soybean_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_SOYBEAN_CONFIG, RarityFilter.onAverageOnceEvery(SOYBEAN_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_SPINACH_PLACED = PlacementUtils.register("harvestcraft_wild_spinach_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_SPINACH_CONFIG, RarityFilter.onAverageOnceEvery(SPINACH_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_SPICELEAF_PLACED = PlacementUtils.register("harvestcraft_wild_spiceleaf_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_SPICELEAF_CONFIG, RarityFilter.onAverageOnceEvery(SPICELEAF_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_STRAWBERRY_PLACED = PlacementUtils.register("harvestcraft_wild_strawberry_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_STRAWBERRY_CONFIG, RarityFilter.onAverageOnceEvery(STRAWBERRY_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_SWEETPOTATO_PLACED = PlacementUtils.register("harvestcraft_wild_sweetpotato_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_SWEETPOTATO_CONFIG, RarityFilter.onAverageOnceEvery(SWEETPOTATO_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_TARO_PLACED = PlacementUtils.register("harvestcraft_wild_taro_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_TARO_CONFIG, RarityFilter.onAverageOnceEvery(TARO_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_TEALEAF_PLACED = PlacementUtils.register("harvestcraft_wild_tealeaf_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_TEALEAF_CONFIG, RarityFilter.onAverageOnceEvery(TEALEAF_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_TOMATILLO_PLACED = PlacementUtils.register("harvestcraft_wild_tomatillo_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_TOMATILLO_CONFIG, RarityFilter.onAverageOnceEvery(TOMATILLO_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_TOMATO_PLACED = PlacementUtils.register("harvestcraft_wild_tomato_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_TOMATO_CONFIG, RarityFilter.onAverageOnceEvery(TOMATO_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_TURNIP_PLACED = PlacementUtils.register("harvestcraft_wild_turnip_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_TURNIP_CONFIG, RarityFilter.onAverageOnceEvery(TURNIP_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_WATERCHESTNUT_PLACED = PlacementUtils.register("harvestcraft_wild_waterchestnut_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_WATERCHESTNUT_CONFIG, RarityFilter.onAverageOnceEvery(WATERCHESTNUT_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_WHITEMUSHROOM_PLACED = PlacementUtils.register("harvestcraft_wild_whitemushroom_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_WHITEMUSHROOM_CONFIG, RarityFilter.onAverageOnceEvery(WHITEMUSHROOM_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_WINTERSQUASH_PLACED = PlacementUtils.register("harvestcraft_wild_wintersquash_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_WINTERSQUASH_CONFIG, RarityFilter.onAverageOnceEvery(WINTERSQUASH_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder HARVESTCRAFT_WILD_ZUCCHINI_PLACED = PlacementUtils.register("harvestcraft_wild_zucchini_placed", - HarvestcraftConfiguredFeatures.HARVESTCRAFT_WILD_ZUCCHINI_CONFIG, RarityFilter.onAverageOnceEvery(ZUCCHINI_FREQUENCY_HARVESTCRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftWildplantsGeneration.java b/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftWildplantsGeneration.java deleted file mode 100644 index 6349537..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/harvestcraft/HarvestcraftWildplantsGeneration.java +++ /dev/null @@ -1,875 +0,0 @@ -package wks.wolfkidsounds.wildplants.world.harvestcraft; - -import net.minecraft.core.Holder; -import net.minecraft.core.Registry; -import net.minecraft.resources.ResourceKey; -import net.minecraft.world.level.biome.Biome; -import net.minecraft.world.level.levelgen.GenerationStep; -import net.minecraft.world.level.levelgen.placement.PlacedFeature; -import net.minecraftforge.common.BiomeDictionary; -import net.minecraftforge.event.world.BiomeLoadingEvent; -import wks.wolfkidsounds.wildplants.config.features.HarvestcraftConfig; - -import java.util.List; -import java.util.Set; - -public class HarvestcraftWildplantsGeneration { - - public static void generateWildAgave(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.AGAVE_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_AGAVE_PLACED); - } - } - - public static void generateWildAmaranth(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.AMARANTH_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_AMARANTH_PLACED); - } - } - - public static void generateWildArrowroot(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ARROWROOT_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_ARROWROOT_PLACED); - } - } - - public static void generateWildArtichoke(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ARTICHOKE_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_ARTICHOKE_PLACED); - } - } - - public static void generateWildAsparagus(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ASPARAGUS_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_ASPARAGUS_PLACED); - } - } - - public static void generateWildBarley(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BARLEY_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_BARLEY_PLACED); - } - } - - public static void generateWildBean(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BEAN_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_BEAN_PLACED); - } - } - - public static void generateWildBellpepper(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BELLPEPPER_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_BELLPEPPER_PLACED); - } - } - - public static void generateWildBlackberry(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BLACKBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_BLACKBERRY_PLACED); - } - } - - public static void generateWildBlueberry(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BLUEBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_BLUEBERRY_PLACED); - } - } - - public static void generateWildBroccoli(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BROCCOLI_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_BROCCOLI_PLACED); - } - } - - public static void generateWildBrusselsprout(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.BRUSSELSPROUT_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_BRUSSELSPROUT_PLACED); - } - } - - public static void generateWildCabbage(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CABBAGE_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_CABBAGE_PLACED); - } - } - - public static void generateWildCactusfruit(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CACTUSFRUIT_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_CACTUSFRUIT_PLACED); - } - } - - public static void generateWildCandleberry(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CANDLEBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_CANDLEBERRY_PLACED); - } - } - - public static void generateWildCantaloupe(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CANTALOUPE_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_CANTALOUPE_PLACED); - } - } - - public static void generateWildCassava(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CASSAVA_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_CASSAVA_PLACED); - } - } - - public static void generateWildCauliflower(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CAULIFLOWER_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_CAULIFLOWER_PLACED); - } - } - - public static void generateWildCelery(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CELERY_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_CELERY_PLACED); - } - } - - public static void generateWildChickpea(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CHICKPEA_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_CHICKPEA_PLACED); - } - } - - public static void generateWildChilipepper(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CHILIPEPPER_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_CHILIPEPPER_PLACED); - } - } - - public static void generateWildCoffeebean(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.COFFEEBEAN_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_COFFEEBEAN_PLACED); - } - } - - public static void generateWildCorn(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CORN_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_CORN_PLACED); - } - } - - public static void generateWildCotton(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.COTTON_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_COTTON_PLACED); - } - } - - public static void generateWildCranberry(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CRANBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_CRANBERRY_PLACED); - } - } - - public static void generateWildCucumber(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.CUCUMBER_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_CUCUMBER_PLACED); - } - } - - public static void generateWildEggplant(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.EGGPLANT_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_EGGPLANT_PLACED); - } - } - - public static void generateWildElderberry(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ELDERBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_ELDERBERRY_PLACED); - } - } - - public static void generateWildFlax(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.FLAX_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_FLAX_PLACED); - } - } - - public static void generateWildGarlic(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.GARLIC_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_GARLIC_PLACED); - } - } - - public static void generateWildGinger(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.GINGER_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_GINGER_PLACED); - } - } - - public static void generateWildGrape(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.GRAPE_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_GRAPE_PLACED); - } - } - - public static void generateWildGreengrape(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.GREENGRAPE_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_GREENGRAPE_PLACED); - } - } - - public static void generateWildHuckleberry(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.HUCKLEBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_HUCKLEBERRY_PLACED); - } - } - - public static void generateWildJicama(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.JICAMA_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_JICAMA_PLACED); - } - } - - public static void generateWildJuniperberry(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.JUNIPERBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_JUNIPERBERRY_PLACED); - } - } - - public static void generateWildJute(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.JUTE_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_JUTE_PLACED); - } - } - - public static void generateWildKale(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.KALE_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_KALE_PLACED); - } - } - - public static void generateWildKenaf(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.KENAF_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_KENAF_PLACED); - } - } - - public static void generateWildKiwi(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.KIWI_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_KIWI_PLACED); - } - } - - public static void generateWildKohlrabi(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.KOHLRABI_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_KOHLRABI_PLACED); - } - } - - public static void generateWildLeek(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.LEEK_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_LEEK_PLACED); - } - } - - public static void generateWildLentil(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.LENTIL_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_LENTIL_PLACED); - } - } - - public static void generateWildLettuce(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.LETTUCE_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_LETTUCE_PLACED); - } - } - - public static void generateWildMillet(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.MILLET_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_MILLET_PLACED); - } - } - - public static void generateWildMulberry(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.MULBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_MULBERRY_PLACED); - } - } - - public static void generateWildMustardseeds(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.MUSTARDSEEDS_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_MUSTARDSEEDS_PLACED); - } - } - - public static void generateWildOats(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.OATS_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_OATS_PLACED); - } - } - - public static void generateWildOkra(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.OKRA_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_OKRA_PLACED); - } - } - - public static void generateWildOnion(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ONION_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_ONION_PLACED); - } - } - - public static void generateWildParsnip(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.PARSNIP_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_PARSNIP_PLACED); - } - } - - public static void generateWildPeanut(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.PEANUT_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_PEANUT_PLACED); - } - } - - public static void generateWildPeas(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.PEAS_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_PEAS_PLACED); - } - } - - public static void generateWildPineapple(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.PINEAPPLE_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_PINEAPPLE_PLACED); - } - } - - public static void generateWildQuinoa(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.QUINOA_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_QUINOA_PLACED); - } - } - - public static void generateWildRadish(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RADISH_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_RADISH_PLACED); - } - } - - public static void generateWildRaspberry(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RASPBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_RASPBERRY_PLACED); - } - } - - public static void generateWildRhubarb(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RHUBARB_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_RHUBARB_PLACED); - } - } - - public static void generateWildRice(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RICE_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_RICE_PLACED); - } - } - - public static void generateWildRutabaga(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RUTABAGA_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_RUTABAGA_PLACED); - } - } - - public static void generateWildRye(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.RYE_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_RYE_PLACED); - } - } - - public static void generateWildScallion(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SCALLION_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_SCALLION_PLACED); - } - } - - public static void generateWildSesameseeds(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SESAMESEEDS_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_SESAMESEEDS_PLACED); - } - } - - public static void generateWildSisal(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SISAL_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_SISAL_PLACED); - } - } - - public static void generateWildSoybean(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SOYBEAN_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_SOYBEAN_PLACED); - } - } - - public static void generateWildSpinach(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SPINACH_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_SPINACH_PLACED); - } - } - - public static void generateWildSpiceleaf(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SPICELEAF_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_SPICELEAF_PLACED); - } - } - - public static void generateWildStrawberry(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.STRAWBERRY_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_STRAWBERRY_PLACED); - } - } - - public static void generateWildSweetpotato(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.SWEETPOTATO_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_SWEETPOTATO_PLACED); - } - } - - public static void generateWildTaro(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.TARO_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_TARO_PLACED); - } - } - - public static void generateWildTealeaf(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.TEALEAF_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_TEALEAF_PLACED); - } - } - - public static void generateWildTomatillo(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.TOMATILLO_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_TOMATILLO_PLACED); - } - } - - public static void generateWildTomato(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.TOMATO_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_TOMATO_PLACED); - } - } - - public static void generateWildTurnip(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.TURNIP_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_TURNIP_PLACED); - } - } - - public static void generateWildWaterchestnut(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.WATERCHESTNUT_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_WATERCHESTNUT_PLACED); - } - } - - public static void generateWildWhitemushroom(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.WHITEMUSHROOM_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_WHITEMUSHROOM_PLACED); - } - } - - public static void generateWildWintersquash(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.WINTERSQUASH_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_WINTERSQUASH_PLACED); - } - } - - public static void generateWildZucchini(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(HarvestcraftConfig.ZUCCHINI_BIOME_TYPE_HARVESTCRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(HarvestcraftPlacedFeatures.HARVESTCRAFT_WILD_ZUCCHINI_PLACED); - } - } -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringConfiguredFeatures.java b/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringConfiguredFeatures.java deleted file mode 100644 index 5ac2407..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringConfiguredFeatures.java +++ /dev/null @@ -1,25 +0,0 @@ -package wks.wolfkidsounds.wildplants.world.immersiveengineering; - -import net.minecraft.core.Holder; -import net.minecraft.data.worldgen.features.FeatureUtils; -import net.minecraft.data.worldgen.placement.PlacementUtils; -import net.minecraft.world.level.levelgen.feature.ConfiguredFeature; -import net.minecraft.world.level.levelgen.feature.Feature; -import net.minecraft.world.level.levelgen.feature.configurations.RandomPatchConfiguration; -import net.minecraft.world.level.levelgen.feature.configurations.SimpleBlockConfiguration; -import net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider; -import wks.wolfkidsounds.wildplants.block.ModBlocks; -import wks.wolfkidsounds.wildplants.config.WildplantsConfig; -import wks.wolfkidsounds.wildplants.config.features.ImmersiveEngineeringConfig; - -public class ImmersiveEngineeringConfiguredFeatures { - - public static Integer PATCH_SIZE_GLOBAL = WildplantsConfig.GLOBAL_PATCH_SIZE.get(); - public static Integer SPREAD_SIZE = WildplantsConfig.GLOBAL_SPREAD_SIZE.get(); - public static Integer HEMP_PATCH_SIZE_IMMERSIVEENINEERING = ImmersiveEngineeringConfig.HEMP_PATCH_SIZE_IMMERSIVEENINEERING.get() * PATCH_SIZE_GLOBAL; - - public static final Holder> IMMERSIVEENGINEERING_WILD_HEMP_CONFIG = - FeatureUtils.register("immersiveengineering_wild_hemp_config", Feature.FLOWER, - new RandomPatchConfiguration(HEMP_PATCH_SIZE_IMMERSIVEENINEERING,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.IMMERSIVEENGINEERING_WILD_HEMP.get()))))); -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringPlacedFeatures.java b/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringPlacedFeatures.java deleted file mode 100644 index cd4f960..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringPlacedFeatures.java +++ /dev/null @@ -1,20 +0,0 @@ -package wks.wolfkidsounds.wildplants.world.immersiveengineering; - -import net.minecraft.core.Holder; -import net.minecraft.data.worldgen.placement.PlacementUtils; -import net.minecraft.world.level.levelgen.placement.BiomeFilter; -import net.minecraft.world.level.levelgen.placement.InSquarePlacement; -import net.minecraft.world.level.levelgen.placement.PlacedFeature; -import net.minecraft.world.level.levelgen.placement.RarityFilter; -import wks.wolfkidsounds.wildplants.config.WildplantsConfig; -import wks.wolfkidsounds.wildplants.config.features.ImmersiveEngineeringConfig; - -public class ImmersiveEngineeringPlacedFeatures { - - public static Integer FREQUENCY_GLOBAL = WildplantsConfig.GLOBAL_FREQUENCY.get(); - public static Integer HEMP_FREQUENCY_IMMERSIVEENINEERING = ImmersiveEngineeringConfig.HEMP_FREQUENCY_IMMERSIVEENINEERING.get() * FREQUENCY_GLOBAL; - - public static final Holder IMMERSIVEENGINEERING_WILD_HEMP_PLACED = PlacementUtils.register("immersiveengineering_wild_hemp_placed", - ImmersiveEngineeringConfiguredFeatures.IMMERSIVEENGINEERING_WILD_HEMP_CONFIG, RarityFilter.onAverageOnceEvery(HEMP_FREQUENCY_IMMERSIVEENINEERING), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringWildplantsGeneration.java b/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringWildplantsGeneration.java deleted file mode 100644 index f0d7d6e..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/immersiveengineering/ImmersiveEngineeringWildplantsGeneration.java +++ /dev/null @@ -1,28 +0,0 @@ -package wks.wolfkidsounds.wildplants.world.immersiveengineering; - -import net.minecraft.core.Holder; -import net.minecraft.core.Registry; -import net.minecraft.resources.ResourceKey; -import net.minecraft.world.level.biome.Biome; -import net.minecraft.world.level.levelgen.GenerationStep; -import net.minecraft.world.level.levelgen.placement.PlacedFeature; -import net.minecraftforge.common.BiomeDictionary; -import net.minecraftforge.event.world.BiomeLoadingEvent; -import wks.wolfkidsounds.wildplants.config.features.ImmersiveEngineeringConfig; - -import java.util.List; -import java.util.Set; - -public class ImmersiveEngineeringWildplantsGeneration { - - public static void generateWildHemp(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if (types.contains(BiomeDictionary.Type.getType(ImmersiveEngineeringConfig.HEMP_BIOME_TYPE_IMMERSIVEENINEERING.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(ImmersiveEngineeringPlacedFeatures.IMMERSIVEENGINEERING_WILD_HEMP_PLACED); - } - } -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftConfiguredFeatures.java b/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftConfiguredFeatures.java deleted file mode 100644 index 071f872..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftConfiguredFeatures.java +++ /dev/null @@ -1,47 +0,0 @@ -package wks.wolfkidsounds.wildplants.world.minecraft; - -import net.minecraft.core.Holder; -import net.minecraft.data.worldgen.features.FeatureUtils; -import net.minecraft.data.worldgen.placement.PlacementUtils; -import net.minecraft.world.level.block.Blocks; -import net.minecraft.world.level.block.SweetBerryBushBlock; -import net.minecraft.world.level.levelgen.feature.ConfiguredFeature; -import net.minecraft.world.level.levelgen.feature.Feature; -import net.minecraft.world.level.levelgen.feature.configurations.RandomPatchConfiguration; -import net.minecraft.world.level.levelgen.feature.configurations.SimpleBlockConfiguration; -import net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider; -import wks.wolfkidsounds.wildplants.block.ModBlocks; -import wks.wolfkidsounds.wildplants.config.WildplantsConfig; -import wks.wolfkidsounds.wildplants.config.features.MinecraftConfig; - -import java.util.List; - -public class MinecraftConfiguredFeatures { - - public static Integer PATCH_SIZE_GLOBAL = WildplantsConfig.GLOBAL_PATCH_SIZE.get(); - public static Integer SPREAD_SIZE = WildplantsConfig.GLOBAL_SPREAD_SIZE.get(); - public static Integer WHEAT_PATCH_SIZE_MINECRAFT = MinecraftConfig.WHEAT_PATCH_SIZE_MINECRAFT.get() * PATCH_SIZE_GLOBAL; - public static Integer CARROTS_PATCH_SIZE_MINECRAFT = MinecraftConfig.CARROTS_PATCH_SIZE_MINECRAFT.get() * PATCH_SIZE_GLOBAL; - public static Integer POTATOES_PATCH_SIZE_MINECRAFT = MinecraftConfig.POTATOES_PATCH_SIZE_MINECRAFT.get() * PATCH_SIZE_GLOBAL; - public static Integer BEETROOTS_PATCH_SIZE_MINECRAFT = MinecraftConfig.BEETROOTS_PATCH_SIZE_MINECRAFT.get() * PATCH_SIZE_GLOBAL; - - public static final Holder> MINECRAFT_WILD_WHEAT_CONFIG = - FeatureUtils.register("minecraft_wild_wheat_config", Feature.FLOWER, - new RandomPatchConfiguration(WHEAT_PATCH_SIZE_MINECRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.MINECRAFT_WILD_WHEAT.get()))))); - - public static final Holder> MINECRAFT_WILD_CARROTS_CONFIG = - FeatureUtils.register("minecraft_wild_carrots_config", Feature.FLOWER, - new RandomPatchConfiguration(CARROTS_PATCH_SIZE_MINECRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.MINECRAFT_WILD_CARROTS.get()))))); - - public static final Holder> MINECRAFT_WILD_POTATOES_CONFIG = - FeatureUtils.register("minecraft_wild_potatoes_config", Feature.FLOWER, - new RandomPatchConfiguration(POTATOES_PATCH_SIZE_MINECRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.MINECRAFT_WILD_POTATOES.get()))))); - - public static final Holder> MINECRAFT_WILD_BEETROOTS_CONFIG = - FeatureUtils.register("minecraft_wild_beetroots_config", Feature.FLOWER, - new RandomPatchConfiguration(BEETROOTS_PATCH_SIZE_MINECRAFT,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.MINECRAFT_WILD_BEETROOTS.get()))))); -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftPlacedFeatures.java b/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftPlacedFeatures.java deleted file mode 100644 index e3842a7..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftPlacedFeatures.java +++ /dev/null @@ -1,32 +0,0 @@ -package wks.wolfkidsounds.wildplants.world.minecraft; - -import net.minecraft.core.Holder; -import net.minecraft.data.worldgen.placement.PlacementUtils; -import net.minecraft.world.level.levelgen.placement.*; -import wks.wolfkidsounds.wildplants.config.WildplantsConfig; -import wks.wolfkidsounds.wildplants.config.features.MinecraftConfig; - -public class MinecraftPlacedFeatures { - - public static Integer FREQUENCY_GLOBAL = WildplantsConfig.GLOBAL_FREQUENCY.get(); - public static Integer WHEAT_FREQUENCY_MINECRAFT = MinecraftConfig.WHEAT_FREQUENCY_MINECRAFT.get() * FREQUENCY_GLOBAL; - public static Integer CARROTS_FREQUENCY_MINECRAFT = MinecraftConfig.CARROTS_FREQUENCY_MINECRAFT.get() * FREQUENCY_GLOBAL; - public static Integer POTATOES_FREQUENCY_MINECRAFT = MinecraftConfig.POTATOES_FREQUENCY_MINECRAFT.get() * FREQUENCY_GLOBAL; - public static Integer BEETROOTS_FREQUENCY_MINECRAFT = MinecraftConfig.BEETROOTS_FREQUENCY_MINECRAFT.get() * FREQUENCY_GLOBAL; - - public static final Holder MINECRAFT_WILD_WHEAT_PLACED = PlacementUtils.register("minecraft_wild_wheat_placed", - MinecraftConfiguredFeatures.MINECRAFT_WILD_WHEAT_CONFIG, RarityFilter.onAverageOnceEvery(WHEAT_FREQUENCY_MINECRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder MINECRAFT_WILD_CARROTS_PLACED = PlacementUtils.register("minecraft_wild_carrots_placed", - MinecraftConfiguredFeatures.MINECRAFT_WILD_CARROTS_CONFIG, RarityFilter.onAverageOnceEvery(CARROTS_FREQUENCY_MINECRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder MINECRAFT_WILD_POTATOES_PLACED = PlacementUtils.register("minecraft_wild_potatoes_placed", - MinecraftConfiguredFeatures.MINECRAFT_WILD_POTATOES_CONFIG, RarityFilter.onAverageOnceEvery(POTATOES_FREQUENCY_MINECRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder MINECRAFT_WILD_BEETROOTS_PLACED = PlacementUtils.register("minecraft_wild_beetroots_placed", - MinecraftConfiguredFeatures.MINECRAFT_WILD_BEETROOTS_CONFIG, RarityFilter.onAverageOnceEvery(BEETROOTS_FREQUENCY_MINECRAFT), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftWildplantsGeneration.java b/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftWildplantsGeneration.java deleted file mode 100644 index a67614b..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/minecraft/MinecraftWildplantsGeneration.java +++ /dev/null @@ -1,66 +0,0 @@ -package wks.wolfkidsounds.wildplants.world.minecraft; - -import net.minecraft.core.Holder; -import net.minecraft.core.Registry; -import net.minecraft.resources.ResourceKey; -import net.minecraft.world.level.biome.Biome; -import net.minecraft.world.level.levelgen.GenerationStep; -import net.minecraft.world.level.levelgen.placement.PlacedFeature; -import net.minecraftforge.common.BiomeDictionary; -import net.minecraftforge.event.world.BiomeLoadingEvent; -import wks.wolfkidsounds.wildplants.config.features.MinecraftConfig; - -import java.util.List; -import java.util.Set; -import java.util.function.Supplier; - -public class MinecraftWildplantsGeneration { - - public static void generateWildWheat(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if (types.contains(BiomeDictionary.Type.getType(MinecraftConfig.WHEAT_BIOME_TYPE_MINECRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - - base.add(MinecraftPlacedFeatures.MINECRAFT_WILD_WHEAT_PLACED); - } - } - - public static void generateWildCarrots (final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(MinecraftConfig.CARROTS_BIOME_TYPE_MINECRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - - base.add(MinecraftPlacedFeatures.MINECRAFT_WILD_CARROTS_PLACED); - } - } - - public static void generateWildPotatoes(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(MinecraftConfig.POTATOES_BIOME_TYPE_MINECRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - - base.add(MinecraftPlacedFeatures.MINECRAFT_WILD_POTATOES_PLACED); - } - } - - public static void generateWildBeetroots(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(MinecraftConfig.BEETROOTS_BIOME_TYPE_MINECRAFT.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - - base.add(MinecraftPlacedFeatures.MINECRAFT_WILD_BEETROOTS_PLACED); - } - } -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/settings/BiomeTagFilter.java b/src/main/java/wks/wolfkidsounds/wildplants/world/settings/BiomeTagFilter.java new file mode 100644 index 0000000..7ce33a4 --- /dev/null +++ b/src/main/java/wks/wolfkidsounds/wildplants/world/settings/BiomeTagFilter.java @@ -0,0 +1,42 @@ +package wks.wolfkidsounds.wildplants.world.settings; + +import com.mojang.serialization.Codec; +import com.mojang.serialization.codecs.RecordCodecBuilder; +import net.minecraft.core.BlockPos; +import net.minecraft.core.Holder; +import net.minecraft.tags.TagKey; +import net.minecraft.world.level.biome.Biome; +import net.minecraft.world.level.levelgen.placement.PlacementContext; +import net.minecraft.world.level.levelgen.placement.PlacementFilter; +import net.minecraft.world.level.levelgen.placement.PlacementModifierType; +import net.minecraftforge.registries.ForgeRegistries; +import wks.wolfkidsounds.wildplants.registry.ModPlacementModifiers; + +import java.util.Random; + +public class BiomeTagFilter extends PlacementFilter { + public static final Codec CODEC = RecordCodecBuilder.create((builder) -> + builder.group( + TagKey.codec(ForgeRegistries.BIOMES.getRegistryKey()).fieldOf("biome_tag").forGetter((instance) -> instance.biomeTag) + ).apply(builder, BiomeTagFilter::new)); + private final TagKey biomeTag; + + private BiomeTagFilter(TagKey biomeTag) { + this.biomeTag = biomeTag; + } + + public static BiomeTagFilter biomeIsInTag(TagKey biomeTag) { + return new BiomeTagFilter(biomeTag); + } + + @Override + protected boolean shouldPlace(PlacementContext context, Random random, BlockPos pos) { + Holder biome = context.getLevel().getBiome(pos); + return biome.is(biomeTag); + } + + @Override + public PlacementModifierType type() { + return ModPlacementModifiers.BIOME_TAG.get(); + } +} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/settings/WildCropConfig.java b/src/main/java/wks/wolfkidsounds/wildplants/world/settings/WildCropConfig.java new file mode 100644 index 0000000..9eda113 --- /dev/null +++ b/src/main/java/wks/wolfkidsounds/wildplants/world/settings/WildCropConfig.java @@ -0,0 +1,51 @@ +package wks.wolfkidsounds.wildplants.world.settings; + +import com.mojang.serialization.Codec; +import com.mojang.serialization.codecs.RecordCodecBuilder; +import net.minecraft.core.Holder; +import net.minecraft.util.ExtraCodecs; +import net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration; +import net.minecraft.world.level.levelgen.placement.PlacedFeature; + +import javax.annotation.Nullable; +import java.util.Optional; + +public record WildCropConfig(int tries, int xzSpread, int ySpread, Holder primaryFeature, + @Nullable Holder floorFeature +) implements FeatureConfiguration { + public static final Codec CODEC = RecordCodecBuilder.create((config) -> config.group( + ExtraCodecs.POSITIVE_INT.fieldOf("tries").orElse(64).forGetter(WildCropConfig::tries), + ExtraCodecs.NON_NEGATIVE_INT.fieldOf("xz_spread").orElse(4).forGetter(WildCropConfig::xzSpread), + ExtraCodecs.NON_NEGATIVE_INT.fieldOf("y_spread").orElse(3).forGetter(WildCropConfig::ySpread), + PlacedFeature.CODEC.fieldOf("primary_feature").forGetter(WildCropConfig::primaryFeature), + PlacedFeature.CODEC.optionalFieldOf("floor_feature").forGetter(floorConfig -> Optional.ofNullable(floorConfig.floorFeature)) + ).apply(config, (tries, xzSpread, yspread, primary, floor) -> floor.map(placedFeatureHolder -> new WildCropConfig(tries, xzSpread, yspread, primary, placedFeatureHolder)).orElseGet(() -> new WildCropConfig(tries, xzSpread, yspread, primary, null)))); + + public WildCropConfig(int tries, int xzSpread, int ySpread, Holder primaryFeature, @Nullable Holder floorFeature) { + this.tries = tries; + this.xzSpread = xzSpread; + this.ySpread = ySpread; + this.primaryFeature = primaryFeature; + this.floorFeature = floorFeature; + } + + public int tries() { + return this.tries; + } + + public int xzSpread() { + return this.xzSpread; + } + + public int ySpread() { + return this.ySpread; + } + + public Holder primaryFeature() { + return this.primaryFeature; + } + + public Holder floorFeature() { + return this.floorFeature; + } +} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/veggieway/VeggiewayConfiguredFeatures.java b/src/main/java/wks/wolfkidsounds/wildplants/world/veggieway/VeggiewayConfiguredFeatures.java deleted file mode 100644 index b662d0c..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/veggieway/VeggiewayConfiguredFeatures.java +++ /dev/null @@ -1,50 +0,0 @@ -package wks.wolfkidsounds.wildplants.world.veggieway; - -import net.minecraft.core.Holder; -import net.minecraft.data.worldgen.features.FeatureUtils; -import net.minecraft.data.worldgen.placement.PlacementUtils; -import net.minecraft.world.level.levelgen.feature.ConfiguredFeature; -import net.minecraft.world.level.levelgen.feature.Feature; -import net.minecraft.world.level.levelgen.feature.configurations.RandomPatchConfiguration; -import net.minecraft.world.level.levelgen.feature.configurations.SimpleBlockConfiguration; -import net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider; -import wks.wolfkidsounds.wildplants.block.ModBlocks; -import wks.wolfkidsounds.wildplants.config.WildplantsConfig; -import wks.wolfkidsounds.wildplants.config.features.VeggiewayConfig; - -public class VeggiewayConfiguredFeatures { - public static Integer PATCH_SIZE_GLOBAL = WildplantsConfig.GLOBAL_PATCH_SIZE.get(); - public static Integer SPREAD_SIZE = WildplantsConfig.GLOBAL_SPREAD_SIZE.get(); - public static Integer CORN_PATCH_SIZE_VEGGIEWAY = VeggiewayConfig.CORN_PATCH_SIZE_VEGGIEWAY.get() * PATCH_SIZE_GLOBAL; - public static Integer LENTIL_PATCH_SIZE_VEGGIEWAY = VeggiewayConfig.LENTIL_PATCH_SIZE_VEGGIEWAY.get() * PATCH_SIZE_GLOBAL; - public static Integer QUINOA_PATCH_SIZE_VEGGIEWAY = VeggiewayConfig.QUINOA_PATCH_SIZE_VEGGIEWAY.get() * PATCH_SIZE_GLOBAL; - public static Integer SOYBEAN_PATCH_SIZE_VEGGIEWAY = VeggiewayConfig.SOYBEAN_PATCH_SIZE_VEGGIEWAY.get() * PATCH_SIZE_GLOBAL; - public static Integer COTTON_PATCH_SIZE_VEGGIEWAY = VeggiewayConfig.COTTON_PATCH_SIZE_VEGGIEWAY.get() * PATCH_SIZE_GLOBAL; - - //---------------------------------------------------------------------- - - public static final Holder> VEGGIEWAY_WILD_CORN_CONFIG = - FeatureUtils.register("veggieway_wild_corn_config", Feature.FLOWER, - new RandomPatchConfiguration(CORN_PATCH_SIZE_VEGGIEWAY,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.VEGGIEWAY_WILD_CORN.get()))))); - - public static final Holder> VEGGIEWAY_WILD_LENTIL_CONFIG = - FeatureUtils.register("veggieway_wild_lentil_config", Feature.FLOWER, - new RandomPatchConfiguration(LENTIL_PATCH_SIZE_VEGGIEWAY,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.VEGGIEWAY_WILD_LENTIL.get()))))); - - public static final Holder> VEGGIEWAY_WILD_QUINOA_CONFIG = - FeatureUtils.register("veggieway_wild_quinoa_config", Feature.FLOWER, - new RandomPatchConfiguration(QUINOA_PATCH_SIZE_VEGGIEWAY,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.VEGGIEWAY_WILD_QUINOA.get()))))); - - public static final Holder> VEGGIEWAY_WILD_SOYBEAN_CONFIG = - FeatureUtils.register("veggieway_wild_soybean_config", Feature.FLOWER, - new RandomPatchConfiguration(SOYBEAN_PATCH_SIZE_VEGGIEWAY,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.VEGGIEWAY_WILD_SOYBEAN.get()))))); - - public static final Holder> VEGGIEWAY_WILD_COTTON_CONFIG = - FeatureUtils.register("veggieway_wild_cotton_config", Feature.FLOWER, - new RandomPatchConfiguration(COTTON_PATCH_SIZE_VEGGIEWAY,SPREAD_SIZE,SPREAD_SIZE, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, - new SimpleBlockConfiguration(BlockStateProvider.simple(ModBlocks.VEGGIEWAY_WILD_COTTON.get()))))); -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/veggieway/VeggiewayPlacedFeatures.java b/src/main/java/wks/wolfkidsounds/wildplants/world/veggieway/VeggiewayPlacedFeatures.java deleted file mode 100644 index 8517e29..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/veggieway/VeggiewayPlacedFeatures.java +++ /dev/null @@ -1,40 +0,0 @@ -package wks.wolfkidsounds.wildplants.world.veggieway; - -import net.minecraft.core.Holder; -import net.minecraft.data.worldgen.placement.PlacementUtils; -import net.minecraft.world.level.levelgen.placement.*; -import wks.wolfkidsounds.wildplants.config.WildplantsConfig; -import wks.wolfkidsounds.wildplants.config.features.VeggiewayConfig; - -public class VeggiewayPlacedFeatures { - - public static Integer FREQUENCY_GLOBAL = WildplantsConfig.GLOBAL_FREQUENCY.get(); - public static Integer CORN_FREQUENCY_VEGGIEWAY = VeggiewayConfig.CORN_FREQUENCY_VEGGIEWAY.get() * FREQUENCY_GLOBAL; - public static Integer LENTIL_FREQUENCY_VEGGIEWAY = VeggiewayConfig.LENTIL_FREQUENCY_VEGGIEWAY.get() * FREQUENCY_GLOBAL; - public static Integer QUINOA_FREQUENCY_VEGGIEWAY = VeggiewayConfig.QUINOA_FREQUENCY_VEGGIEWAY.get() * FREQUENCY_GLOBAL; - public static Integer SOYBEAN_FREQUENCY_VEGGIEWAY = VeggiewayConfig.SOYBEAN_FREQUENCY_VEGGIEWAY.get() * FREQUENCY_GLOBAL; - public static Integer COTTON_FREQUENCY_VEGGIEWAY = VeggiewayConfig.COTTON_FREQUENCY_VEGGIEWAY.get() * FREQUENCY_GLOBAL; - - //---------------------------------------------------------------------- - - public static final Holder VEGGIEWAY_WILD_CORN_PLACED = PlacementUtils.register("veggieway_wild_corn_placed", - VeggiewayConfiguredFeatures.VEGGIEWAY_WILD_CORN_CONFIG, RarityFilter.onAverageOnceEvery(CORN_FREQUENCY_VEGGIEWAY), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder VEGGIEWAY_WILD_LENTIL_PLACED = PlacementUtils.register("veggieway_wild_lentil_placed", - VeggiewayConfiguredFeatures.VEGGIEWAY_WILD_LENTIL_CONFIG, RarityFilter.onAverageOnceEvery(LENTIL_FREQUENCY_VEGGIEWAY), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder VEGGIEWAY_WILD_QUINOA_PLACED = PlacementUtils.register("veggieway_wild_quinoa_placed", - VeggiewayConfiguredFeatures.VEGGIEWAY_WILD_QUINOA_CONFIG, RarityFilter.onAverageOnceEvery(QUINOA_FREQUENCY_VEGGIEWAY), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder VEGGIEWAY_WILD_SOYBEAN_PLACED = PlacementUtils.register("veggieway_wild_soybean_placed", - VeggiewayConfiguredFeatures.VEGGIEWAY_WILD_SOYBEAN_CONFIG, RarityFilter.onAverageOnceEvery(SOYBEAN_FREQUENCY_VEGGIEWAY), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - - public static final Holder VEGGIEWAY_WILD_COTTON_PLACED = PlacementUtils.register("veggieway_wild_cotton_placed", - VeggiewayConfiguredFeatures.VEGGIEWAY_WILD_COTTON_CONFIG, RarityFilter.onAverageOnceEvery(COTTON_FREQUENCY_VEGGIEWAY), - InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, BiomeFilter.biome()); - -} diff --git a/src/main/java/wks/wolfkidsounds/wildplants/world/veggieway/VeggiewayWildplantsGeneration.java b/src/main/java/wks/wolfkidsounds/wildplants/world/veggieway/VeggiewayWildplantsGeneration.java deleted file mode 100644 index 77e528b..0000000 --- a/src/main/java/wks/wolfkidsounds/wildplants/world/veggieway/VeggiewayWildplantsGeneration.java +++ /dev/null @@ -1,73 +0,0 @@ -package wks.wolfkidsounds.wildplants.world.veggieway; - -import net.minecraft.core.Holder; -import net.minecraft.core.Registry; -import net.minecraft.resources.ResourceKey; -import net.minecraft.world.level.biome.Biome; -import net.minecraft.world.level.levelgen.GenerationStep; -import net.minecraft.world.level.levelgen.placement.PlacedFeature; -import net.minecraftforge.common.BiomeDictionary; -import net.minecraftforge.event.world.BiomeLoadingEvent; -import wks.wolfkidsounds.wildplants.config.features.VeggiewayConfig; - -import java.util.List; -import java.util.Set; -import java.util.function.Supplier; - -public class VeggiewayWildplantsGeneration { - - public static void generateWildCorn(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(VeggiewayConfig.CORN_BIOME_TYPE_VEGGIEWAY.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(VeggiewayPlacedFeatures.VEGGIEWAY_WILD_CORN_PLACED); - } - } - - public static void generateWildLentil(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(VeggiewayConfig.LENTIL_BIOME_TYPE_VEGGIEWAY.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(VeggiewayPlacedFeatures.VEGGIEWAY_WILD_LENTIL_PLACED); - } - } - - public static void generateWildQuinoa(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(VeggiewayConfig.QUINOA_BIOME_TYPE_VEGGIEWAY.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(VeggiewayPlacedFeatures.VEGGIEWAY_WILD_QUINOA_PLACED); - } - } - - public static void generateWildSoybean(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(VeggiewayConfig.SOYBEAN_BIOME_TYPE_VEGGIEWAY.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(VeggiewayPlacedFeatures.VEGGIEWAY_WILD_SOYBEAN_PLACED); - } - } - - public static void generateWildCotton(final BiomeLoadingEvent event) { - ResourceKey key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); - Set types = BiomeDictionary.getTypes(key); - - if(types.contains(BiomeDictionary.Type.getType(VeggiewayConfig.COTTON_BIOME_TYPE_VEGGIEWAY.get()))) { - List> base = - event.getGeneration().getFeatures(GenerationStep.Decoration.VEGETAL_DECORATION); - base.add(VeggiewayPlacedFeatures.VEGGIEWAY_WILD_COTTON_PLACED); - } - } -} diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 26e879d..493f98a 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.18.2_2.5.1_forge" +version="1.18.2_3.1.1_forge" displayName="Wildplants" credits="WOLFKIDSOUNDS" displayURL="https://wolfkidsounds.com" diff --git a/src/main/resources/assets/wildplants/lang/en_us.json b/src/main/resources/assets/wildplants/lang/en_us.json index 0e5e75b..32dfb57 100644 --- a/src/main/resources/assets/wildplants/lang/en_us.json +++ b/src/main/resources/assets/wildplants/lang/en_us.json @@ -1,5 +1,5 @@ { - "itemGroup.tab_wild_plants": "Wildplants", + "itemGroup.wildplants_minecraft_tab": "Wildplants: Minecraft", "block.wildplants.minecraft_wild_wheat": "Wild Wheat", "block.wildplants.minecraft_wild_carrots": "Wild Carrot",