Search in sources :

Example 11 with IBuildingView

use of com.minecolonies.api.colony.buildings.views.IBuildingView in project minecolonies by ldtteam.

the class ItemResourceScroll method appendHoverText.

@Override
@OnlyIn(Dist.CLIENT)
public void appendHoverText(ItemStack stack, @Nullable World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn) {
    super.appendHoverText(stack, worldIn, tooltip, flagIn);
    if (worldIn == null)
        return;
    final CompoundNBT compound = checkForCompound(stack);
    final int colonyId = compound.getInt(TAG_COLONY_ID);
    final BlockPos builderPos = BlockPosUtil.read(compound, TAG_BUILDER);
    final IColonyView colonyView = IColonyManager.getInstance().getColonyView(colonyId, worldIn.dimension());
    if (colonyView != null) {
        final IBuildingView buildingView = colonyView.getBuilding(builderPos);
        if (buildingView instanceof BuildingBuilder.View) {
            String name = ((BuildingBuilder.View) buildingView).getWorkerName();
            tooltip.add(name != null && !name.trim().isEmpty() ? new StringTextComponent(TextFormatting.DARK_PURPLE + name) : new TranslationTextComponent(TranslationConstants.COM_MINECOLONIES_SCROLL_NO_BUILDER));
        }
    }
}
Also used : CompoundNBT(net.minecraft.nbt.CompoundNBT) IBuildingView(com.minecolonies.api.colony.buildings.views.IBuildingView) TranslationTextComponent(net.minecraft.util.text.TranslationTextComponent) BlockPos(net.minecraft.util.math.BlockPos) StringTextComponent(net.minecraft.util.text.StringTextComponent) IColonyView(com.minecolonies.api.colony.IColonyView) IColonyView(com.minecolonies.api.colony.IColonyView) IBuildingView(com.minecolonies.api.colony.buildings.views.IBuildingView) OnlyIn(net.minecraftforge.api.distmarker.OnlyIn)

Example 12 with IBuildingView

use of com.minecolonies.api.colony.buildings.views.IBuildingView in project minecolonies by ldtteam.

the class WindowResourceList method pullResourcesFromHut.

/**
 * Retrieve resources from the building to display in GUI.
 */
