Search in sources :

Example 1 with BuildingEntry

use of com.minecolonies.api.colony.buildings.registry.BuildingEntry in project minecolonies by Minecolonies.

the class CommonMinecoloniesAPIImpl method onRegistryNewRegistry.

public void onRegistryNewRegistry(final RegistryEvent.NewRegistry event) {
    buildingRegistry = new RegistryBuilder<BuildingEntry>().setName(new ResourceLocation(Constants.MOD_ID, "buildings")).setDefaultKey(new ResourceLocation(Constants.MOD_ID, "null")).disableSaving().allowModification().setType(BuildingEntry.class).setIDRange(0, Integer.MAX_VALUE - 1).create();
    jobRegistry = new RegistryBuilder<JobEntry>().setName(new ResourceLocation(Constants.MOD_ID, "jobs")).setDefaultKey(new ResourceLocation(Constants.MOD_ID, "null")).disableSaving().allowModification().setType(JobEntry.class).setIDRange(0, Integer.MAX_VALUE - 1).create();
    guardTypeRegistry = new RegistryBuilder<GuardType>().setName(new ResourceLocation(Constants.MOD_ID, "guardtypes")).setDefaultKey(new ResourceLocation(Constants.MOD_ID, "null")).disableSaving().allowModification().setDefaultKey(ModGuardTypes.KNIGHT_ID).setType(GuardType.class).setIDRange(0, Integer.MAX_VALUE - 1).create();
    interactionHandlerRegistry = new RegistryBuilder<InteractionResponseHandlerEntry>().setName(new ResourceLocation(Constants.MOD_ID, "interactionresponsehandlers")).setDefaultKey(new ResourceLocation(Constants.MOD_ID, "null")).disableSaving().allowModification().setType(InteractionResponseHandlerEntry.class).setIDRange(0, Integer.MAX_VALUE - 1).create();
    colonyEventRegistry = new RegistryBuilder<ColonyEventTypeRegistryEntry>().setName(new ResourceLocation(Constants.MOD_ID, "colonyeventtypes")).setDefaultKey(new ResourceLocation(Constants.MOD_ID, "null")).disableSaving().allowModification().setType(ColonyEventTypeRegistryEntry.class).setIDRange(0, Integer.MAX_VALUE - 1).create();
    colonyEventDescriptionRegistry = new RegistryBuilder<ColonyEventDescriptionTypeRegistryEntry>().setName(new ResourceLocation(Constants.MOD_ID, "colonyeventdesctypes")).setDefaultKey(new ResourceLocation(Constants.MOD_ID, "null")).disableSaving().allowModification().setType(ColonyEventDescriptionTypeRegistryEntry.class).setIDRange(0, Integer.MAX_VALUE - 1).create();
    recipeTypeEntryRegistry = new RegistryBuilder<RecipeTypeEntry>().setName(new ResourceLocation(Constants.MOD_ID, "recipetypeentries")).setDefaultKey(new ResourceLocation(Constants.MOD_ID, "classic")).disableSaving().allowModification().setType(RecipeTypeEntry.class).setIDRange(0, Integer.MAX_VALUE - 1).create();
    researchRequirementRegistry = new RegistryBuilder<ResearchRequirementEntry>().setName(new ResourceLocation(Constants.MOD_ID, "researchrequirementtypes")).setDefaultKey(RESEARCH_RESEARCH_REQ_ID).disableSaving().allowModification().setType(ResearchRequirementEntry.class).setIDRange(0, Integer.MAX_VALUE - 1).create();
    researchEffectRegistry = new RegistryBuilder<ResearchEffectEntry>().setName(new ResourceLocation(Constants.MOD_ID, "researcheffecttypes")).setDefaultKey(GLOBAL_EFFECT_ID).disableSaving().allowModification().setType(ResearchEffectEntry.class).setIDRange(0, Integer.MAX_VALUE - 1).create();
}
Also used : JobEntry(com.minecolonies.api.colony.jobs.registry.JobEntry) ColonyEventDescriptionTypeRegistryEntry(com.minecolonies.api.colony.colonyEvents.registry.ColonyEventDescriptionTypeRegistryEntry) ResearchEffectEntry(com.minecolonies.api.research.effects.registry.ResearchEffectEntry) InteractionResponseHandlerEntry(com.minecolonies.api.colony.interactionhandling.registry.InteractionResponseHandlerEntry) RecipeTypeEntry(com.minecolonies.api.crafting.registry.RecipeTypeEntry) BuildingEntry(com.minecolonies.api.colony.buildings.registry.BuildingEntry) ResourceLocation(net.minecraft.util.ResourceLocation) RegistryBuilder(net.minecraftforge.registries.RegistryBuilder) GuardType(com.minecolonies.api.colony.guardtype.GuardType) ColonyEventTypeRegistryEntry(com.minecolonies.api.colony.colonyEvents.registry.ColonyEventTypeRegistryEntry) ResearchRequirementEntry(com.minecolonies.api.research.registry.ResearchRequirementEntry)

Example 2 with BuildingEntry

use of com.minecolonies.api.colony.buildings.registry.BuildingEntry in project minecolonies by Minecolonies.

the class ModBuildingsInitializer method init.

