Search in sources :

Example 1 with BUILDING_FLOWER_LIST

use of com.minecolonies.api.util.constant.BuildingConstants.BUILDING_FLOWER_LIST in project minecolonies by Minecolonies.

the class InteractionValidatorInitializer method init.

/**
 * Init method called on startup.
 */
public static void init() {
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(FURNACE_USER_NO_FUEL), citizen -> citizen.getWorkBuilding() != null && citizen.getWorkBuilding().hasModule(FurnaceUserModule.class) && citizen.getWorkBuilding().getModuleMatching(ItemListModule.class, m -> m.getId().equals(FUEL_LIST)).getList().isEmpty());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(BAKER_HAS_NO_FURNACES_MESSAGE), citizen -> citizen.getWorkBuilding() != null && citizen.getWorkBuilding().hasModule(FurnaceUserModule.class) && citizen.getWorkBuilding().getFirstModuleOccurance(FurnaceUserModule.class).getFurnaces().isEmpty());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(RAW_FOOD), citizen -> InventoryUtils.findFirstSlotInItemHandlerNotEmptyWith(citizen.getInventory(), ISCOOKABLE) != -1 && InventoryUtils.findFirstSlotInItemHandlerNotEmptyWith(citizen.getInventory(), stack -> CAN_EAT.test(stack) && (citizen.getWorkBuilding() == null || citizen.getWorkBuilding().canEat(stack))) == -1);
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(BETTER_FOOD), citizen -> citizen.getSaturation() == 0 && !citizen.isChild() && citizen.needsBetterFood());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(BETTER_FOOD_CHILDREN), citizen -> citizen.getSaturation() == 0 && citizen.isChild() && citizen.needsBetterFood());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(NO_RESTAURANT), citizen -> citizen.getColony() != null && citizen.getSaturation() <= LOW_SATURATION && citizen.getEntity().isPresent() && citizen.getColony().getBuildingManager().getBestBuilding(citizen.getEntity().get(), BuildingCook.class) == null && InventoryUtils.findFirstSlotInItemHandlerNotEmptyWith(citizen.getInventory(), ISFOOD) == -1);
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(NO_HOSPITAL), citizen -> citizen.getColony() != null && citizen.getEntity().isPresent() && citizen.getEntity().get().getCitizenDiseaseHandler().isSick() && citizen.getColony().getBuildingManager().getBestBuilding(citizen.getEntity().get(), BuildingHospital.class) == null);
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(WAITING_FOR_CURE), citizen -> citizen.getColony() != null && citizen.getEntity().isPresent() && !citizen.getEntity().get().getCitizenDiseaseHandler().getDisease().isEmpty());
    InteractionValidatorRegistry.registerPosBasedPredicate(new TranslationTextComponent(COM_MINECOLONIES_COREMOD_JOB_DELIVERYMAN_CHESTFULL), (citizen, pos) -> {
        if (citizen.getJob() instanceof JobDeliveryman) {
            final IColony colony = citizen.getColony();
            if (colony != null) {
                final IBuilding building = colony.getBuildingManager().getBuilding(pos);
                if (building != null) {
                    final IItemHandler inv = building.getCapability(ITEM_HANDLER_CAPABILITY, null).resolve().orElse(null);
                    if (inv != null) {
                        return InventoryUtils.openSlotCount(inv) > 0;
                    }
                }
            }
        }
        return false;
    });
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(COM_MINECOLONIES_COREMOD_JOB_DELIVERYMAN_NOWAREHOUSE), cit -> {
        if (cit.getJob() instanceof JobDeliveryman && cit.getWorkBuilding() != null) {
            return ((JobDeliveryman) cit.getJob()).findWareHouse() == null;
        }
        return false;
    });
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(NO_FREE_FIELDS), citizen -> citizen.getWorkBuilding() instanceof BuildingFarmer && ((BuildingFarmer) citizen.getWorkBuilding()).getFirstModuleOccurance(FarmerFieldModule.class).hasNoFields());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(INVALID_MINESHAFT), citizen -> citizen.getWorkBuilding() instanceof BuildingMiner && citizen.getJob() instanceof JobMiner && (((BuildingMiner) citizen.getWorkBuilding()).getCobbleLocation() == null || ((BuildingMiner) citizen.getWorkBuilding()).getLadderLocation() == null));
    InteractionValidatorRegistry.registerPosBasedPredicate(new TranslationTextComponent(NO_SEED_SET), (citizen, pos) -> {
        if (citizen.getJob() instanceof JobFarmer) {
            final IColony colony = citizen.getColony();
            if (colony != null) {
                final World world = colony.getWorld();
                if (world != null) {
                    final TileEntity tileEntity = world.getBlockEntity(pos);
                    if (tileEntity instanceof ScarecrowTileEntity) {
                        return ((ScarecrowTileEntity) tileEntity).getSeed() == null;
                    }
                }
            }
        }
        return false;
    });
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(COM_MINECOLONIES_COREMOD_ENTITY_WORKER_INVENTORYFULLCHEST), citizen -> citizen.getWorkBuilding() != null && InventoryUtils.isProviderFull(citizen.getWorkBuilding()));
    InteractionValidatorRegistry.registerPosBasedPredicate(new TranslationTextComponent(BUILDING_LEVEL_TOO_LOW), (citizen, pos) -> {
        final IBuilding workBuilding = citizen.getWorkBuilding();
        if (workBuilding != null) {
            final IColony colony = citizen.getColony();
            if (colony != null) {
                final World world = colony.getWorld();
                if (world != null) {
                    return workBuilding.getMaxToolLevel() < WorkerUtil.getCorrectHarvestLevelForBlock(world.getBlockState(pos));
                }
            }
        }
        return false;
    });
    InteractionValidatorRegistry.registerTokenBasedPredicate(new TranslationTextComponent(NORMAL_REQUEST), (citizen, token) -> {
        final IColony colony = citizen.getColony();
        if (colony != null) {
            return RequestUtils.requestChainNeedsPlayer(token, citizen.getColony().getRequestManager());
        }
        return false;
    });
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(FURNACE_USER_NO_ORE), citizen -> {
        if (citizen.getWorkBuilding() instanceof BuildingSmeltery) {
            final List<ItemStorage> oreList = ((BuildingSmeltery) citizen.getWorkBuilding()).getModuleMatching(ItemListModule.class, m -> m.getId().equals(ORE_LIST)).getList();
            for (final ItemStorage storage : IColonyManager.getInstance().getCompatibilityManager().getSmeltableOres()) {
                if (!oreList.contains(storage)) {
                    return true;
                }
            }
        }
        return false;
    });
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(PATIENT_FULL_INVENTORY), citizen -> citizen.getEntity().isPresent() && citizen.getEntity().get().getCitizenDiseaseHandler().isSick() && InventoryUtils.isItemHandlerFull(citizen.getEntity().get().getInventoryCitizen()));
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(PUPIL_NO_CARPET), citizen -> citizen.getEntity().isPresent() && citizen.isChild() && citizen.getWorkBuilding() instanceof BuildingSchool && ((BuildingSchool) citizen.getWorkBuilding()).getRandomPlaceToSit() == null);
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(WATER_TOO_FAR), citizen -> citizen.getJob() instanceof JobFisherman && ((JobFisherman) citizen.getJob()).getPonds().isEmpty());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(FURNACE_USER_NO_FUEL), citizen -> citizen.getWorkBuilding() != null && citizen.getWorkBuilding().hasModule(FurnaceUserModule.class) && citizen.getWorkBuilding().getModuleMatching(ItemListModule.class, m -> m.getId().equals(FUEL_LIST)).getList().isEmpty());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(FURNACE_USER_NO_FOOD), citizen -> {
        if (!(citizen.getWorkBuilding() instanceof BuildingCook)) {
            return false;
        }
        final ImmutableList<ItemStorage> exclusionList = ((BuildingCook) citizen.getWorkBuilding()).getModuleMatching(ItemListModule.class, m -> m.getId().equals(FOOD_EXCLUSION_LIST)).getList();
        for (final ItemStorage storage : IColonyManager.getInstance().getCompatibilityManager().getEdibles(citizen.getWorkBuilding().getBuildingLevel() - 1)) {
            if (!exclusionList.contains(storage)) {
                return false;
            }
        }
        return true;
    });
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(SIFTER_NO_MESH), citizen -> {
        if (!(citizen.getWorkBuilding() instanceof BuildingSifter)) {
            return false;
        }
        return InventoryUtils.getItemCountInProvider(citizen.getWorkBuilding(), item -> ModTags.meshes.contains(item.getItem())) <= 0 && InventoryUtils.getItemCountInItemHandler(citizen.getInventory(), item -> ModTags.meshes.contains(item.getItem())) <= 0;
    });
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(BAKER_HAS_NO_FURNACES_MESSAGE), citizen -> citizen.getWorkBuilding() instanceof BuildingBaker && citizen.getWorkBuilding().getFirstModuleOccurance(FurnaceUserModule.class).getFurnaces().isEmpty());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(NO_HIVES), citizen -> citizen.getWorkBuilding() instanceof BuildingBeekeeper && ((BuildingBeekeeper) citizen.getWorkBuilding()).getHives().isEmpty());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(NO_BEES), citizen -> citizen.getWorkBuilding() instanceof BuildingBeekeeper && citizen.getJob(JobBeekeeper.class).checkForBeeInteraction());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(NO_WORKERS_TO_DRAIN_SET), citizen -> citizen.getWorkBuilding() instanceof BuildingEnchanter && ((BuildingEnchanter) citizen.getWorkBuilding()).getFirstModuleOccurance(EnchanterStationsModule.class).getBuildingsToGatherFrom().isEmpty());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(NO_PLANT_GROUND_FLORIST), citizen -> citizen.getWorkBuilding() instanceof BuildingFlorist && ((BuildingFlorist) citizen.getWorkBuilding()).getPlantGround().isEmpty());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(NO_FLOWERS_IN_CONFIG), citizen -> citizen.getWorkBuilding() instanceof BuildingFlorist && ItemStackUtils.isEmpty(((BuildingFlorist) citizen.getWorkBuilding()).getFlowerToGrow()));
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(NO_COMPOST), citizen -> {
        final IBuilding buildingFlorist = citizen.getWorkBuilding();
        if (buildingFlorist instanceof BuildingFlorist && buildingFlorist.getColony().getWorld() != null) {
            return InventoryUtils.getItemCountInItemHandler(citizen.getInventory(), IS_COMPOST) == 0 && !isThereCompostedLand((BuildingFlorist) buildingFlorist, buildingFlorist.getColony().getWorld());
        }
        return false;
    });
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(NEEDS_BETTER_HUT), citizen -> {
        final AbstractBuilding buildingMiner = (AbstractBuilding) citizen.getWorkBuilding();
        if (buildingMiner instanceof BuildingMiner && citizen.getColony() != null && citizen.getColony().getWorld() != null && citizen.getJob() instanceof JobMiner) {
            return getLastLadder(((BuildingMiner) buildingMiner).getLadderLocation(), citizen.getColony().getWorld()) < ((BuildingMiner) buildingMiner).getDepthLimit() && ((BuildingMiner) buildingMiner).getFirstModuleOccurance(MinerLevelManagementModule.class).getNumberOfLevels() == 0;
        }
        return false;
    });
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(WORKER_AI_EXCEPTION), citizen -> citizen.getJob() != null && ((AbstractEntityAIBasic<?, ?>) citizen.getJob().getWorkerAI()).getExceptionTimer() > 1);
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(DEMANDS + HOMELESSNESS), citizen -> (citizen.getCitizenHappinessHandler()).getModifier(HOMELESSNESS).getDays() > DEMANDS_DAYS_WITHOUT_HOUSE && citizen.getHomeBuilding() == null);
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(NO + HOMELESSNESS), citizen -> (citizen.getCitizenHappinessHandler()).getModifier(HOMELESSNESS).getDays() > COMPLAIN_DAYS_WITHOUT_HOUSE && (citizen.getCitizenHappinessHandler()).getModifier(HOMELESSNESS).getDays() <= DEMANDS_DAYS_WITHOUT_HOUSE && citizen.getHomeBuilding() == null);
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(DEMANDS + UNEMPLOYMENT), citizen -> (citizen.getCitizenHappinessHandler()).getModifier(UNEMPLOYMENT).getDays() > DEMANDS_DAYS_WITHOUT_JOB && citizen.getJob() == null);
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(NO + UNEMPLOYMENT), citizen -> (citizen.getCitizenHappinessHandler()).getModifier(UNEMPLOYMENT).getDays() > COMPLAIN_DAYS_WITHOUT_JOB && (citizen.getCitizenHappinessHandler()).getModifier(UNEMPLOYMENT).getDays() <= DEMANDS_DAYS_WITHOUT_JOB && citizen.getJob() == null);
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(DEMANDS + IDLEATJOB), citizen -> (citizen.getCitizenHappinessHandler()).getModifier(IDLEATJOB).getDays() > IDLE_AT_JOB_DEMANDS_DAYS);
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(NO + IDLEATJOB), citizen -> citizen.getCitizenHappinessHandler().getModifier(IDLEATJOB).getDays() > IDLE_AT_JOB_COMPLAINS_DAYS && citizen.getCitizenHappinessHandler().getModifier(IDLEATJOB).getDays() <= IDLE_AT_JOB_DEMANDS_DAYS);
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(NO + SLEPTTONIGHT), citizen -> !(citizen.getJob() instanceof AbstractJobGuard) && citizen.getCitizenHappinessHandler().getModifier(SLEPTTONIGHT).getDays() <= 0);
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(COM_MINECOLONIES_COREMOD_BEEKEEPER_NOFLOWERS), citizen -> citizen.getWorkBuilding() instanceof BuildingBeekeeper && ((BuildingBeekeeper) citizen.getWorkBuilding()).getModuleMatching(ItemListModule.class, m -> m.getId().equals(BUILDING_FLOWER_LIST)).getList().isEmpty());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(COM_MINECOLONIES_COREMOD_ENTITY_CITIZEN_RAINING), citizen -> citizen.getEntity().isPresent() && citizen.getEntity().get().getCommandSenderWorld().isRaining() && !citizen.getColony().getRaiderManager().isRaided() && !citizen.getCitizenMournHandler().isMourning());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(COM_MINECOLONIES_COREMOD_ENTITY_CITIZEN_RAID), citizen -> citizen.getEntity().isPresent() && citizen.getColony().getRaiderManager().isRaided());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(COM_MINECOLONIES_COREMOD_ENTITY_CITIZEN_SLEEPING), citizen -> citizen.getEntity().isPresent() && citizen.isAsleep());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(COM_MINECOLONIES_COREMOD_ENTITY_CITIZEN_MOURNING), citizen -> citizen.getEntity().isPresent() && citizen.getCitizenMournHandler().isMourning() && !citizen.getColony().getRaiderManager().isRaided());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(CITIZEN_NOT_GUARD_NEAR_WORK), citizen -> citizen.getWorkBuilding() != null && !citizen.getWorkBuilding().isGuardBuildingNear());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(CITIZEN_NOT_GUARD_NEAR_HOME), citizen -> citizen.getHomeBuilding() != null && !citizen.getHomeBuilding().isGuardBuildingNear());
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(QUARRY_MINER_NO_QUARRY), citizen -> citizen.getJob() instanceof JobQuarrier && ((JobQuarrier) citizen.getJob()).findQuarry() == null);
    InteractionValidatorRegistry.registerStandardPredicate(new TranslationTextComponent(QUARRY_MINER_FINISHED_QUARRY), citizen -> citizen.getJob() instanceof JobQuarrier && ((JobQuarrier) citizen.getJob()).findQuarry() != null && ((JobQuarrier) citizen.getJob()).findQuarry().getFirstModuleOccurance(QuarryModule.class).isFinished());
}
Also used : IItemHandler(net.minecraftforge.items.IItemHandler) WorkerUtil.isThereCompostedLand(com.minecolonies.coremod.util.WorkerUtil.isThereCompostedLand) HappinessConstants(com.minecolonies.api.util.constant.HappinessConstants) ItemStackUtils(com.minecolonies.api.util.ItemStackUtils) BUILDING_FLOWER_LIST(com.minecolonies.api.util.constant.BuildingConstants.BUILDING_FLOWER_LIST) LOW_SATURATION(com.minecolonies.api.util.constant.CitizenConstants.LOW_SATURATION) TranslationTextComponent(net.minecraft.util.text.TranslationTextComponent) FOOD_EXCLUSION_LIST(com.minecolonies.coremod.colony.buildings.workerbuildings.BuildingCook.FOOD_EXCLUSION_LIST) AbstractEntityAIBasic(com.minecolonies.coremod.entity.ai.basic.AbstractEntityAIBasic) com.minecolonies.coremod.colony.buildings.workerbuildings(com.minecolonies.coremod.colony.buildings.workerbuildings) ImmutableList(com.google.common.collect.ImmutableList) WorkerUtil.getLastLadder(com.minecolonies.coremod.util.WorkerUtil.getLastLadder) ITEM_HANDLER_CAPABILITY(net.minecraftforge.items.CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) FUEL_LIST(com.minecolonies.api.util.constant.BuildingConstants.FUEL_LIST) TranslationConstants(com.minecolonies.api.util.constant.TranslationConstants) ModTags(com.minecolonies.api.items.ModTags) World(net.minecraft.world.World) IColonyManager(com.minecolonies.api.colony.IColonyManager) AbstractBuilding(com.minecolonies.coremod.colony.buildings.AbstractBuilding) InteractionValidatorRegistry(com.minecolonies.api.colony.interactionhandling.InteractionValidatorRegistry) List(java.util.List) RequestUtils(com.minecolonies.api.colony.requestsystem.request.RequestUtils) WorkerUtil(com.minecolonies.coremod.util.WorkerUtil) ORE_LIST(com.minecolonies.coremod.entity.ai.citizen.smelter.EntityAIWorkSmelter.ORE_LIST) IBuilding(com.minecolonies.api.colony.buildings.IBuilding) InventoryUtils(com.minecolonies.api.util.InventoryUtils) IColony(com.minecolonies.api.colony.IColony) TileEntity(net.minecraft.tileentity.TileEntity) ItemStorage(com.minecolonies.api.crafting.ItemStorage) com.minecolonies.coremod.colony.jobs(com.minecolonies.coremod.colony.jobs) ScarecrowTileEntity(com.minecolonies.coremod.tileentities.ScarecrowTileEntity) com.minecolonies.coremod.colony.buildings.modules(com.minecolonies.coremod.colony.buildings.modules) IBuilding(com.minecolonies.api.colony.buildings.IBuilding) World(net.minecraft.world.World) ScarecrowTileEntity(com.minecolonies.coremod.tileentities.ScarecrowTileEntity) ItemStorage(com.minecolonies.api.crafting.ItemStorage) TileEntity(net.minecraft.tileentity.TileEntity) ScarecrowTileEntity(com.minecolonies.coremod.tileentities.ScarecrowTileEntity) TranslationTextComponent(net.minecraft.util.text.TranslationTextComponent) AbstractBuilding(com.minecolonies.coremod.colony.buildings.AbstractBuilding) IItemHandler(net.minecraftforge.items.IItemHandler) IColony(com.minecolonies.api.colony.IColony)