private void pullResourcesFromHut() {
    final IBuildingView newView = builder.getColony().getBuilding(builder.getID());
    if (newView instanceof BuildingBuilder.View) {
        final BuildingResourcesModuleView moduleView = newView.getModuleView(BuildingResourcesModuleView.class);
        final PlayerInventory inventory = this.mc.player.inventory;
        final boolean isCreative = this.mc.player.isCreative();
        final List<Delivery> deliveries = new ArrayList<>();
        for (Map.Entry<Integer, Collection<IToken<?>>> entry : builder.getOpenRequestsByCitizen().entrySet()) {
            addDeliveryRequestsToList(deliveries, ImmutableList.copyOf(entry.getValue()));
        }
        resources.clear();
        resources.addAll(moduleView.getResources().values());
        double supplied = 0;
        double total = 0;
        for (final BuildingBuilderResource resource : resources) {
            final int amountToSet;
            if (isCreative) {
                amountToSet = resource.getAmount();
            } else {
                amountToSet = InventoryUtils.getItemCountInItemHandler(new InvWrapper(inventory), stack -> !ItemStackUtils.isEmpty(stack) && ItemStackUtils.compareItemStacksIgnoreStackSize(stack, resource.getItemStack()));
            }
            resource.setPlayerAmount(amountToSet);
            resource.setAmountInDelivery(0);
            for (final Delivery delivery : deliveries) {
                if (ItemStackUtils.compareItemStacksIgnoreStackSize(resource.getItemStack(), delivery.getStack(), false, false)) {
                    resource.setAmountInDelivery(resource.getAmountInDelivery() + delivery.getStack().getCount());
                }
            }
            supplied += Math.min(resource.getAvailable(), resource.getAmount());
            total += resource.getAmount();
        }
        if (total > 0) {
            findPaneOfTypeByID(LABEL_PROGRESS, Text.class).setText(new TranslationTextComponent("com.minecolonies.coremod.gui.progress.res", (int) ((supplied / total) * 100) + "%", moduleView.getProgress() + "%"));
        }
        resources.sort(new BuildingBuilderResource.ResourceComparator(NOT_NEEDED, HAVE_ENOUGH, IN_DELIVERY, NEED_MORE, DONT_HAVE));
    }
}
Also used : MarkBuildingDirtyMessage(com.minecolonies.coremod.network.messages.server.colony.building.MarkBuildingDirtyMessage) IRequest(com.minecolonies.api.colony.requestsystem.request.IRequest) WindowBuilderResModule(com.minecolonies.coremod.client.gui.modules.WindowBuilderResModule) ItemStackUtils(com.minecolonies.api.util.ItemStackUtils) ClientPlayerEntity(net.minecraft.client.entity.player.ClientPlayerEntity) ImmutableCollection(com.google.common.collect.ImmutableCollection) IToken(com.minecolonies.api.colony.requestsystem.token.IToken) BuildingBuilder(com.minecolonies.coremod.colony.buildings.workerbuildings.BuildingBuilder) ScrollingList(com.ldtteam.blockout.views.ScrollingList) ItemIcon(com.ldtteam.blockout.controls.ItemIcon) TranslationTextComponent(net.minecraft.util.text.TranslationTextComponent) ArrayList(java.util.ArrayList) ItemStack(net.minecraft.item.ItemStack) InvWrapper(net.minecraftforge.items.wrapper.InvWrapper) BuildingBuilderResource(com.minecolonies.coremod.colony.buildings.utils.BuildingBuilderResource) ImmutableList(com.google.common.collect.ImmutableList) Minecraft(net.minecraft.client.Minecraft) Map(java.util.Map) RessourceAvailability(com.minecolonies.coremod.colony.buildings.utils.BuildingBuilderResource.RessourceAvailability) Delivery(com.minecolonies.api.colony.requestsystem.requestable.deliveryman.Delivery) Network(com.minecolonies.coremod.Network) Constants(com.minecolonies.api.util.constant.Constants) PlayerInventory(net.minecraft.entity.player.PlayerInventory) IColonyView(com.minecolonies.api.colony.IColonyView) BuildingResourcesModuleView(com.minecolonies.coremod.colony.buildings.moduleviews.BuildingResourcesModuleView) Collection(java.util.Collection) IColonyManager(com.minecolonies.api.colony.IColonyManager) IBuildingView(com.minecolonies.api.colony.buildings.views.IBuildingView) BlockPos(net.minecraft.util.math.BlockPos) Pane(com.ldtteam.blockout.Pane) Text(com.ldtteam.blockout.controls.Text) Nullable(org.jetbrains.annotations.Nullable) List(java.util.List) Image(com.ldtteam.blockout.controls.Image) WindowConstants(com.minecolonies.api.util.constant.WindowConstants) InventoryUtils(com.minecolonies.api.util.InventoryUtils) NotNull(org.jetbrains.annotations.NotNull) ArrayList(java.util.ArrayList) Text(com.ldtteam.blockout.controls.Text) PlayerInventory(net.minecraft.entity.player.PlayerInventory) IColonyView(com.minecolonies.api.colony.IColonyView) BuildingResourcesModuleView(com.minecolonies.coremod.colony.buildings.moduleviews.BuildingResourcesModuleView) IBuildingView(com.minecolonies.api.colony.buildings.views.IBuildingView) BuildingResourcesModuleView(com.minecolonies.coremod.colony.buildings.moduleviews.BuildingResourcesModuleView) InvWrapper(net.minecraftforge.items.wrapper.InvWrapper) IBuildingView(com.minecolonies.api.colony.buildings.views.IBuildingView) ImmutableCollection(com.google.common.collect.ImmutableCollection) Collection(java.util.Collection) TranslationTextComponent(net.minecraft.util.text.TranslationTextComponent) Delivery(com.minecolonies.api.colony.requestsystem.requestable.deliveryman.Delivery) BuildingBuilderResource(com.minecolonies.coremod.colony.buildings.utils.BuildingBuilderResource) Map(java.util.Map)