@SuppressWarnings("PMD.ExcessiveMethodLength")
public static void init(final RegistryEvent.Register<BuildingEntry> event) {
    final IForgeRegistry<BuildingEntry> reg = event.getRegistry();
    ModBuildings.archery = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutArchery).setBuildingProducer(BuildingArchery::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.ARCHERY_ID)).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new WorkAtHomeBuildingModule(ModJobs.archer, Skill.Agility, Skill.Adaptability, false, ISchematicProvider::getBuildingLevel), () -> ArcherSquireModuleView::new).addBuildingModuleProducer(BedHandlingModule::new).createBuildingEntry();
    ModBuildings.bakery = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutBaker).setBuildingProducer(BuildingBaker::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.BAKERY_ID)).addBuildingModuleProducer(() -> new BuildingBaker.CraftingModule(ModJobs.baker), () -> CraftingModuleView::new).addBuildingModuleProducer(() -> new BuildingBaker.SmeltingModule(ModJobs.baker), () -> CraftingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(FurnaceUserModule::new).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.baker, Skill.Knowledge, Skill.Dexterity, false, (b) -> 1, Skill.Dexterity, Skill.Knowledge), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new ItemListModule(FUEL_LIST), () -> () -> new ItemListModuleView(FUEL_LIST, COM_MINECOLONIES_REQUESTS_BURNABLE, false, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getFuel())).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.barracks = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutBarracks).setBuildingProducer(BuildingBarracks::new).setBuildingViewProducer(() -> BuildingBarracks.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.BARRACKS_ID)).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).createBuildingEntry();
    ModBuildings.barracksTower = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutBarracksTower).setBuildingProducer(BuildingBarracksTower::new).setBuildingViewProducer(() -> BuildingBarracksTower.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.BARRACKS_TOWER_ID)).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(BedHandlingModule::new).addBuildingModuleProducer(() -> new GuardBuildingModule(ModGuardTypes.knight, true, ISchematicProvider::getBuildingLevel), () -> CombinedHiringLimitModuleView::new).addBuildingModuleProducer(() -> new GuardBuildingModule(ModGuardTypes.ranger, true, ISchematicProvider::getBuildingLevel), () -> CombinedHiringLimitModuleView::new).addBuildingModuleProducer(() -> new GuardBuildingModule(ModGuardTypes.druid, true, ISchematicProvider::getBuildingLevel), () -> CombinedHiringLimitModuleView::new).addBuildingModuleViewProducer(() -> () -> new ToolModuleView(ModItems.scepterGuard)).addBuildingModuleProducer(() -> new EntityListModule(HOSTILE_LIST), () -> () -> new EntityListModuleView(HOSTILE_LIST, COM_MINECOLONIES_HOSTILES, true)).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractBuildingGuards.GUARD_TASK, new GuardTaskSetting(GuardTaskSetting.PATROL, GuardTaskSetting.GUARD, GuardTaskSetting.FOLLOW)).with(AbstractBuildingGuards.RETREAT, new BoolSetting(true)).with(AbstractBuildingGuards.HIRE_TRAINEE, new BoolSetting(true)).with(AbstractBuildingGuards.PATROL_MODE, new PatrolModeSetting()).with(AbstractBuildingGuards.FOLLOW_MODE, new FollowModeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.blacksmith = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutBlacksmith).setBuildingProducer(BuildingBlacksmith::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.BLACKSMITH_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.blacksmith, Skill.Strength, Skill.Focus, false, (b) -> 1, Skill.Strength, Skill.Focus), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingBlacksmith.CraftingModule(ModJobs.blacksmith), () -> CraftingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.builder = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutBuilder).setBuildingProducer(BuildingBuilder::new).setBuildingViewProducer(() -> BuildingBuilder.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.BUILDER_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.builder, Skill.Adaptability, Skill.Athletics, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(BuildingBuilder.MODE, new StringSetting(BuildingBuilder.AUTO_SETTING, BuildingBuilder.MANUAL_SETTING)).with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()).with(BuildingBuilder.BUILDING_MODE, new BuilderModeSetting()), () -> SettingsModuleView::new).addBuildingModuleProducer(() -> new SimpleCraftingModule(ModJobs.builder), () -> CraftingModuleView::new).addBuildingModuleViewProducer(() -> WorkOrderListModuleView::new).addBuildingModuleProducer(BuildingResourcesModule::new, () -> BuildingResourcesModuleView::new).createBuildingEntry();
    ModBuildings.chickenHerder = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutChickenHerder).setBuildingProducer(BuildingChickenHerder::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.CHICKENHERDER_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.chickenHerder, Skill.Adaptability, Skill.Agility, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractBuilding.BREEDING, new BoolSetting(true)).with(AbstractBuilding.FEEDING, new BoolSetting(true)), () -> SettingsModuleView::new).addBuildingModuleProducer(BuildingChickenHerder.HerdingModule::new).createBuildingEntry();
    ModBuildings.combatAcademy = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutCombatAcademy).setBuildingProducer(BuildingCombatAcademy::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.COMBAT_ACADEMY_ID)).addBuildingModuleProducer(() -> new WorkAtHomeBuildingModule(ModJobs.combat, Skill.Adaptability, Skill.Stamina, false, ISchematicProvider::getBuildingLevel), () -> KnightSquireBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(BedHandlingModule::new).createBuildingEntry();
    ModBuildings.composter = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutComposter).setBuildingProducer(BuildingComposter::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.COMPOSTER_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.composter, Skill.Stamina, Skill.Athletics, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new ItemListModule(COMPOSTABLE_LIST), () -> () -> new ItemListModuleView(COMPOSTABLE_LIST, COM_MINECOLONIES_REQUESTS_COMPOSTABLE_UI, false, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getCompostInputs())).addBuildingModuleProducer(() -> new SettingsModule().with(BuildingComposter.PRODUCE_DIRT, new BoolSetting(false)).with(BuildingComposter.MIN, new IntSetting(16)), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.cook = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutCook).setBuildingProducer(BuildingCook::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.COOK_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.cook, Skill.Adaptability, Skill.Knowledge, true, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.cookassistant, Skill.Creativity, Skill.Knowledge, false, (b) -> b.getBuildingLevel() >= 3 ? 1 : 0, Skill.Knowledge, Skill.Creativity), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingCook.CraftingModule(ModJobs.cookassistant), () -> CraftingModuleView::new).addBuildingModuleProducer(() -> new BuildingCook.SmeltingModule(ModJobs.cookassistant), () -> CraftingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(FurnaceUserModule::new).addBuildingModuleProducer(() -> new ItemListModule(FUEL_LIST), () -> () -> new ItemListModuleView(FUEL_LIST, COM_MINECOLONIES_REQUESTS_BURNABLE, false, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getFuel())).addBuildingModuleProducer(() -> new ItemListModule(FOOD_EXCLUSION_LIST).onResetToDefaults(BuildingCook::onResetFoodExclusionList), () -> () -> new ItemListModuleView(FOOD_EXCLUSION_LIST, COM_MINECOLONIES_REQUESTS_FOOD, true, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getEdibles(buildingView.getBuildingLevel() - 1))).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).createBuildingEntry();
    ModBuildings.cowboy = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutCowboy).setBuildingProducer(BuildingCowboy::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.COWBOY_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.cowboy, Skill.Athletics, Skill.Stamina, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractBuilding.BREEDING, new BoolSetting(true)).with(AbstractBuilding.FEEDING, new BoolSetting(true)).with(BuildingCowboy.MILKING, new BoolSetting(false)), () -> SettingsModuleView::new).addBuildingModuleProducer(() -> new AnimalHerdingModule(ModJobs.cowboy, EntityType.COW, new ItemStack(Items.WHEAT, 2))).addBuildingModuleProducer(BuildingCowboy.MilkingModule::new).createBuildingEntry();
    ModBuildings.crusher = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutCrusher).setBuildingProducer(BuildingCrusher::new).setBuildingViewProducer(() -> BuildingCrusher.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.CRUSHER_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.crusher, Skill.Stamina, Skill.Strength, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingCrusher.CraftingModule(ModJobs.crusher), () -> CraftingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.deliveryman = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutDeliveryman).setBuildingProducer(BuildingDeliveryman::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.DELIVERYMAN_ID)).addBuildingModuleProducer(() -> new DeliverymanAssignmentModule(ModJobs.delivery, Skill.Agility, Skill.Adaptability, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.farmer = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutFarmer).setBuildingProducer(BuildingFarmer::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.FARMER_ID)).addBuildingModuleProducer(() -> new BuildingFarmer.CraftingModule(ModJobs.farmer), () -> CraftingModuleView::new).addBuildingModuleProducer(() -> new FarmerAssignmentModule(ModJobs.farmer, Skill.Stamina, Skill.Athletics, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(BuildingFarmer.FERTILIZE, new BoolSetting(true)).with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).addBuildingModuleProducer(FarmerFieldModule::new, () -> FarmerFieldModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).createBuildingEntry();
    ModBuildings.fisherman = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutFisherman).setBuildingProducer(BuildingFisherman::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.FISHERMAN_ID)).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.fisherman, Skill.Focus, Skill.Agility, false, (b) -> 1), () -> WorkerBuildingModuleView::new).createBuildingEntry();
    ModBuildings.guardTower = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutGuardTower).setBuildingProducer(BuildingGuardTower::new).setBuildingViewProducer(() -> BuildingGuardTower.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.GUARD_TOWER_ID)).addBuildingModuleProducer(() -> new GuardBuildingModule(ModGuardTypes.knight, true, (b) -> 1), () -> CombinedHiringLimitModuleView::new).addBuildingModuleProducer(() -> new GuardBuildingModule(ModGuardTypes.ranger, true, (b) -> 1), () -> CombinedHiringLimitModuleView::new).addBuildingModuleProducer(() -> new GuardBuildingModule(ModGuardTypes.druid, true, (b) -> 1), () -> CombinedHiringLimitModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(BedHandlingModule::new).addBuildingModuleViewProducer(() -> () -> new ToolModuleView(ModItems.scepterGuard)).addBuildingModuleProducer(() -> new EntityListModule(HOSTILE_LIST), () -> () -> new EntityListModuleView(HOSTILE_LIST, COM_MINECOLONIES_HOSTILES, true)).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractBuildingGuards.GUARD_TASK, new GuardTaskSetting()).with(AbstractBuildingGuards.RETREAT, new BoolSetting(true)).with(AbstractBuildingGuards.HIRE_TRAINEE, new BoolSetting(true)).with(AbstractBuildingGuards.PATROL_MODE, new PatrolModeSetting()).with(AbstractBuildingGuards.FOLLOW_MODE, new FollowModeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.home = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutHome).setBuildingProducer((colony, blockPos) -> new DefaultBuildingInstance(colony, blockPos, "citizen", 5)).setBuildingViewProducer(() -> HomeBuildingModule.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.HOME_ID)).addBuildingModuleProducer(BedHandlingModule::new).addBuildingModuleProducer(HomeBuildingModule::new).addBuildingModuleProducer(LivingBuildingModule::new).createBuildingEntry();
    ModBuildings.library = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutLibrary).setBuildingProducer(BuildingLibrary::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.LIBRARY_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.student, Skill.Intelligence, Skill.Intelligence, true, (b) -> 2 * b.getBuildingLevel()), () -> StudentBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).createBuildingEntry();
    ModBuildings.lumberjack = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutLumberjack).setBuildingProducer(BuildingLumberjack::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.LUMBERJACK_ID)).addBuildingModuleProducer(() -> new BuildingLumberjack.CraftingModule(ModJobs.lumberjack), () -> CraftingModuleView::new).addBuildingModuleProducer(() -> new ItemListModule(SAPLINGS_LIST), () -> () -> new ItemListModuleView(SAPLINGS_LIST, COM_MINECOLONIES_REQUESTS_SAPLINGS, true, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getCopyOfSaplings())).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new LumberjackAssignmentModule(ModJobs.lumberjack, Skill.Strength, Skill.Focus, false, (b) -> 1, Skill.Focus, Skill.Strength), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(BuildingLumberjack.REPLANT, new BoolSetting(true)).with(BuildingLumberjack.RESTRICT, new BoolSetting(false)).with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()).with(BuildingLumberjack.DYNAMIC_TREES_SIZE, new DynamicTreesSetting()), () -> SettingsModuleView::new).addBuildingModuleViewProducer(() -> () -> new ToolModuleView(ModItems.scepterLumberjack)).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).createBuildingEntry();
    ModBuildings.miner = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutMiner).setBuildingProducer(BuildingMiner::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.MINER_ID)).addBuildingModuleProducer(() -> new MinerBuildingModule(ModJobs.miner, Skill.Strength, Skill.Stamina, false, (b) -> 1), () -> CombinedHiringLimitModuleView::new).addBuildingModuleProducer(() -> new MinerBuildingModule(ModJobs.quarrier, Skill.Strength, Skill.Stamina, false, (b) -> 1), () -> CombinedHiringLimitModuleView::new).addBuildingModuleProducer(() -> new SimpleCraftingModule(ModJobs.miner), () -> CraftingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(BuildingResourcesModule::new, () -> BuildingResourcesModuleView::new).addBuildingModuleProducer(MinerLevelManagementModule::new, () -> MinerLevelManagementModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()).with(BuildingMiner.FILL_BLOCK, new BlockSetting((BlockItem) Items.COBBLESTONE)), () -> SettingsModuleView::new).addBuildingModuleViewProducer(() -> MinerGuardAssignModuleView::new).createBuildingEntry();
    ModBuildings.sawmill = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutSawmill).setBuildingProducer(BuildingSawmill::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.SAWMILL_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.sawmill, Skill.Knowledge, Skill.Dexterity, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingSawmill.CraftingModule(ModJobs.sawmill), () -> CraftingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.shepherd = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutShepherd).setBuildingProducer(BuildingShepherd::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.SHEPHERD_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.shepherd, Skill.Focus, Skill.Strength, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractBuilding.BREEDING, new BoolSetting(true)).with(AbstractBuilding.FEEDING, new BoolSetting(true)).with(BuildingShepherd.DYEING, new BoolSetting(true)).with(BuildingShepherd.SHEARING, new BoolSetting(true)), () -> SettingsModuleView::new).addBuildingModuleProducer(BuildingShepherd.HerdingModule::new).createBuildingEntry();
    ModBuildings.sifter = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutSifter).setBuildingProducer(BuildingSifter::new).setBuildingViewProducer(() -> BuildingSifter.View::new).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.sifter, Skill.Focus, Skill.Strength, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingSifter.CraftingModule(ModJobs.sifter), () -> CraftingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.SIFTER_ID)).createBuildingEntry();
    ModBuildings.smeltery = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutSmeltery).setBuildingProducer(BuildingSmeltery::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.SMELTERY_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.smelter, Skill.Athletics, Skill.Strength, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingSmeltery.SmeltingModule(ModJobs.smelter), () -> CraftingModuleView::new).addBuildingModuleProducer(FurnaceUserModule::new).addBuildingModuleProducer(() -> new ItemListModule(FUEL_LIST), () -> () -> new ItemListModuleView(FUEL_LIST, COM_MINECOLONIES_REQUESTS_BURNABLE, false, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getFuel())).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new ItemListModule(ORE_LIST), () -> () -> new ItemListModuleView(ORE_LIST, COM_MINECOLONIES_REQUESTS_SMELTABLE_ORE, true, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getSmeltableOres())).createBuildingEntry();
    ModBuildings.stoneMason = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutStonemason).setBuildingProducer(BuildingStonemason::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.STONE_MASON_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.stoneMason, Skill.Creativity, Skill.Dexterity, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingStonemason.CraftingModule(ModJobs.stoneMason), () -> CraftingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.stoneSmelter = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutStoneSmeltery).setBuildingProducer(BuildingStoneSmeltery::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.STONE_SMELTERY_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.stoneSmeltery, Skill.Athletics, Skill.Dexterity, false, (b) -> 1, Skill.Dexterity, Skill.Athletics), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingStoneSmeltery.SmeltingModule(ModJobs.stoneSmeltery), () -> CraftingModuleView::new).addBuildingModuleProducer(FurnaceUserModule::new).addBuildingModuleProducer(() -> new ItemListModule(FUEL_LIST), () -> () -> new ItemListModuleView(FUEL_LIST, COM_MINECOLONIES_REQUESTS_BURNABLE, false, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getFuel())).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.swineHerder = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutSwineHerder).setBuildingProducer(BuildingSwineHerder::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.SWINE_HERDER_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.swineHerder, Skill.Strength, Skill.Athletics, true, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractBuilding.BREEDING, new BoolSetting(true)).with(AbstractBuilding.FEEDING, new BoolSetting(true)), () -> SettingsModuleView::new).addBuildingModuleProducer(() -> new AnimalHerdingModule(ModJobs.swineHerder, EntityType.PIG, new ItemStack(Items.CARROT, 2))).createBuildingEntry();
    ModBuildings.townHall = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutTownHall).setBuildingProducer(BuildingTownHall::new).setBuildingViewProducer(() -> BuildingTownHall.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.TOWNHALL_ID)).createBuildingEntry();
    ModBuildings.wareHouse = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutWareHouse).setBuildingProducer(BuildingWareHouse::new).setBuildingViewProducer(() -> BuildingWareHouse.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.WAREHOUSE_ID)).addBuildingModuleProducer(CourierAssignmentModule::new, () -> CourierAssignmentModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(WarehouseModule::new, () -> WarehouseOptionsModuleView::new).createBuildingEntry();
    ModBuildings.postBox = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockPostBox).setBuildingProducer(PostBox::new).setBuildingViewProducer(() -> PostBox.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.POSTBOX_ID)).createBuildingEntry();
    ModBuildings.florist = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutFlorist).setBuildingProducer(BuildingFlorist::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.FLORIST_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.florist, Skill.Dexterity, Skill.Agility, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new ItemListModule(BUILDING_FLOWER_LIST), () -> FloristFlowerListModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).createBuildingEntry();
    ModBuildings.enchanter = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutEnchanter).setBuildingProducer(BuildingEnchanter::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.ENCHANTER_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.enchanter, Skill.Mana, Skill.Knowledge, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingEnchanter.CraftingModule(ModJobs.enchanter), () -> CraftingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(EnchanterStationsModule::new, () -> EnchanterStationsModuleView::new).createBuildingEntry();
    ModBuildings.university = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutUniversity).setBuildingProducer(BuildingUniversity::new).setBuildingViewProducer(() -> EmptyView::new).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.researcher, Skill.Knowledge, Skill.Mana, true, ISchematicProvider::getBuildingLevel), () -> WorkerBuildingModuleView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.UNIVERSITY_ID)).addBuildingModuleViewProducer(() -> UniversityResearchModuleView::new).createBuildingEntry();
    ModBuildings.hospital = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutHospital).setBuildingProducer(BuildingHospital::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.HOSPITAL_ID)).addBuildingModuleProducer(() -> new HospitalAssignmentModule(ModJobs.healer, Skill.Mana, Skill.Knowledge, true, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).createBuildingEntry();
    ModBuildings.stash = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockStash).setBuildingProducer(Stash::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.STASH_ID)).createBuildingEntry();
    ModBuildings.school = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutSchool).setBuildingProducer(BuildingSchool::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.SCHOOL_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.teacher, Skill.Knowledge, Skill.Mana, true, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new ChildrenBuildingModule(ModJobs.pupil, Skill.Knowledge, Skill.Mana, true, (b) -> 2 * b.getBuildingLevel()), () -> PupilBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).createBuildingEntry();
    ModBuildings.glassblower = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutGlassblower).setBuildingProducer(BuildingGlassblower::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.GLASSBLOWER_ID)).addBuildingModuleProducer(() -> new BuildingGlassblower.CraftingModule(ModJobs.glassblower), () -> CraftingModuleView::new).addBuildingModuleProducer(() -> new BuildingGlassblower.SmeltingModule(ModJobs.glassblower), () -> CraftingModuleView::new).addBuildingModuleProducer(FurnaceUserModule::new).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.glassblower, Skill.Creativity, Skill.Focus, false, (b) -> 1, Skill.Focus, Skill.Creativity), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new ItemListModule(FUEL_LIST), () -> () -> new ItemListModuleView(FUEL_LIST, COM_MINECOLONIES_REQUESTS_BURNABLE, false, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getFuel())).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.dyer = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutDyer).setBuildingProducer(BuildingDyer::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.DYER_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.dyer, Skill.Creativity, Skill.Dexterity, false, (b) -> 1, Skill.Dexterity, Skill.Creativity), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingDyer.CraftingModule(ModJobs.dyer), () -> CraftingModuleView::new).addBuildingModuleProducer(() -> new BuildingDyer.SmeltingModule(ModJobs.dyer), () -> CraftingModuleView::new).addBuildingModuleProducer(FurnaceUserModule::new).addBuildingModuleProducer(() -> new ItemListModule(FUEL_LIST), () -> () -> new ItemListModuleView(FUEL_LIST, COM_MINECOLONIES_REQUESTS_BURNABLE, false, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getFuel())).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.fletcher = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutFletcher).setBuildingProducer(BuildingFletcher::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.FLETCHER_ID)).addBuildingModuleProducer(() -> new BuildingFletcher.CraftingModule(ModJobs.fletcher), () -> CraftingModuleView::new).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.fletcher, Skill.Dexterity, Skill.Creativity, true, (b) -> 1, Skill.Creativity, Skill.Dexterity), () -> WorkerBuildingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.tavern = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutTavern).setBuildingProducer((colony, blockPos) -> new DefaultBuildingInstance(colony, blockPos, "tavern", 3)).setBuildingViewProducer(() -> TavernBuildingModule.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.TAVERN_ID)).addBuildingModuleProducer(BedHandlingModule::new).addBuildingModuleProducer(TavernLivingBuildingModule::new).addBuildingModuleProducer(TavernBuildingModule::new).createBuildingEntry();
    ModBuildings.mechanic = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutMechanic).setBuildingProducer(BuildingMechanic::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.MECHANIC_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.mechanic, Skill.Knowledge, Skill.Agility, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingMechanic.CraftingModule(ModJobs.mechanic), () -> CraftingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.plantation = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutPlantation).setBuildingProducer(BuildingPlantation::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.PLANTATION_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.planter, Skill.Agility, Skill.Dexterity, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingPlantation.CraftingModule(ModJobs.planter), () -> CraftingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(BuildingPlantation.MODE, new PlantationSetting(Items.SUGAR_CANE.getDescriptionId(), Items.CACTUS.getDescriptionId(), Items.BAMBOO.getDescriptionId())).with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.rabbitHutch = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutRabbitHutch).setBuildingProducer(BuildingRabbitHutch::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.RABBIT_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.rabbitHerder, Skill.Agility, Skill.Athletics, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractBuilding.BREEDING, new BoolSetting(true)).with(AbstractBuilding.FEEDING, new BoolSetting(true)), () -> SettingsModuleView::new).addBuildingModuleProducer(() -> new AnimalHerdingModule(ModJobs.rabbitHerder, EntityType.RABBIT, new ItemStack(Items.CARROT, 2))).createBuildingEntry();
    // todo we want two here, one custom for the concrete placement, and one crafting for the normal crafting of the powder.
    ModBuildings.concreteMixer = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutConcreteMixer).setBuildingProducer(BuildingConcreteMixer::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.CONCRETE_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.concreteMixer, Skill.Stamina, Skill.Dexterity, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingConcreteMixer.CraftingModule(ModJobs.concreteMixer), () -> CraftingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.beekeeper = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutBeekeeper).setBuildingProducer(BuildingBeekeeper::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.BEEKEEPER_ID)).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.beekeeper, Skill.Dexterity, Skill.Adaptability, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractBuilding.BREEDING, new BoolSetting(true)).with(BuildingBeekeeper.MODE, new StringSetting(BuildingBeekeeper.HONEYCOMB, BuildingBeekeeper.HONEY, BuildingBeekeeper.BOTH)), () -> SettingsModuleView::new).addBuildingModuleProducer(() -> new ItemListModule(BUILDING_FLOWER_LIST), () -> () -> new ItemListModuleView(BUILDING_FLOWER_LIST, COM_MINECOLONIES_COREMOD_REQUEST_FLOWERS, false, (buildingView) -> CompatibilityManager.getAllBeekeeperFlowers())).addBuildingModuleViewProducer(() -> () -> new ToolModuleView(ModItems.scepterBeekeeper)).addBuildingModuleProducer(BuildingBeekeeper.HerdingModule::new).createBuildingEntry();
    ModBuildings.mysticalSite = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutMysticalSite).setBuildingProducer(BuildingMysticalSite::new).setBuildingViewProducer(() -> BuildingMysticalSite.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.MYSTICAL_SITE_ID)).createBuildingEntry();
    ModBuildings.graveyard = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutGraveyard).setBuildingProducer(BuildingGraveyard::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.GRAVEYARD_ID)).addBuildingModuleProducer(GraveyardManagementModule::new, () -> GraveyardManagementModuleView::new).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.undertaker, Skill.Strength, Skill.Mana, false, (b) -> 1), () -> WorkerBuildingModuleView::new).createBuildingEntry();
    ModBuildings.simpleQuarry = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockSimpleQuarry).setBuildingProducer((colony, blockPos) -> new DefaultBuildingInstance(colony, blockPos, ModBuildings.SIMPLE_QUARRY_ID, 1)).setBuildingViewProducer(() -> EmptyView::new).addBuildingModuleProducer(QuarryModule::new, () -> MinerAssignmentModuleView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.SIMPLE_QUARRY_ID)).createBuildingEntry();
    ModBuildings.mediumQuarry = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockMediumQuarry).setBuildingProducer((colony, blockPos) -> new DefaultBuildingInstance(colony, blockPos, ModBuildings.MEDIUM_QUARRY_ID, 1)).setBuildingViewProducer(() -> EmptyView::new).addBuildingModuleProducer(QuarryModule::new, () -> MinerAssignmentModuleView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.MEDIUM_QUARRY_ID)).createBuildingEntry();
    /*ModBuildings.largeQuarry = new BuildingEntry.Builder()
                                   .setBuildingBlock(ModBlocks.blockLargeQuarry)
                                   .setBuildingProducer((colony, blockPos) -> new DefaultBuildingInstance(colony, blockPos, "largequarry", 1)).setBuildingViewProducer(() -> EmptyView::new)
                                   .addBuildingModuleProducer(QuarryModule::new, () -> MinerAssignmentModuleView::new)
                                   .setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.LARGE_QUARRY_ID))
                                   .createBuildingEntry();*/
    reg.register(ModBuildings.archery);
    reg.register(ModBuildings.bakery);
    reg.register(ModBuildings.barracks);
    reg.register(ModBuildings.barracksTower);
    reg.register(ModBuildings.blacksmith);
    reg.register(ModBuildings.builder);
    reg.register(ModBuildings.chickenHerder);
    reg.register(ModBuildings.combatAcademy);
    reg.register(ModBuildings.composter);
    reg.register(ModBuildings.cook);
    reg.register(ModBuildings.cowboy);
    reg.register(ModBuildings.crusher);
    reg.register(ModBuildings.deliveryman);
    reg.register(ModBuildings.farmer);
    reg.register(ModBuildings.fisherman);
    reg.register(ModBuildings.guardTower);
    reg.register(ModBuildings.home);
    reg.register(ModBuildings.library);
    reg.register(ModBuildings.lumberjack);
    reg.register(ModBuildings.miner);
    reg.register(ModBuildings.sawmill);
    reg.register(ModBuildings.shepherd);
    reg.register(ModBuildings.sifter);
    reg.register(ModBuildings.smeltery);
    reg.register(ModBuildings.stoneMason);
    reg.register(ModBuildings.stoneSmelter);
    reg.register(ModBuildings.swineHerder);
    reg.register(ModBuildings.townHall);
    reg.register(ModBuildings.wareHouse);
    reg.register(ModBuildings.postBox);
    reg.register(ModBuildings.florist);
    reg.register(ModBuildings.enchanter);
    reg.register(ModBuildings.university);
    reg.register(ModBuildings.hospital);
    reg.register(ModBuildings.stash);
    reg.register(ModBuildings.school);
    reg.register(ModBuildings.glassblower);
    reg.register(ModBuildings.dyer);
    reg.register(ModBuildings.fletcher);
    reg.register(ModBuildings.mechanic);
    reg.register(ModBuildings.plantation);
    reg.register(ModBuildings.tavern);
    reg.register(ModBuildings.rabbitHutch);
    reg.register(ModBuildings.concreteMixer);
    reg.register(ModBuildings.beekeeper);
    reg.register(ModBuildings.mysticalSite);
    reg.register(ModBuildings.graveyard);
    reg.register(ModBuildings.simpleQuarry);
    reg.register(ModBuildings.mediumQuarry);