Example 2 with BUILDING_FLOWER_LIST

use of com.minecolonies.api.util.constant.BuildingConstants.BUILDING_FLOWER_LIST 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 BUILDING_FLOWER_LIST

use of com.minecolonies.api.util.constant.BuildingConstants.BUILDING_FLOWER_LIST in project minecolonies by Minecolonies.

the class EntityAIWorkBeekeeper method decideWhatToDo.

/**
 * Decides what job the beekeeper should switch to, breeding or harvesting.
 *
 * @return The next {@link IAIState} the beekeeper should switch to, after executing this method.
 */
private IAIState decideWhatToDo() {
    setDelay(DECIDING_DELAY + (99 / getSecondarySkillLevel() - 1));
    final Set<BlockPos> hives = getOwnBuilding().getHives();
    if (hives.isEmpty()) {
        worker.getCitizenData().triggerInteraction(new StandardInteraction(new TranslationTextComponent(NO_HIVES), ChatPriority.BLOCKING));
        setDelay(NO_HIVES_DELAY);
        return DECIDE;
    }
    ItemListModule flowersModule = getOwnBuilding().getModuleMatching(ItemListModule.class, m -> m.getId().equals(BUILDING_FLOWER_LIST));
    if (flowersModule.getList().isEmpty()) {
        worker.getCitizenData().triggerInteraction(new StandardInteraction(new TranslationTextComponent(COM_MINECOLONIES_COREMOD_BEEKEEPER_NOFLOWERS), ChatPriority.BLOCKING));
        setDelay(NO_FLOWERS_DELAY);
        return DECIDE;
    }
    for (BlockPos pos : hives) {
        if (!(world.getBlockState(pos).getBlock() instanceof BeehiveBlock)) {
            getOwnBuilding().removeHive(pos);
        }
    }
    final Optional<BlockPos> hive = getOwnBuilding().getHives().stream().filter(pos -> BeehiveTileEntity.getHoneyLevel(world.getBlockState(pos)) >= 5).findFirst();
    if (hive.isPresent()) {
        return BEEKEEPER_HARVEST;
    }
    final List<BeeEntity> bees = new ArrayList<>(searchForAnimals(world, getOwnBuilding()));
    final JobBeekeeper job = worker.getCitizenJobHandler().getColonyJob(JobBeekeeper.class);
    if (bees.isEmpty()) {
        if (getBeesInHives() <= 0) {
            job.tickNoBees();
            if (job.checkForBeeInteraction()) {
                worker.getCitizenData().triggerInteraction(new StandardInteraction(new TranslationTextComponent(NO_BEES), ChatPriority.BLOCKING));
            }
        } else {
            job.resetCounter();
        }
        setDelay(NO_ANIMALS_DELAY);
        return DECIDE;
    } else {
        job.resetCounter();
    }
    worker.getCitizenStatusHandler().setLatestStatus(new TranslationTextComponent(TranslationConstants.COM_MINECOLONIES_COREMOD_STATUS_DECIDING));
    final int breedableAnimals = (int) bees.stream().filter(animal -> animal.getAge() == 0).count();
    final boolean hasBreedingItem = InventoryUtils.hasItemInItemHandler(worker.getInventoryCitizen(), (stack) -> flowersModule.isItemInList(new ItemStorage(stack)));
    if (getOwnBuilding().getSetting(BuildingBeekeeper.BREEDING).getValue() && !hasMaxAnimals(bees) && breedableAnimals >= NUM_OF_ANIMALS_TO_BREED && hasBreedingItem) {
        return HERDER_BREED;
    }
    return START_WORKING;
}
Also used : ItemListModule(com.minecolonies.coremod.colony.buildings.modules.ItemListModule) BeeEntity(net.minecraft.entity.passive.BeeEntity) BeehiveBlock(net.minecraft.block.BeehiveBlock) java.util(java.util) StackList(com.minecolonies.api.colony.requestsystem.requestable.StackList) ItemStackUtils(com.minecolonies.api.util.ItemStackUtils) Item(net.minecraft.item.Item) BuildingBeekeeper(com.minecolonies.coremod.colony.buildings.workerbuildings.BuildingBeekeeper) AxisAlignedBB(net.minecraft.util.math.AxisAlignedBB) Compatibility(com.minecolonies.api.compatibility.Compatibility) BUILDING_FLOWER_LIST(com.minecolonies.api.util.constant.BuildingConstants.BUILDING_FLOWER_LIST) TypeToken(com.google.common.reflect.TypeToken) TranslationTextComponent(net.minecraft.util.text.TranslationTextComponent) ItemStack(net.minecraft.item.ItemStack) IAIState(com.minecolonies.api.entity.ai.statemachine.states.IAIState) BlockTags(net.minecraft.tags.BlockTags) BeehiveTileEntity(net.minecraft.tileentity.BeehiveTileEntity) JobBeekeeper(com.minecolonies.coremod.colony.jobs.JobBeekeeper) Hand(net.minecraft.util.Hand) AITarget(com.minecolonies.api.entity.ai.statemachine.AITarget) AnimalEntity(net.minecraft.entity.passive.AnimalEntity) TICKS_SECOND(com.minecolonies.api.util.constant.Constants.TICKS_SECOND) ItemListModule(com.minecolonies.coremod.colony.buildings.modules.ItemListModule) TranslationConstants(com.minecolonies.api.util.constant.TranslationConstants) AbstractEntityAIInteract(com.minecolonies.coremod.entity.ai.basic.AbstractEntityAIInteract) Entity(net.minecraft.entity.Entity) ItemTags(net.minecraft.tags.ItemTags) TOOL_LEVEL_WOOD_OR_GOLD(com.minecolonies.api.util.constant.ToolLevelConstants.TOOL_LEVEL_WOOD_OR_GOLD) World(net.minecraft.world.World) ChatPriority(com.minecolonies.api.colony.interactionhandling.ChatPriority) StandardInteraction(com.minecolonies.coremod.colony.interactionhandling.StandardInteraction) BlockPos(net.minecraft.util.math.BlockPos) Items(net.minecraft.item.Items) AIWorkerState(com.minecolonies.api.entity.ai.statemachine.states.AIWorkerState) Collectors(java.util.stream.Collectors) InventoryUtils(com.minecolonies.api.util.InventoryUtils) ToolType(com.minecolonies.api.util.constant.ToolType) ItemStorage(com.minecolonies.api.crafting.ItemStorage) NotNull(org.jetbrains.annotations.NotNull) BlockStateProperties(net.minecraft.state.properties.BlockStateProperties) StandardInteraction(com.minecolonies.coremod.colony.interactionhandling.StandardInteraction) BeehiveBlock(net.minecraft.block.BeehiveBlock) ItemStorage(com.minecolonies.api.crafting.ItemStorage) JobBeekeeper(com.minecolonies.coremod.colony.jobs.JobBeekeeper) BeeEntity(net.minecraft.entity.passive.BeeEntity) TranslationTextComponent(net.minecraft.util.text.TranslationTextComponent) BlockPos(net.minecraft.util.math.BlockPos)