Example 13 with IBuildingView

use of com.minecolonies.api.colony.buildings.views.IBuildingView in project minecolonies by ldtteam.

the class WindowBuildBuilding method updateResources.

/**
 * Clears and resets/updates all resources.
 */
private void updateResources() {
    if (stylesDropDownList.getSelectedIndex() == -1) {
        return;
    }
    final World world = Minecraft.getInstance().level;
    resources.clear();
    final IBuildingView parentBuilding = building.getColony().getBuilding(building.getParent());
    int nextLevel = building.getBuildingLevel();
    if (building.getBuildingLevel() < building.getBuildingMaxLevel() && (parentBuilding == null || building.getBuildingLevel() < parentBuilding.getBuildingLevel())) {
        nextLevel = building.getBuildingLevel() + 1;
    }
    final TileEntity tile = world.getBlockEntity(building.getID());
    String schematicName = building.getSchematicName();
    if (tile instanceof IBlueprintDataProvider) {
        if (!((IBlueprintDataProvider) tile).getSchematicName().isEmpty()) {
            schematicName = ((IBlueprintDataProvider) tile).getSchematicName().replaceAll("\\d$", "");
        }
    }
    final StructureName sn = new StructureName(Structures.SCHEMATICS_PREFIX, styles.get(stylesDropDownList.getSelectedIndex()), schematicName + nextLevel);
    final LoadOnlyStructureHandler structure = new LoadOnlyStructureHandler(world, building.getPosition(), sn.toString(), new PlacementSettings(), true);
    final String md5 = Structures.getMD5(sn.toString());
    if (!structure.hasBluePrint() || !structure.isCorrectMD5(md5)) {
        if (!structure.hasBluePrint()) {
            Log.getLogger().info("Template structure " + sn + " missing");
        } else {
            Log.getLogger().info("structure " + sn + " md5 error");
        }
        Log.getLogger().info("Request To Server for structure " + sn);
        if (ServerLifecycleHooks.getCurrentServer() == null) {
            com.ldtteam.structurize.Network.getNetwork().sendToServer(new SchematicRequestMessage(sn.toString()));
            return;
        } else {
            Log.getLogger().error("WindowMinecoloniesBuildTool: Need to download schematic on a standalone client/server. This should never happen", new Exception());
        }
    }
    if (!structure.hasBluePrint()) {
        findPaneOfTypeByID(BUTTON_BUILD, Button.class).hide();
        findPaneOfTypeByID(BUTTON_REPAIR, Button.class).hide();
        findPaneOfTypeByID(BUTTON_PICKUP_BUILDING, Button.class).show();
        return;
    }
    structure.getBluePrint().rotateWithMirror(BlockPosUtil.getRotationFromRotations(building.getRotation()), building.isMirrored() ? Mirror.FRONT_BACK : Mirror.NONE, world);
    StructurePlacer placer = new StructurePlacer(structure);
    StructurePhasePlacementResult result;
    BlockPos progressPos = NULL_POS;
    do {
        result = placer.executeStructureStep(world, null, progressPos, StructurePlacer.Operation.GET_RES_REQUIREMENTS, () -> placer.getIterator().increment(DONT_TOUCH_PREDICATE.and((info, pos, handler) -> false)), true);
        progressPos = result.getIteratorPos();
        for (final ItemStack stack : result.getBlockResult().getRequiredItems()) {
            addNeededResource(stack, stack.getCount());
        }
    } while (result != null && result.getBlockResult().getResult() != BlockPlacementResult.Result.FINISHED);
    window.findPaneOfTypeByID(LIST_RESOURCES, ScrollingList.class).refreshElementPanes();
    updateResourceList();
}
Also used : LanguageHandler(com.ldtteam.structurize.util.LanguageHandler) DropDownList(com.ldtteam.blockout.views.DropDownList) Structures(com.ldtteam.structurize.management.Structures) IBuilderUndestroyable(com.minecolonies.api.entity.ai.citizen.builder.IBuilderUndestroyable) ScrollingList(com.ldtteam.blockout.views.ScrollingList) TranslationTextComponent(net.minecraft.util.text.TranslationTextComponent) TriPredicate(net.minecraftforge.common.util.TriPredicate) ServerLifecycleHooks(net.minecraftforge.fml.server.ServerLifecycleHooks) Settings(com.ldtteam.structures.helpers.Settings) Network(com.minecolonies.coremod.Network) Log(com.minecolonies.api.util.Log) BlockState(net.minecraft.block.BlockState) Constants(com.minecolonies.api.util.constant.Constants) Color(com.ldtteam.blockout.Color) BuildPickUpMessage(com.minecolonies.coremod.network.messages.server.colony.building.BuildPickUpMessage) StructureName(com.ldtteam.structurize.management.StructureName) BuildingSetStyleMessage(com.minecolonies.coremod.network.messages.server.colony.building.BuildingSetStyleMessage) BlueprintPositionInfo(com.ldtteam.structurize.util.BlueprintPositionInfo) PlacementSettings(com.ldtteam.structurize.util.PlacementSettings) Collectors(java.util.stream.Collectors) Text(com.ldtteam.blockout.controls.Text) Nullable(org.jetbrains.annotations.Nullable) IStructureHandler(com.ldtteam.structurize.placement.structure.IStructureHandler) ItemStorage(com.minecolonies.api.crafting.ItemStorage) NotNull(org.jetbrains.annotations.NotNull) StructurePlacer(com.ldtteam.structurize.placement.StructurePlacer) java.util(java.util) ItemStackUtils(com.minecolonies.api.util.ItemStackUtils) LoadOnlyStructureHandler(com.minecolonies.api.util.LoadOnlyStructureHandler) Mirror(net.minecraft.util.Mirror) ItemIcon(com.ldtteam.blockout.controls.ItemIcon) ItemStack(net.minecraft.item.ItemStack) Minecraft(net.minecraft.client.Minecraft) BuildRequestMessage(com.minecolonies.coremod.network.messages.server.colony.building.BuildRequestMessage) ModJobs(com.minecolonies.api.colony.jobs.ModJobs) SchematicRequestMessage(com.ldtteam.structurize.network.messages.SchematicRequestMessage) StructurePhasePlacementResult(com.ldtteam.structurize.placement.StructurePhasePlacementResult) IBlueprintDataProvider(com.ldtteam.structurize.blocks.interfaces.IBlueprintDataProvider) IColonyView(com.minecolonies.api.colony.IColonyView) AbstractBuildingBuilderView(com.minecolonies.coremod.colony.buildings.views.AbstractBuildingBuilderView) World(net.minecraft.world.World) IBuildingView(com.minecolonies.api.colony.buildings.views.IBuildingView) Tuple(net.minecraft.util.Tuple) BlockPos(net.minecraft.util.math.BlockPos) NULL_POS(com.ldtteam.structurize.placement.AbstractBlueprintIterator.NULL_POS) Pane(com.ldtteam.blockout.Pane) BlockPosUtil(com.minecolonies.api.util.BlockPosUtil) AbstractBlockHut(com.minecolonies.api.blocks.AbstractBlockHut) Blocks(net.minecraft.block.Blocks) ModBuildings(com.minecolonies.api.colony.buildings.ModBuildings) Button(com.ldtteam.blockout.controls.Button) WindowConstants(com.minecolonies.api.util.constant.WindowConstants) BlockPlacementResult(com.ldtteam.structurize.placement.BlockPlacementResult) TileEntity(net.minecraft.tileentity.TileEntity) IBlueprintDataProvider(com.ldtteam.structurize.blocks.interfaces.IBlueprintDataProvider) StructureName(com.ldtteam.structurize.management.StructureName) World(net.minecraft.world.World) PlacementSettings(com.ldtteam.structurize.util.PlacementSettings) TileEntity(net.minecraft.tileentity.TileEntity) SchematicRequestMessage(com.ldtteam.structurize.network.messages.SchematicRequestMessage) Button(com.ldtteam.blockout.controls.Button) StructurePhasePlacementResult(com.ldtteam.structurize.placement.StructurePhasePlacementResult) StructurePlacer(com.ldtteam.structurize.placement.StructurePlacer) IBuildingView(com.minecolonies.api.colony.buildings.views.IBuildingView) BlockPos(net.minecraft.util.math.BlockPos) LoadOnlyStructureHandler(com.minecolonies.api.util.LoadOnlyStructureHandler) ItemStack(net.minecraft.item.ItemStack) ScrollingList(com.ldtteam.blockout.views.ScrollingList)