// reg.register(ModBuildings.largeQuarry);
}
Also used : DefaultBuildingInstance(com.minecolonies.coremod.colony.buildings.DefaultBuildingInstance) EntityType(net.minecraft.entity.EntityType) BuildingEntry(com.minecolonies.api.colony.buildings.registry.BuildingEntry) ISchematicProvider(com.minecolonies.api.colony.buildings.ISchematicProvider) COMPOSTABLE_LIST(com.minecolonies.coremod.entity.ai.citizen.composter.EntityAIWorkComposter.COMPOSTABLE_LIST) BUILDING_FLOWER_LIST(com.minecolonies.api.util.constant.BuildingConstants.BUILDING_FLOWER_LIST) com.minecolonies.coremod.colony.buildings.modules.settings(com.minecolonies.coremod.colony.buildings.modules.settings) ModBlocks(com.minecolonies.api.blocks.ModBlocks) FOOD_EXCLUSION_LIST(com.minecolonies.coremod.colony.buildings.workerbuildings.BuildingCook.FOOD_EXCLUSION_LIST) ItemStack(net.minecraft.item.ItemStack) com.minecolonies.coremod.colony.buildings.workerbuildings(com.minecolonies.coremod.colony.buildings.workerbuildings) RegistryEvent(net.minecraftforge.event.RegistryEvent) ModJobs(com.minecolonies.api.colony.jobs.ModJobs) ModItems(com.minecolonies.api.items.ModItems) CompatibilityManager(com.minecolonies.api.compatibility.CompatibilityManager) FUEL_LIST(com.minecolonies.api.util.constant.BuildingConstants.FUEL_LIST) Constants(com.minecolonies.api.util.constant.Constants) BuildingMysticalSite(com.minecolonies.coremod.colony.buildings.BuildingMysticalSite) TranslationConstants(com.minecolonies.api.util.constant.TranslationConstants) AbstractBuildingGuards(com.minecolonies.coremod.colony.buildings.AbstractBuildingGuards) EmptyView(com.minecolonies.coremod.colony.buildings.views.EmptyView) Skill(com.minecolonies.api.entity.citizen.Skill) com.minecolonies.coremod.colony.buildings.moduleviews(com.minecolonies.coremod.colony.buildings.moduleviews) IColonyManager(com.minecolonies.api.colony.IColonyManager) AbstractBuilding(com.minecolonies.coremod.colony.buildings.AbstractBuilding) ModGuardTypes(com.minecolonies.api.colony.guardtype.registry.ModGuardTypes) Items(net.minecraft.item.Items) IForgeRegistry(net.minecraftforge.registries.IForgeRegistry) ModBuildings(com.minecolonies.api.colony.buildings.ModBuildings) HOSTILE_LIST(com.minecolonies.coremod.colony.buildings.AbstractBuildingGuards.HOSTILE_LIST) SAPLINGS_LIST(com.minecolonies.coremod.entity.ai.citizen.lumberjack.EntityAIWorkLumberjack.SAPLINGS_LIST) BlockItem(net.minecraft.item.BlockItem) ORE_LIST(com.minecolonies.coremod.entity.ai.citizen.smelter.EntityAIWorkSmelter.ORE_LIST) ResourceLocation(net.minecraft.util.ResourceLocation) com.minecolonies.coremod.colony.buildings.modules(com.minecolonies.coremod.colony.buildings.modules) ISchematicProvider(com.minecolonies.api.colony.buildings.ISchematicProvider) BuildingMysticalSite(com.minecolonies.coremod.colony.buildings.BuildingMysticalSite) ItemStack(net.minecraft.item.ItemStack) BlockItem(net.minecraft.item.BlockItem) ResourceLocation(net.minecraft.util.ResourceLocation) DefaultBuildingInstance(com.minecolonies.coremod.colony.buildings.DefaultBuildingInstance) BuildingEntry(com.minecolonies.api.colony.buildings.registry.BuildingEntry) EmptyView(com.minecolonies.coremod.colony.buildings.views.EmptyView) EmptyView(com.minecolonies.coremod.colony.buildings.views.EmptyView)