Example 4 with BUILDING_FLOWER_LIST

use of com.minecolonies.api.util.constant.BuildingConstants.BUILDING_FLOWER_LIST in project minecolonies by Minecolonies.

the class EntityAIWorkBeekeeper method prepareForHerding.

/**
 * Prepares the beekeeper for herding
 *
 * @return The next {@link IAIState}.
 */
private IAIState prepareForHerding() {
    setDelay(DECIDING_DELAY);
    if (!getOwnBuilding().getHarvestTypes().equals(BuildingBeekeeper.HONEY)) {
        if (checkForToolOrWeapon(ToolType.SHEARS)) {
            return getState();
        }
    }
    if (!getOwnBuilding().getHarvestTypes().equals(BuildingBeekeeper.HONEYCOMB)) {
        checkIfRequestForItemExistOrCreateAsynch(new ItemStack(Items.GLASS_BOTTLE));
    }
    List<ItemStorage> allowedFlowers = getOwnBuilding().getModuleMatching(ItemListModule.class, m -> m.getId().equals(BUILDING_FLOWER_LIST)).getList();
    ;
    if (!InventoryUtils.hasItemInItemHandler(worker.getInventoryCitizen(), (stack) -> allowedFlowers.contains(new ItemStorage(stack))) && InventoryUtils.getCountFromBuilding(getOwnBuilding(), allowedFlowers) == 0 && !getOwnBuilding().hasWorkerOpenRequestsOfType(worker.getCitizenData().getId(), TypeToken.of(StackList.class))) {
        worker.getCitizenData().createRequestAsync(new StackList(allowedFlowers.stream().map((item) -> item.getItemStack()).peek((stack) -> stack.setCount(16)).collect(Collectors.toList()), COM_MINECOLONIES_COREMOD_REQUEST_FLOWERS, 16, 1));
    }
    return DECIDE;
}
Also used : ItemListModule(com.minecolonies.coremod.colony.buildings.modules.ItemListModule) BeeEntity(net.minecraft.entity.passive.BeeEntity) BeehiveBlock(net.minecraft.block.BeehiveBlock) java.util(java.util) StackList(com.minecolonies.api.colony.requestsystem.requestable.StackList) ItemStackUtils(com.minecolonies.api.util.ItemStackUtils) Item(net.minecraft.item.Item) BuildingBeekeeper(com.minecolonies.coremod.colony.buildings.workerbuildings.BuildingBeekeeper) AxisAlignedBB(net.minecraft.util.math.AxisAlignedBB) Compatibility(com.minecolonies.api.compatibility.Compatibility) BUILDING_FLOWER_LIST(com.minecolonies.api.util.constant.BuildingConstants.BUILDING_FLOWER_LIST) TypeToken(com.google.common.reflect.TypeToken) TranslationTextComponent(net.minecraft.util.text.TranslationTextComponent) ItemStack(net.minecraft.item.ItemStack) IAIState(com.minecolonies.api.entity.ai.statemachine.states.IAIState) BlockTags(net.minecraft.tags.BlockTags) BeehiveTileEntity(net.minecraft.tileentity.BeehiveTileEntity) JobBeekeeper(com.minecolonies.coremod.colony.jobs.JobBeekeeper) Hand(net.minecraft.util.Hand) AITarget(com.minecolonies.api.entity.ai.statemachine.AITarget) AnimalEntity(net.minecraft.entity.passive.AnimalEntity) TICKS_SECOND(com.minecolonies.api.util.constant.Constants.TICKS_SECOND) ItemListModule(com.minecolonies.coremod.colony.buildings.modules.ItemListModule) TranslationConstants(com.minecolonies.api.util.constant.TranslationConstants) AbstractEntityAIInteract(com.minecolonies.coremod.entity.ai.basic.AbstractEntityAIInteract) Entity(net.minecraft.entity.Entity) ItemTags(net.minecraft.tags.ItemTags) TOOL_LEVEL_WOOD_OR_GOLD(com.minecolonies.api.util.constant.ToolLevelConstants.TOOL_LEVEL_WOOD_OR_GOLD) World(net.minecraft.world.World) ChatPriority(com.minecolonies.api.colony.interactionhandling.ChatPriority) StandardInteraction(com.minecolonies.coremod.colony.interactionhandling.StandardInteraction) BlockPos(net.minecraft.util.math.BlockPos) Items(net.minecraft.item.Items) AIWorkerState(com.minecolonies.api.entity.ai.statemachine.states.AIWorkerState) Collectors(java.util.stream.Collectors) InventoryUtils(com.minecolonies.api.util.InventoryUtils) ToolType(com.minecolonies.api.util.constant.ToolType) ItemStorage(com.minecolonies.api.crafting.ItemStorage) NotNull(org.jetbrains.annotations.NotNull) BlockStateProperties(net.minecraft.state.properties.BlockStateProperties) StackList(com.minecolonies.api.colony.requestsystem.requestable.StackList) ItemStack(net.minecraft.item.ItemStack) ItemStorage(com.minecolonies.api.crafting.ItemStorage)