Example 14 with IBuildingView

use of com.minecolonies.api.colony.buildings.views.IBuildingView in project minecolonies by ldtteam.

the class WindowInfoPage method createAndSetStatistics.

/**
 * Creates several statistics and sets them in the building GUI.
 */
private void createAndSetStatistics() {
    final DecimalFormat df = new DecimalFormat("#.#");
    df.setRoundingMode(RoundingMode.CEILING);
    final String roundedHappiness = df.format(building.getColony().getOverallHappiness());
    findPaneOfTypeByID(HAPPINESS_LABEL, Text.class).setText(roundedHappiness);
    final int citizensSize = building.getColony().getCitizens().size();
    final int citizensCap;
    if (MinecoloniesAPIProxy.getInstance().getGlobalResearchTree().hasResearchEffect(CITIZEN_CAP)) {
        citizensCap = (int) (Math.min(MineColonies.getConfig().getServer().maxCitizenPerColony.get(), 25 + this.building.getColony().getResearchManager().getResearchEffects().getEffectStrength(CITIZEN_CAP)));
    } else {
        citizensCap = MineColonies.getConfig().getServer().maxCitizenPerColony.get();
    }
    final Text totalCitizenLabel = findPaneOfTypeByID(TOTAL_CITIZENS_LABEL, Text.class);
    totalCitizenLabel.setText(LanguageHandler.format(COM_MINECOLONIES_COREMOD_GUI_TOWNHALL_POPULATION_TOTALCITIZENS_COUNT, citizensSize, Math.max(citizensSize, building.getColony().getCitizenCountLimit())));
    List<IFormattableTextComponent> hoverText = new ArrayList<>();
    if (citizensSize < (citizensCap * 0.9) && citizensSize < (building.getColony().getCitizenCountLimit() * 0.9)) {
        totalCitizenLabel.setColors(DARKGREEN);
    } else if (citizensSize < citizensCap) {
        hoverText.add(new TranslationTextComponent("com.minecolonies.coremod.gui.townhall.population.totalcitizens.houselimited", this.building.getColony().getName()));
        totalCitizenLabel.setColors(ORANGE);
    } else {
        if (citizensCap < MineColonies.getConfig().getServer().maxCitizenPerColony.get()) {
            hoverText.add(new TranslationTextComponent("com.minecolonies.coremod.gui.townhall.population.totalcitizens.researchlimited", this.building.getColony().getName()));
        } else {
            hoverText.add(new TranslationTextComponent("com.minecolonies.coremod.gui.townhall.population.totalcitizens.configlimited", this.building.getColony().getName()));
        }
        totalCitizenLabel.setText(LanguageHandler.format(COM_MINECOLONIES_COREMOD_GUI_TOWNHALL_POPULATION_TOTALCITIZENS_COUNT, citizensSize, citizensCap));
        totalCitizenLabel.setColors(RED);
    }
    PaneBuilders.tooltipBuilder().hoverPane(totalCitizenLabel).build().setText(hoverText);
    int children = 0;
    final Map<String, Tuple<Integer, Integer>> jobMaxCountMap = new HashMap<>();
    for (@NotNull final IBuildingView building : building.getColony().getBuildings()) {
        if (building instanceof AbstractBuildingView) {
            for (final WorkerBuildingModuleView module : building.getModuleViews(WorkerBuildingModuleView.class)) {
                int max = module.getMaxInhabitants();
                int workers = module.getAssignedCitizens().size();
                final String jobName = module.getJobDisplayName().toLowerCase(Locale.ENGLISH);
                final Tuple<Integer, Integer> tuple = jobMaxCountMap.getOrDefault(jobName, new Tuple<>(0, 0));
                jobMaxCountMap.put(jobName, new Tuple<>(tuple.getA() + workers, tuple.getB() + max));
            }
        }
    }
    // calculate number of children
    int unemployedCount = 0;
    for (ICitizenDataView iCitizenDataView : building.getColony().getCitizens().values()) {
        if (iCitizenDataView.isChild()) {
            children++;
        } else if (iCitizenDataView.getJobView() == null) {
            unemployedCount++;
        }
    }
    final String numberOfUnemployed = LanguageHandler.format(COM_MINECOLONIES_COREMOD_GUI_TOWNHALL_POPULATION_UNEMPLOYED, unemployedCount);
    final String numberOfKids = LanguageHandler.format(COM_MINECOLONIES_COREMOD_GUI_TOWNHALL_POPULATION_CHILDS, children);
    final ScrollingList list = findPaneOfTypeByID("citizen-stats", ScrollingList.class);
    if (list == null) {
        return;
    }
    final int maxJobs = jobMaxCountMap.size();
    final List<Map.Entry<String, Tuple<Integer, Integer>>> theList = new ArrayList<>(jobMaxCountMap.entrySet());
    list.setDataProvider(new ScrollingList.DataProvider() {

        @Override
        public int getElementCount() {
            return maxJobs + 2;
        }

        @Override
        public void updateElement(final int index, @NotNull final Pane rowPane) {
            final Text label = rowPane.findPaneOfTypeByID(CITIZENS_AMOUNT_LABEL, Text.class);
            if (index < theList.size()) {
                final Map.Entry<String, Tuple<Integer, Integer>> entry = theList.get(index);
                final String job = LanguageHandler.format(entry.getKey());
                final String numberOfWorkers = LanguageHandler.format(COM_MINECOLONIES_COREMOD_GUI_TOWNHALL_POPULATION_EACH, job, entry.getValue().getA(), entry.getValue().getB());
                label.setText(numberOfWorkers);
            } else {
                if (index == maxJobs + 1) {
                    label.setText(numberOfUnemployed);
                } else {
                    label.setText(numberOfKids);
                }
            }
        }
    });
}
Also used : DecimalFormat(java.text.DecimalFormat) WorkerBuildingModuleView(com.minecolonies.coremod.colony.buildings.moduleviews.WorkerBuildingModuleView) NotNull(org.jetbrains.annotations.NotNull) AbstractBuildingView(com.minecolonies.coremod.colony.buildings.views.AbstractBuildingView) TranslationTextComponent(net.minecraft.util.text.TranslationTextComponent) IFormattableTextComponent(net.minecraft.util.text.IFormattableTextComponent) Pane(com.ldtteam.blockout.Pane) IBuildingView(com.minecolonies.api.colony.buildings.views.IBuildingView) ICitizenDataView(com.minecolonies.api.colony.ICitizenDataView) ScrollingList(com.ldtteam.blockout.views.ScrollingList) Tuple(com.minecolonies.api.util.Tuple)