Example 3 with BuildingEntry

use of com.minecolonies.api.colony.buildings.registry.BuildingEntry in project minecolonies by Minecolonies.

the class ClientEventHandler method handleCrafterRecipeTooltips.

/**
 * Display crafter recipe-related information on the client.
 * @param colony   The colony to check against, if one is present.
 * @param toolTip  The tooltip to add the text onto.
 * @param item     The item that will have the tooltip text added.
 */
private static void handleCrafterRecipeTooltips(@Nullable final IColony colony, final List<ITextComponent> toolTip, final Item item) {
    final List<CustomRecipe> recipes = CustomRecipeManager.getInstance().getRecipeByOutput(item);
    if (recipes.isEmpty()) {
        return;
    }
    for (CustomRecipe rec : recipes) {
        if (!rec.getShowTooltip() || rec.getCrafter().length() < 2) {
            continue;
        }
        final BuildingEntry craftingBuilding = crafterToBuilding.get().get(rec.getCrafter());
        if (craftingBuilding == null)
            continue;
        final ITextComponent craftingBuildingName = getFullBuildingName(craftingBuilding);
        if (rec.getMinBuildingLevel() > 0) {
            final String schematicName = craftingBuilding.getRegistryName().getPath();
            // the above is not guaranteed to match (and indeed doesn't for a few buildings), but
            // does match for all currently interesting crafters, at least.  there doesn't otherwise
            // appear to be an easy way to get the schematic name from a BuildingEntry ... or
            // unless we can change how colony.hasBuilding uses its parameter...
            final IFormattableTextComponent reqLevelText = new TranslationTextComponent(COM_MINECOLONIES_COREMOD_ITEM_BUILDLEVEL_TOOLTIP_GUI, craftingBuildingName, rec.getMinBuildingLevel());
            if (colony != null && colony.hasBuilding(schematicName, rec.getMinBuildingLevel(), true)) {
                reqLevelText.setStyle(Style.EMPTY.withColor(TextFormatting.AQUA));
            } else {
                reqLevelText.setStyle(Style.EMPTY.withColor(TextFormatting.RED));
            }
            toolTip.add(reqLevelText);
        } else {
            final IFormattableTextComponent reqBuildingTxt = new TranslationTextComponent(COM_MINECOLONIES_COREMOD_ITEM_AVAILABLE_TOOLTIP_GUI, craftingBuildingName).setStyle(Style.EMPTY.withItalic(true).withColor(TextFormatting.GRAY));
            toolTip.add(reqBuildingTxt);
        }
        if (rec.getRequiredResearchId() != null) {
            final Set<IGlobalResearch> researches;
            if (IMinecoloniesAPI.getInstance().getGlobalResearchTree().hasResearch(rec.getRequiredResearchId())) {
                researches = new HashSet<>();
                researches.add(IMinecoloniesAPI.getInstance().getGlobalResearchTree().getResearch(rec.getRequiredResearchId()));
            } else {
                researches = IMinecoloniesAPI.getInstance().getGlobalResearchTree().getResearchForEffect(rec.getRequiredResearchId());
            }
            if (researches != null) {
                final TextFormatting researchFormat;
                if (colony != null && (colony.getResearchManager().getResearchTree().hasCompletedResearch(rec.getRequiredResearchId()) || colony.getResearchManager().getResearchEffects().getEffectStrength(rec.getRequiredResearchId()) > 0)) {
                    researchFormat = TextFormatting.AQUA;
                } else {
                    researchFormat = TextFormatting.RED;
                }
                for (IGlobalResearch research : researches) {
                    toolTip.add(new TranslationTextComponent(COM_MINECOLONIES_COREMOD_ITEM_REQUIRES_RESEARCH_TOOLTIP_GUI, research.getName()).setStyle(Style.EMPTY.withColor(researchFormat)));
                }
            }
        }
    }
}
Also used : CustomRecipe(com.minecolonies.coremod.colony.crafting.CustomRecipe) BuildingEntry(com.minecolonies.api.colony.buildings.registry.BuildingEntry) IGlobalResearch(com.minecolonies.api.research.IGlobalResearch)