Example 5 with BUILDING_FLOWER_LIST

use of com.minecolonies.api.util.constant.BuildingConstants.BUILDING_FLOWER_LIST 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

BUILDING_FLOWER_LIST (com.minecolonies.api.util.constant.BuildingConstants.BUILDING_FLOWER_LIST)10 TranslationConstants (com.minecolonies.api.util.constant.TranslationConstants)10 ItemStorage (com.minecolonies.api.crafting.ItemStorage)8 InventoryUtils (com.minecolonies.api.util.InventoryUtils)8 ItemStackUtils (com.minecolonies.api.util.ItemStackUtils)8 ItemStack (net.minecraft.item.ItemStack)8 Items (net.minecraft.item.Items)8 TranslationTextComponent (net.minecraft.util.text.TranslationTextComponent)8 World (net.minecraft.world.World)8 TypeToken (com.google.common.reflect.TypeToken)6 ChatPriority (com.minecolonies.api.colony.interactionhandling.ChatPriority)6 StackList (com.minecolonies.api.colony.requestsystem.requestable.StackList)6 Compatibility (com.minecolonies.api.compatibility.Compatibility)6 AITarget (com.minecolonies.api.entity.ai.statemachine.AITarget)6 AIWorkerState (com.minecolonies.api.entity.ai.statemachine.states.AIWorkerState)6 IAIState (com.minecolonies.api.entity.ai.statemachine.states.IAIState)6 TICKS_SECOND (com.minecolonies.api.util.constant.Constants.TICKS_SECOND)6 TOOL_LEVEL_WOOD_OR_GOLD (com.minecolonies.api.util.constant.ToolLevelConstants.TOOL_LEVEL_WOOD_OR_GOLD)6 ToolType (com.minecolonies.api.util.constant.ToolType)6 ItemListModule (com.minecolonies.coremod.colony.buildings.modules.ItemListModule)6