Example 15 with IBuildingView

use of com.minecolonies.api.colony.buildings.views.IBuildingView in project minecolonies by ldtteam.

the class WindowMineGuardModule method onOpened.

@Override
public void onOpened() {
    super.onOpened();
    guardsList = findPaneOfTypeByID(LIST_GUARDS, ScrollingList.class);
    guardsList.setDataProvider(new ScrollingList.DataProvider() {

        @Override
        public int getElementCount() {
            return guardsInfo.size();
        }

        @Override
        public void updateElement(final int i, final Pane pane) {
            final ICitizenDataView citizen = guardsInfo.get(i);
            if (citizen != null) {
                final IBuildingView building = buildingView.getColony().getBuilding(citizen.getWorkBuilding());
                if (building instanceof AbstractBuildingGuards.View) {
                    pane.findPaneOfTypeByID("guardName", Text.class).setText(citizen.getName());
                    final AbstractBuildingGuards.View guardbuilding = (AbstractBuildingGuards.View) building;
                    final Button button = pane.findPaneOfTypeByID("assignGuard", Button.class);
                    if (guardbuilding.getMinePos() == null) {
                        button.setText(new TranslationTextComponent("com.minecolonies.coremod.gui.hiring.buttonassign"));
                        if (assignedGuards >= getMaxGuards()) {
                            button.setEnabled(false);
                        } else {
                            button.setEnabled(true);
                        }
                    } else if (guardbuilding.getMinePos().equals(buildingView.getPosition())) {
                        button.setText(new TranslationTextComponent("com.minecolonies.coremod.gui.hiring.buttonunassign"));
                    } else {
                        button.setText(new TranslationTextComponent("com.minecolonies.coremod.gui.hiring.buttonassign"));
                        button.setEnabled(false);
                    }
                }
            } else {
                final Button button = pane.findPaneOfTypeByID("assignGuard", Button.class);
                button.setEnabled(false);
            }
        }
    });
}
Also used : AbstractBuildingGuards(com.minecolonies.coremod.colony.buildings.AbstractBuildingGuards) Button(com.ldtteam.blockout.controls.Button) IBuildingView(com.minecolonies.api.colony.buildings.views.IBuildingView) TranslationTextComponent(net.minecraft.util.text.TranslationTextComponent) ICitizenDataView(com.minecolonies.api.colony.ICitizenDataView) ScrollingList(com.ldtteam.blockout.views.ScrollingList) Pane(com.ldtteam.blockout.Pane) IBuildingView(com.minecolonies.api.colony.buildings.views.IBuildingView) ICitizenDataView(com.minecolonies.api.colony.ICitizenDataView) SettingsModuleView(com.minecolonies.coremod.colony.buildings.moduleviews.SettingsModuleView)