Example 4 with BuildingEntry

use of com.minecolonies.api.colony.buildings.registry.BuildingEntry in project minecolonies by Minecolonies.

the class CustomRecipeManager method buildLootData.

/**
 * Analyses and builds an approximate list of possible loot drops from registered recipes.
 * @param lootTableManager the loot table manager
 */
public void buildLootData(@NotNull final LootTableManager lootTableManager) {
    final List<ResourceLocation> lootIds = new ArrayList<>();
    for (final Map<ResourceLocation, CustomRecipe> recipes : recipeMap.values()) {
        for (final CustomRecipe recipe : recipes.values()) {
            final ResourceLocation lootTable = recipe.getLootTable();
            if (lootTable != null) {
                lootIds.add(lootTable);
            }
        }
    }
    for (final BuildingEntry building : IMinecoloniesAPI.getInstance().getBuildingRegistry()) {
        building.getModuleProducers().stream().map(Supplier::get).filter(m -> m instanceof AnimalHerdingModule).map(m -> (AnimalHerdingModule) m).forEach(herding -> lootIds.add(herding.getDefaultLootTable()));
    }
    lootIds.add(ModLootTables.FISHING);
    lootIds.addAll(ModLootTables.FISHERMAN_BONUS.values());
    lootTables.clear();
    lootTables.putAll(lootIds.stream().filter(// just in case
    Objects::nonNull).distinct().collect(Collectors.toConcurrentMap(Function.identity(), id -> LootTableAnalyzer.toDrops(lootTableManager, id))));
}
Also used : AnimalHerdingModule(com.minecolonies.coremod.colony.buildings.modules.AnimalHerdingModule) BuildingEntry(com.minecolonies.api.colony.buildings.registry.BuildingEntry) java.util(java.util) Item(net.minecraft.item.Item) Function(java.util.function.Function) Supplier(java.util.function.Supplier) Collectors(java.util.stream.Collectors) LootTableManager(net.minecraft.loot.LootTableManager) Unpooled(io.netty.buffer.Unpooled) StandardFactoryController(com.minecolonies.api.colony.requestsystem.StandardFactoryController) ItemStack(net.minecraft.item.ItemStack) Nullable(org.jetbrains.annotations.Nullable) MinecraftForge(net.minecraftforge.common.MinecraftForge) IMinecoloniesAPI(com.minecolonies.api.IMinecoloniesAPI) ResourceLocation(net.minecraft.util.ResourceLocation) Network(com.minecolonies.coremod.Network) ItemStorage(com.minecolonies.api.crafting.ItemStorage) NotNull(org.jetbrains.annotations.NotNull) PacketBuffer(net.minecraft.network.PacketBuffer) ModLootTables(com.minecolonies.api.loot.ModLootTables) ServerPlayerEntity(net.minecraft.entity.player.ServerPlayerEntity) BuildingEntry(com.minecolonies.api.colony.buildings.registry.BuildingEntry) ResourceLocation(net.minecraft.util.ResourceLocation) AnimalHerdingModule(com.minecolonies.coremod.colony.buildings.modules.AnimalHerdingModule)

Example 5 with BuildingEntry

use of com.minecolonies.api.colony.buildings.registry.BuildingEntry in project minecolonies by ldtteam.

the class ModBuildingsInitializer method init.