Aggregations

IBuildingView (com.minecolonies.api.colony.buildings.views.IBuildingView)30 Pane (com.ldtteam.blockout.Pane)14 TranslationTextComponent (net.minecraft.util.text.TranslationTextComponent)14 ScrollingList (com.ldtteam.blockout.views.ScrollingList)12 Text (com.ldtteam.blockout.controls.Text)10 IColonyView (com.minecolonies.api.colony.IColonyView)10 BlockPos (net.minecraft.util.math.BlockPos)10 Button (com.ldtteam.blockout.controls.Button)8 Nullable (org.jetbrains.annotations.Nullable)8 NotNull (org.jetbrains.annotations.NotNull)7 PlacementSettings (com.ldtteam.structurize.util.PlacementSettings)6 ICitizenDataView (com.minecolonies.api.colony.ICitizenDataView)6 LoadOnlyStructureHandler (com.minecolonies.api.util.LoadOnlyStructureHandler)6 Constants (com.minecolonies.api.util.constant.Constants)6 Network (com.minecolonies.coremod.Network)6 AbstractBuildingGuards (com.minecolonies.coremod.colony.buildings.AbstractBuildingGuards)6 AbstractBuildingView (com.minecolonies.coremod.colony.buildings.views.AbstractBuildingView)6 List (java.util.List)6 ItemStack (net.minecraft.item.ItemStack)6 Image (com.ldtteam.blockout.controls.Image)4