@SuppressWarnings("PMD.ExcessiveMethodLength")
public static void init(final RegistryEvent.Register<BuildingEntry> event) {
    final IForgeRegistry<BuildingEntry> reg = event.getRegistry();
    ModBuildings.archery = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutArchery).setBuildingProducer(BuildingArchery::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.ARCHERY_ID)).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new WorkAtHomeBuildingModule(ModJobs.archer, Skill.Agility, Skill.Adaptability, false, ISchematicProvider::getBuildingLevel), () -> ArcherSquireModuleView::new).addBuildingModuleProducer(BedHandlingModule::new).createBuildingEntry();
    ModBuildings.bakery = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutBaker).setBuildingProducer(BuildingBaker::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.BAKERY_ID)).addBuildingModuleProducer(() -> new BuildingBaker.CraftingModule(ModJobs.baker), () -> CraftingModuleView::new).addBuildingModuleProducer(() -> new BuildingBaker.SmeltingModule(ModJobs.baker), () -> CraftingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(FurnaceUserModule::new).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.baker, Skill.Knowledge, Skill.Dexterity, false, (b) -> 1, Skill.Dexterity, Skill.Knowledge), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new ItemListModule(FUEL_LIST), () -> () -> new ItemListModuleView(FUEL_LIST, COM_MINECOLONIES_REQUESTS_BURNABLE, false, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getFuel())).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.barracks = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutBarracks).setBuildingProducer(BuildingBarracks::new).setBuildingViewProducer(() -> BuildingBarracks.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.BARRACKS_ID)).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).createBuildingEntry();
    ModBuildings.barracksTower = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutBarracksTower).setBuildingProducer(BuildingBarracksTower::new).setBuildingViewProducer(() -> BuildingBarracksTower.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.BARRACKS_TOWER_ID)).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(BedHandlingModule::new).addBuildingModuleProducer(() -> new GuardBuildingModule(ModGuardTypes.knight, true, ISchematicProvider::getBuildingLevel), () -> CombinedHiringLimitModuleView::new).addBuildingModuleProducer(() -> new GuardBuildingModule(ModGuardTypes.ranger, true, ISchematicProvider::getBuildingLevel), () -> CombinedHiringLimitModuleView::new).addBuildingModuleProducer(() -> new GuardBuildingModule(ModGuardTypes.druid, true, ISchematicProvider::getBuildingLevel), () -> CombinedHiringLimitModuleView::new).addBuildingModuleViewProducer(() -> () -> new ToolModuleView(ModItems.scepterGuard)).addBuildingModuleProducer(() -> new EntityListModule(HOSTILE_LIST), () -> () -> new EntityListModuleView(HOSTILE_LIST, COM_MINECOLONIES_HOSTILES, true)).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractBuildingGuards.GUARD_TASK, new GuardTaskSetting(GuardTaskSetting.PATROL, GuardTaskSetting.GUARD, GuardTaskSetting.FOLLOW)).with(AbstractBuildingGuards.RETREAT, new BoolSetting(true)).with(AbstractBuildingGuards.HIRE_TRAINEE, new BoolSetting(true)).with(AbstractBuildingGuards.PATROL_MODE, new PatrolModeSetting()).with(AbstractBuildingGuards.FOLLOW_MODE, new FollowModeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.blacksmith = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutBlacksmith).setBuildingProducer(BuildingBlacksmith::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.BLACKSMITH_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.blacksmith, Skill.Strength, Skill.Focus, false, (b) -> 1, Skill.Strength, Skill.Focus), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingBlacksmith.CraftingModule(ModJobs.blacksmith), () -> CraftingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.builder = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutBuilder).setBuildingProducer(BuildingBuilder::new).setBuildingViewProducer(() -> BuildingBuilder.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.BUILDER_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.builder, Skill.Adaptability, Skill.Athletics, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(BuildingBuilder.MODE, new StringSetting(BuildingBuilder.AUTO_SETTING, BuildingBuilder.MANUAL_SETTING)).with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()).with(BuildingBuilder.BUILDING_MODE, new BuilderModeSetting()), () -> SettingsModuleView::new).addBuildingModuleProducer(() -> new SimpleCraftingModule(ModJobs.builder), () -> CraftingModuleView::new).addBuildingModuleViewProducer(() -> WorkOrderListModuleView::new).addBuildingModuleProducer(BuildingResourcesModule::new, () -> BuildingResourcesModuleView::new).createBuildingEntry();
    ModBuildings.chickenHerder = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutChickenHerder).setBuildingProducer(BuildingChickenHerder::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.CHICKENHERDER_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.chickenHerder, Skill.Adaptability, Skill.Agility, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractBuilding.BREEDING, new BoolSetting(true)).with(AbstractBuilding.FEEDING, new BoolSetting(true)), () -> SettingsModuleView::new).addBuildingModuleProducer(BuildingChickenHerder.HerdingModule::new).createBuildingEntry();
    ModBuildings.combatAcademy = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutCombatAcademy).setBuildingProducer(BuildingCombatAcademy::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.COMBAT_ACADEMY_ID)).addBuildingModuleProducer(() -> new WorkAtHomeBuildingModule(ModJobs.combat, Skill.Adaptability, Skill.Stamina, false, ISchematicProvider::getBuildingLevel), () -> KnightSquireBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(BedHandlingModule::new).createBuildingEntry();
    ModBuildings.composter = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutComposter).setBuildingProducer(BuildingComposter::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.COMPOSTER_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.composter, Skill.Stamina, Skill.Athletics, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new ItemListModule(COMPOSTABLE_LIST), () -> () -> new ItemListModuleView(COMPOSTABLE_LIST, COM_MINECOLONIES_REQUESTS_COMPOSTABLE_UI, false, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getCompostInputs())).addBuildingModuleProducer(() -> new SettingsModule().with(BuildingComposter.PRODUCE_DIRT, new BoolSetting(false)).with(BuildingComposter.MIN, new IntSetting(16)), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.cook = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutCook).setBuildingProducer(BuildingCook::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.COOK_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.cook, Skill.Adaptability, Skill.Knowledge, true, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.cookassistant, Skill.Creativity, Skill.Knowledge, false, (b) -> b.getBuildingLevel() >= 3 ? 1 : 0, Skill.Knowledge, Skill.Creativity), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingCook.CraftingModule(ModJobs.cookassistant), () -> CraftingModuleView::new).addBuildingModuleProducer(() -> new BuildingCook.SmeltingModule(ModJobs.cookassistant), () -> CraftingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(FurnaceUserModule::new).addBuildingModuleProducer(() -> new ItemListModule(FUEL_LIST), () -> () -> new ItemListModuleView(FUEL_LIST, COM_MINECOLONIES_REQUESTS_BURNABLE, false, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getFuel())).addBuildingModuleProducer(() -> new ItemListModule(FOOD_EXCLUSION_LIST).onResetToDefaults(BuildingCook::onResetFoodExclusionList), () -> () -> new ItemListModuleView(FOOD_EXCLUSION_LIST, COM_MINECOLONIES_REQUESTS_FOOD, true, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getEdibles(buildingView.getBuildingLevel() - 1))).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).createBuildingEntry();
    ModBuildings.cowboy = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutCowboy).setBuildingProducer(BuildingCowboy::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.COWBOY_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.cowboy, Skill.Athletics, Skill.Stamina, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractBuilding.BREEDING, new BoolSetting(true)).with(AbstractBuilding.FEEDING, new BoolSetting(true)).with(BuildingCowboy.MILKING, new BoolSetting(false)), () -> SettingsModuleView::new).addBuildingModuleProducer(() -> new AnimalHerdingModule(ModJobs.cowboy, EntityType.COW, new ItemStack(Items.WHEAT, 2))).addBuildingModuleProducer(BuildingCowboy.MilkingModule::new).createBuildingEntry();
    ModBuildings.crusher = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutCrusher).setBuildingProducer(BuildingCrusher::new).setBuildingViewProducer(() -> BuildingCrusher.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.CRUSHER_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.crusher, Skill.Stamina, Skill.Strength, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingCrusher.CraftingModule(ModJobs.crusher), () -> CraftingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.deliveryman = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutDeliveryman).setBuildingProducer(BuildingDeliveryman::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.DELIVERYMAN_ID)).addBuildingModuleProducer(() -> new DeliverymanAssignmentModule(ModJobs.delivery, Skill.Agility, Skill.Adaptability, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.farmer = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutFarmer).setBuildingProducer(BuildingFarmer::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.FARMER_ID)).addBuildingModuleProducer(() -> new BuildingFarmer.CraftingModule(ModJobs.farmer), () -> CraftingModuleView::new).addBuildingModuleProducer(() -> new FarmerAssignmentModule(ModJobs.farmer, Skill.Stamina, Skill.Athletics, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(BuildingFarmer.FERTILIZE, new BoolSetting(true)).with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).addBuildingModuleProducer(FarmerFieldModule::new, () -> FarmerFieldModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).createBuildingEntry();
    ModBuildings.fisherman = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutFisherman).setBuildingProducer(BuildingFisherman::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.FISHERMAN_ID)).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.fisherman, Skill.Focus, Skill.Agility, false, (b) -> 1), () -> WorkerBuildingModuleView::new).createBuildingEntry();
    ModBuildings.guardTower = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutGuardTower).setBuildingProducer(BuildingGuardTower::new).setBuildingViewProducer(() -> BuildingGuardTower.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.GUARD_TOWER_ID)).addBuildingModuleProducer(() -> new GuardBuildingModule(ModGuardTypes.knight, true, (b) -> 1), () -> CombinedHiringLimitModuleView::new).addBuildingModuleProducer(() -> new GuardBuildingModule(ModGuardTypes.ranger, true, (b) -> 1), () -> CombinedHiringLimitModuleView::new).addBuildingModuleProducer(() -> new GuardBuildingModule(ModGuardTypes.druid, true, (b) -> 1), () -> CombinedHiringLimitModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(BedHandlingModule::new).addBuildingModuleViewProducer(() -> () -> new ToolModuleView(ModItems.scepterGuard)).addBuildingModuleProducer(() -> new EntityListModule(HOSTILE_LIST), () -> () -> new EntityListModuleView(HOSTILE_LIST, COM_MINECOLONIES_HOSTILES, true)).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractBuildingGuards.GUARD_TASK, new GuardTaskSetting()).with(AbstractBuildingGuards.RETREAT, new BoolSetting(true)).with(AbstractBuildingGuards.HIRE_TRAINEE, new BoolSetting(true)).with(AbstractBuildingGuards.PATROL_MODE, new PatrolModeSetting()).with(AbstractBuildingGuards.FOLLOW_MODE, new FollowModeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.home = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutHome).setBuildingProducer((colony, blockPos) -> new DefaultBuildingInstance(colony, blockPos, "citizen", 5)).setBuildingViewProducer(() -> HomeBuildingModule.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.HOME_ID)).addBuildingModuleProducer(BedHandlingModule::new).addBuildingModuleProducer(HomeBuildingModule::new).addBuildingModuleProducer(LivingBuildingModule::new).createBuildingEntry();
    ModBuildings.library = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutLibrary).setBuildingProducer(BuildingLibrary::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.LIBRARY_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.student, Skill.Intelligence, Skill.Intelligence, true, (b) -> 2 * b.getBuildingLevel()), () -> StudentBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).createBuildingEntry();
    ModBuildings.lumberjack = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutLumberjack).setBuildingProducer(BuildingLumberjack::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.LUMBERJACK_ID)).addBuildingModuleProducer(() -> new BuildingLumberjack.CraftingModule(ModJobs.lumberjack), () -> CraftingModuleView::new).addBuildingModuleProducer(() -> new ItemListModule(SAPLINGS_LIST), () -> () -> new ItemListModuleView(SAPLINGS_LIST, COM_MINECOLONIES_REQUESTS_SAPLINGS, true, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getCopyOfSaplings())).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new LumberjackAssignmentModule(ModJobs.lumberjack, Skill.Strength, Skill.Focus, false, (b) -> 1, Skill.Focus, Skill.Strength), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(BuildingLumberjack.REPLANT, new BoolSetting(true)).with(BuildingLumberjack.RESTRICT, new BoolSetting(false)).with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()).with(BuildingLumberjack.DYNAMIC_TREES_SIZE, new DynamicTreesSetting()), () -> SettingsModuleView::new).addBuildingModuleViewProducer(() -> () -> new ToolModuleView(ModItems.scepterLumberjack)).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).createBuildingEntry();
    ModBuildings.miner = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutMiner).setBuildingProducer(BuildingMiner::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.MINER_ID)).addBuildingModuleProducer(() -> new MinerBuildingModule(ModJobs.miner, Skill.Strength, Skill.Stamina, false, (b) -> 1), () -> CombinedHiringLimitModuleView::new).addBuildingModuleProducer(() -> new MinerBuildingModule(ModJobs.quarrier, Skill.Strength, Skill.Stamina, false, (b) -> 1), () -> CombinedHiringLimitModuleView::new).addBuildingModuleProducer(() -> new SimpleCraftingModule(ModJobs.miner), () -> CraftingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(BuildingResourcesModule::new, () -> BuildingResourcesModuleView::new).addBuildingModuleProducer(MinerLevelManagementModule::new, () -> MinerLevelManagementModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()).with(BuildingMiner.FILL_BLOCK, new BlockSetting((BlockItem) Items.COBBLESTONE)), () -> SettingsModuleView::new).addBuildingModuleViewProducer(() -> MinerGuardAssignModuleView::new).createBuildingEntry();
    ModBuildings.sawmill = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutSawmill).setBuildingProducer(BuildingSawmill::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.SAWMILL_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.sawmill, Skill.Knowledge, Skill.Dexterity, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingSawmill.CraftingModule(ModJobs.sawmill), () -> CraftingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.shepherd = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutShepherd).setBuildingProducer(BuildingShepherd::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.SHEPHERD_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.shepherd, Skill.Focus, Skill.Strength, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractBuilding.BREEDING, new BoolSetting(true)).with(AbstractBuilding.FEEDING, new BoolSetting(true)).with(BuildingShepherd.DYEING, new BoolSetting(true)).with(BuildingShepherd.SHEARING, new BoolSetting(true)), () -> SettingsModuleView::new).addBuildingModuleProducer(BuildingShepherd.HerdingModule::new).createBuildingEntry();
    ModBuildings.sifter = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutSifter).setBuildingProducer(BuildingSifter::new).setBuildingViewProducer(() -> BuildingSifter.View::new).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.sifter, Skill.Focus, Skill.Strength, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingSifter.CraftingModule(ModJobs.sifter), () -> CraftingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.SIFTER_ID)).createBuildingEntry();
    ModBuildings.smeltery = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutSmeltery).setBuildingProducer(BuildingSmeltery::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.SMELTERY_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.smelter, Skill.Athletics, Skill.Strength, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingSmeltery.SmeltingModule(ModJobs.smelter), () -> CraftingModuleView::new).addBuildingModuleProducer(FurnaceUserModule::new).addBuildingModuleProducer(() -> new ItemListModule(FUEL_LIST), () -> () -> new ItemListModuleView(FUEL_LIST, COM_MINECOLONIES_REQUESTS_BURNABLE, false, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getFuel())).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new ItemListModule(ORE_LIST), () -> () -> new ItemListModuleView(ORE_LIST, COM_MINECOLONIES_REQUESTS_SMELTABLE_ORE, true, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getSmeltableOres())).createBuildingEntry();
    ModBuildings.stoneMason = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutStonemason).setBuildingProducer(BuildingStonemason::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.STONE_MASON_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.stoneMason, Skill.Creativity, Skill.Dexterity, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingStonemason.CraftingModule(ModJobs.stoneMason), () -> CraftingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.stoneSmelter = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutStoneSmeltery).setBuildingProducer(BuildingStoneSmeltery::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.STONE_SMELTERY_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.stoneSmeltery, Skill.Athletics, Skill.Dexterity, false, (b) -> 1, Skill.Dexterity, Skill.Athletics), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingStoneSmeltery.SmeltingModule(ModJobs.stoneSmeltery), () -> CraftingModuleView::new).addBuildingModuleProducer(FurnaceUserModule::new).addBuildingModuleProducer(() -> new ItemListModule(FUEL_LIST), () -> () -> new ItemListModuleView(FUEL_LIST, COM_MINECOLONIES_REQUESTS_BURNABLE, false, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getFuel())).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.swineHerder = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutSwineHerder).setBuildingProducer(BuildingSwineHerder::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.SWINE_HERDER_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.swineHerder, Skill.Strength, Skill.Athletics, true, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractBuilding.BREEDING, new BoolSetting(true)).with(AbstractBuilding.FEEDING, new BoolSetting(true)), () -> SettingsModuleView::new).addBuildingModuleProducer(() -> new AnimalHerdingModule(ModJobs.swineHerder, EntityType.PIG, new ItemStack(Items.CARROT, 2))).createBuildingEntry();
    ModBuildings.townHall = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutTownHall).setBuildingProducer(BuildingTownHall::new).setBuildingViewProducer(() -> BuildingTownHall.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.TOWNHALL_ID)).createBuildingEntry();
    ModBuildings.wareHouse = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutWareHouse).setBuildingProducer(BuildingWareHouse::new).setBuildingViewProducer(() -> BuildingWareHouse.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.WAREHOUSE_ID)).addBuildingModuleProducer(CourierAssignmentModule::new, () -> CourierAssignmentModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(WarehouseModule::new, () -> WarehouseOptionsModuleView::new).createBuildingEntry();
    ModBuildings.postBox = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockPostBox).setBuildingProducer(PostBox::new).setBuildingViewProducer(() -> PostBox.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.POSTBOX_ID)).createBuildingEntry();
    ModBuildings.florist = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutFlorist).setBuildingProducer(BuildingFlorist::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.FLORIST_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.florist, Skill.Dexterity, Skill.Agility, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new ItemListModule(BUILDING_FLOWER_LIST), () -> FloristFlowerListModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).createBuildingEntry();
    ModBuildings.enchanter = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutEnchanter).setBuildingProducer(BuildingEnchanter::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.ENCHANTER_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.enchanter, Skill.Mana, Skill.Knowledge, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingEnchanter.CraftingModule(ModJobs.enchanter), () -> CraftingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(EnchanterStationsModule::new, () -> EnchanterStationsModuleView::new).createBuildingEntry();
    ModBuildings.university = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutUniversity).setBuildingProducer(BuildingUniversity::new).setBuildingViewProducer(() -> EmptyView::new).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.researcher, Skill.Knowledge, Skill.Mana, true, ISchematicProvider::getBuildingLevel), () -> WorkerBuildingModuleView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.UNIVERSITY_ID)).addBuildingModuleViewProducer(() -> UniversityResearchModuleView::new).createBuildingEntry();
    ModBuildings.hospital = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutHospital).setBuildingProducer(BuildingHospital::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.HOSPITAL_ID)).addBuildingModuleProducer(() -> new HospitalAssignmentModule(ModJobs.healer, Skill.Mana, Skill.Knowledge, true, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).createBuildingEntry();
    ModBuildings.stash = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockStash).setBuildingProducer(Stash::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.STASH_ID)).createBuildingEntry();
    ModBuildings.school = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutSchool).setBuildingProducer(BuildingSchool::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.SCHOOL_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.teacher, Skill.Knowledge, Skill.Mana, true, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new ChildrenBuildingModule(ModJobs.pupil, Skill.Knowledge, Skill.Mana, true, (b) -> 2 * b.getBuildingLevel()), () -> PupilBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).createBuildingEntry();
    ModBuildings.glassblower = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutGlassblower).setBuildingProducer(BuildingGlassblower::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.GLASSBLOWER_ID)).addBuildingModuleProducer(() -> new BuildingGlassblower.CraftingModule(ModJobs.glassblower), () -> CraftingModuleView::new).addBuildingModuleProducer(() -> new BuildingGlassblower.SmeltingModule(ModJobs.glassblower), () -> CraftingModuleView::new).addBuildingModuleProducer(FurnaceUserModule::new).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.glassblower, Skill.Creativity, Skill.Focus, false, (b) -> 1, Skill.Focus, Skill.Creativity), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new ItemListModule(FUEL_LIST), () -> () -> new ItemListModuleView(FUEL_LIST, COM_MINECOLONIES_REQUESTS_BURNABLE, false, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getFuel())).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.dyer = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutDyer).setBuildingProducer(BuildingDyer::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.DYER_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.dyer, Skill.Creativity, Skill.Dexterity, false, (b) -> 1, Skill.Dexterity, Skill.Creativity), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingDyer.CraftingModule(ModJobs.dyer), () -> CraftingModuleView::new).addBuildingModuleProducer(() -> new BuildingDyer.SmeltingModule(ModJobs.dyer), () -> CraftingModuleView::new).addBuildingModuleProducer(FurnaceUserModule::new).addBuildingModuleProducer(() -> new ItemListModule(FUEL_LIST), () -> () -> new ItemListModuleView(FUEL_LIST, COM_MINECOLONIES_REQUESTS_BURNABLE, false, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getFuel())).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.fletcher = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutFletcher).setBuildingProducer(BuildingFletcher::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.FLETCHER_ID)).addBuildingModuleProducer(() -> new BuildingFletcher.CraftingModule(ModJobs.fletcher), () -> CraftingModuleView::new).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.fletcher, Skill.Dexterity, Skill.Creativity, true, (b) -> 1, Skill.Creativity, Skill.Dexterity), () -> WorkerBuildingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.tavern = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutTavern).setBuildingProducer((colony, blockPos) -> new DefaultBuildingInstance(colony, blockPos, "tavern", 3)).setBuildingViewProducer(() -> TavernBuildingModule.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.TAVERN_ID)).addBuildingModuleProducer(BedHandlingModule::new).addBuildingModuleProducer(TavernLivingBuildingModule::new).addBuildingModuleProducer(TavernBuildingModule::new).createBuildingEntry();
    ModBuildings.mechanic = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutMechanic).setBuildingProducer(BuildingMechanic::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.MECHANIC_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.mechanic, Skill.Knowledge, Skill.Agility, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingMechanic.CraftingModule(ModJobs.mechanic), () -> CraftingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.plantation = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutPlantation).setBuildingProducer(BuildingPlantation::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.PLANTATION_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.planter, Skill.Agility, Skill.Dexterity, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingPlantation.CraftingModule(ModJobs.planter), () -> CraftingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(BuildingPlantation.MODE, new PlantationSetting(Items.SUGAR_CANE.getDescriptionId(), Items.CACTUS.getDescriptionId(), Items.BAMBOO.getDescriptionId())).with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.rabbitHutch = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutRabbitHutch).setBuildingProducer(BuildingRabbitHutch::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.RABBIT_ID)).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.rabbitHerder, Skill.Agility, Skill.Athletics, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractBuilding.BREEDING, new BoolSetting(true)).with(AbstractBuilding.FEEDING, new BoolSetting(true)), () -> SettingsModuleView::new).addBuildingModuleProducer(() -> new AnimalHerdingModule(ModJobs.rabbitHerder, EntityType.RABBIT, new ItemStack(Items.CARROT, 2))).createBuildingEntry();
    // todo we want two here, one custom for the concrete placement, and one crafting for the normal crafting of the powder.
    ModBuildings.concreteMixer = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutConcreteMixer).setBuildingProducer(BuildingConcreteMixer::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.CONCRETE_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.concreteMixer, Skill.Stamina, Skill.Dexterity, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingConcreteMixer.CraftingModule(ModJobs.concreteMixer), () -> CraftingModuleView::new).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()), () -> SettingsModuleView::new).createBuildingEntry();
    ModBuildings.beekeeper = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutBeekeeper).setBuildingProducer(BuildingBeekeeper::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.BEEKEEPER_ID)).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.beekeeper, Skill.Dexterity, Skill.Adaptability, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractBuilding.BREEDING, new BoolSetting(true)).with(BuildingBeekeeper.MODE, new StringSetting(BuildingBeekeeper.HONEYCOMB, BuildingBeekeeper.HONEY, BuildingBeekeeper.BOTH)), () -> SettingsModuleView::new).addBuildingModuleProducer(() -> new ItemListModule(BUILDING_FLOWER_LIST), () -> () -> new ItemListModuleView(BUILDING_FLOWER_LIST, COM_MINECOLONIES_COREMOD_REQUEST_FLOWERS, false, (buildingView) -> CompatibilityManager.getAllBeekeeperFlowers())).addBuildingModuleViewProducer(() -> () -> new ToolModuleView(ModItems.scepterBeekeeper)).addBuildingModuleProducer(BuildingBeekeeper.HerdingModule::new).createBuildingEntry();
    ModBuildings.mysticalSite = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutMysticalSite).setBuildingProducer(BuildingMysticalSite::new).setBuildingViewProducer(() -> BuildingMysticalSite.View::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.MYSTICAL_SITE_ID)).createBuildingEntry();
    ModBuildings.graveyard = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutGraveyard).setBuildingProducer(BuildingGraveyard::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.GRAVEYARD_ID)).addBuildingModuleProducer(GraveyardManagementModule::new, () -> GraveyardManagementModuleView::new).addBuildingModuleProducer(() -> new WorkerBuildingModule(ModJobs.undertaker, Skill.Strength, Skill.Mana, false, (b) -> 1), () -> WorkerBuildingModuleView::new).createBuildingEntry();
    ModBuildings.simpleQuarry = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockSimpleQuarry).setBuildingProducer((colony, blockPos) -> new DefaultBuildingInstance(colony, blockPos, ModBuildings.SIMPLE_QUARRY_ID, 1)).setBuildingViewProducer(() -> EmptyView::new).addBuildingModuleProducer(() -> new QuarryModule(32), () -> MinerAssignmentModuleView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.SIMPLE_QUARRY_ID)).createBuildingEntry();
    ModBuildings.netherWorker = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockHutNetherWorker).setBuildingProducer(BuildingNetherWorker::new).setBuildingViewProducer(() -> EmptyView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.NETHERWORKER_ID)).addBuildingModuleProducer(() -> new CraftingWorkerBuildingModule(ModJobs.netherworker, Skill.Adaptability, Skill.Strength, false, (b) -> 1), () -> WorkerBuildingModuleView::new).addBuildingModuleProducer(() -> new BuildingNetherWorker.CraftingModule(ModJobs.netherworker), () -> CraftingModuleView::new).addBuildingModuleProducer(MinimumStockModule::new, () -> MinimumStockModuleView::new).addBuildingModuleProducer(() -> new SettingsModule().with(AbstractCraftingBuildingModule.RECIPE_MODE, new CrafterRecipeSetting()).with(BuildingNetherWorker.CLOSE_PORTAL, new BoolSetting(true)), () -> SettingsModuleView::new).addBuildingModuleProducer(() -> new ItemListModule(FOOD_EXCLUSION_LIST).onResetToDefaults(BuildingNetherWorker::onResetFoodExclusionList), () -> () -> new ItemListModuleView(FOOD_EXCLUSION_LIST, COM_MINECOLONIES_REQUESTS_FOOD, true, (buildingView) -> IColonyManager.getInstance().getCompatibilityManager().getEdibles(buildingView.getBuildingLevel() - 1))).addBuildingModuleViewProducer(() -> CrafterTaskModuleView::new).createBuildingEntry();
    ModBuildings.mediumQuarry = new BuildingEntry.Builder().setBuildingBlock(ModBlocks.blockMediumQuarry).setBuildingProducer((colony, blockPos) -> new DefaultBuildingInstance(colony, blockPos, ModBuildings.MEDIUM_QUARRY_ID, 1)).setBuildingViewProducer(() -> EmptyView::new).addBuildingModuleProducer(() -> new QuarryModule(64), () -> MinerAssignmentModuleView::new).setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.MEDIUM_QUARRY_ID)).createBuildingEntry();
    /*ModBuildings.largeQuarry = new BuildingEntry.Builder()
                                   .setBuildingBlock(ModBlocks.blockLargeQuarry)
                                   .setBuildingProducer((colony, blockPos) -> new DefaultBuildingInstance(colony, blockPos, "largequarry", 1)).setBuildingViewProducer(() -> EmptyView::new)
                                   .addBuildingModuleProducer(QuarryModule::new, () -> MinerAssignmentModuleView::new)
                                   .setRegistryName(new ResourceLocation(Constants.MOD_ID, ModBuildings.LARGE_QUARRY_ID))
                                   .createBuildingEntry();*/
    reg.register(ModBuildings.archery);
    reg.register(ModBuildings.bakery);
    reg.register(ModBuildings.barracks);
    reg.register(ModBuildings.barracksTower);
    reg.register(ModBuildings.blacksmith);
    reg.register(ModBuildings.builder);
    reg.register(ModBuildings.chickenHerder);
    reg.register(ModBuildings.combatAcademy);
    reg.register(ModBuildings.composter);
    reg.register(ModBuildings.cook);
    reg.register(ModBuildings.cowboy);
    reg.register(ModBuildings.crusher);
    reg.register(ModBuildings.deliveryman);
    reg.register(ModBuildings.farmer);
    reg.register(ModBuildings.fisherman);
    reg.register(ModBuildings.guardTower);
    reg.register(ModBuildings.home);
    reg.register(ModBuildings.library);
    reg.register(ModBuildings.lumberjack);
    reg.register(ModBuildings.miner);
    reg.register(ModBuildings.sawmill);
    reg.register(ModBuildings.shepherd);
    reg.register(ModBuildings.sifter);
    reg.register(ModBuildings.smeltery);
    reg.register(ModBuildings.stoneMason);
    reg.register(ModBuildings.stoneSmelter);
    reg.register(ModBuildings.swineHerder);
    reg.register(ModBuildings.townHall);
    reg.register(ModBuildings.wareHouse);
    reg.register(ModBuildings.postBox);
    reg.register(ModBuildings.florist);
    reg.register(ModBuildings.enchanter);
    reg.register(ModBuildings.university);
    reg.register(ModBuildings.hospital);
    reg.register(ModBuildings.stash);
    reg.register(ModBuildings.school);
    reg.register(ModBuildings.glassblower);
    reg.register(ModBuildings.dyer);
    reg.register(ModBuildings.fletcher);
    reg.register(ModBuildings.mechanic);
    reg.register(ModBuildings.plantation);
    reg.register(ModBuildings.tavern);
    reg.register(ModBuildings.rabbitHutch);
    reg.register(ModBuildings.concreteMixer);
    reg.register(ModBuildings.beekeeper);
    reg.register(ModBuildings.mysticalSite);
    reg.register(ModBuildings.graveyard);
    reg.register(ModBuildings.netherWorker);
    reg.register(ModBuildings.simpleQuarry);
    reg.register(ModBuildings.mediumQuarry);
// reg.register(ModBuildings.largeQuarry);
}
Also used : DefaultBuildingInstance(com.minecolonies.coremod.colony.buildings.DefaultBuildingInstance) EntityType(net.minecraft.entity.EntityType) BuildingEntry(com.minecolonies.api.colony.buildings.registry.BuildingEntry) ISchematicProvider(com.minecolonies.api.colony.buildings.ISchematicProvider) COMPOSTABLE_LIST(com.minecolonies.coremod.entity.ai.citizen.composter.EntityAIWorkComposter.COMPOSTABLE_LIST) BUILDING_FLOWER_LIST(com.minecolonies.api.util.constant.BuildingConstants.BUILDING_FLOWER_LIST) com.minecolonies.coremod.colony.buildings.modules.settings(com.minecolonies.coremod.colony.buildings.modules.settings) ModBlocks(com.minecolonies.api.blocks.ModBlocks) FOOD_EXCLUSION_LIST(com.minecolonies.coremod.colony.buildings.workerbuildings.BuildingCook.FOOD_EXCLUSION_LIST) ItemStack(net.minecraft.item.ItemStack) com.minecolonies.coremod.colony.buildings.workerbuildings(com.minecolonies.coremod.colony.buildings.workerbuildings) RegistryEvent(net.minecraftforge.event.RegistryEvent) ModJobs(com.minecolonies.api.colony.jobs.ModJobs) ModItems(com.minecolonies.api.items.ModItems) CompatibilityManager(com.minecolonies.api.compatibility.CompatibilityManager) FUEL_LIST(com.minecolonies.api.util.constant.BuildingConstants.FUEL_LIST) Constants(com.minecolonies.api.util.constant.Constants) BuildingMysticalSite(com.minecolonies.coremod.colony.buildings.BuildingMysticalSite) TranslationConstants(com.minecolonies.api.util.constant.TranslationConstants) AbstractBuildingGuards(com.minecolonies.coremod.colony.buildings.AbstractBuildingGuards) EmptyView(com.minecolonies.coremod.colony.buildings.views.EmptyView) Skill(com.minecolonies.api.entity.citizen.Skill) com.minecolonies.coremod.colony.buildings.moduleviews(com.minecolonies.coremod.colony.buildings.moduleviews) IColonyManager(com.minecolonies.api.colony.IColonyManager) AbstractBuilding(com.minecolonies.coremod.colony.buildings.AbstractBuilding) ModGuardTypes(com.minecolonies.api.colony.guardtype.registry.ModGuardTypes) Items(net.minecraft.item.Items) IForgeRegistry(net.minecraftforge.registries.IForgeRegistry) ModBuildings(com.minecolonies.api.colony.buildings.ModBuildings) HOSTILE_LIST(com.minecolonies.coremod.colony.buildings.AbstractBuildingGuards.HOSTILE_LIST) SAPLINGS_LIST(com.minecolonies.coremod.entity.ai.citizen.lumberjack.EntityAIWorkLumberjack.SAPLINGS_LIST) BlockItem(net.minecraft.item.BlockItem) ORE_LIST(com.minecolonies.coremod.entity.ai.citizen.smelter.EntityAIWorkSmelter.ORE_LIST) ResourceLocation(net.minecraft.util.ResourceLocation) com.minecolonies.coremod.colony.buildings.modules(com.minecolonies.coremod.colony.buildings.modules) ISchematicProvider(com.minecolonies.api.colony.buildings.ISchematicProvider) BuildingMysticalSite(com.minecolonies.coremod.colony.buildings.BuildingMysticalSite) ItemStack(net.minecraft.item.ItemStack) BlockItem(net.minecraft.item.BlockItem) ResourceLocation(net.minecraft.util.ResourceLocation) DefaultBuildingInstance(com.minecolonies.coremod.colony.buildings.DefaultBuildingInstance) BuildingEntry(com.minecolonies.api.colony.buildings.registry.BuildingEntry) EmptyView(com.minecolonies.coremod.colony.buildings.views.EmptyView) EmptyView(com.minecolonies.coremod.colony.buildings.views.EmptyView)

Aggregations

BuildingEntry (com.minecolonies.api.colony.buildings.registry.BuildingEntry)12 ResourceLocation (net.minecraft.util.ResourceLocation)8 AnimalHerdingModule (com.minecolonies.coremod.colony.buildings.modules.AnimalHerdingModule)4 ItemStack (net.minecraft.item.ItemStack)4 IMinecoloniesAPI (com.minecolonies.api.IMinecoloniesAPI)2 ModBlocks (com.minecolonies.api.blocks.ModBlocks)2 IColonyManager (com.minecolonies.api.colony.IColonyManager)2 ISchematicProvider (com.minecolonies.api.colony.buildings.ISchematicProvider)2 ModBuildings (com.minecolonies.api.colony.buildings.ModBuildings)2 IBuildingView (com.minecolonies.api.colony.buildings.views.IBuildingView)2 ColonyEventDescriptionTypeRegistryEntry (com.minecolonies.api.colony.colonyEvents.registry.ColonyEventDescriptionTypeRegistryEntry)2 ColonyEventTypeRegistryEntry (com.minecolonies.api.colony.colonyEvents.registry.ColonyEventTypeRegistryEntry)2 GuardType (com.minecolonies.api.colony.guardtype.GuardType)2 ModGuardTypes (com.minecolonies.api.colony.guardtype.registry.ModGuardTypes)2 InteractionResponseHandlerEntry (com.minecolonies.api.colony.interactionhandling.registry.InteractionResponseHandlerEntry)2 ModJobs (com.minecolonies.api.colony.jobs.ModJobs)2 JobEntry (com.minecolonies.api.colony.jobs.registry.JobEntry)2 StandardFactoryController (com.minecolonies.api.colony.requestsystem.StandardFactoryController)2 CompatibilityManager (com.minecolonies.api.compatibility.CompatibilityManager)2 ItemStorage (com.minecolonies.api.crafting.ItemStorage)2