content: package com.accbdd.complicated_bees.screen;
  
  import net.minecraft.client.gui.GuiGraphics;
  import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen;
  import net.minecraft.network.chat.Component;
  import net.minecraft.resources.ResourceLocation;
  import net.minecraft.world.entity.player.Inventory;
  
  import static com.accbdd.complicated_bees.ComplicatedBees.MODID;
  
  public class MellariumFrameHousingScreen extends AbstractContainerScreen<MellariumFrameHousingMenu> {
      private final ResourceLocation GUI;
  
      public MellariumFrameHousingScreen(MellariumFrameHousingMenu menu, Inventory inventory, Component title) {
          super(menu, inventory, title);
          this.GUI = new ResourceLocation(MODID, "textures/gui/mellarium_frame"+(menu.slots.size()-36)+".png");
          this.imageHeight = 143;
          this.imageWidth = 176;
          this.inventoryLabelY = this.imageHeight - 10000;
      }
  
      @Override
      protected void renderLabels(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY) {
          pGuiGraphics.drawString(this.font, this.title, this.imageWidth/2 - this.font.width(this.title)/2, this.titleLabelY, 4210752, false);
          pGuiGraphics.drawString(this.font, this.playerInventoryTitle, this.inventoryLabelX, this.inventoryLabelY, 4210752, false);
      }
  
      @Override
      protected void renderBg(GuiGraphics graphics, float partialTicks, int mouseX, int mouseY) {
          renderBackground(graphics);
          int relX = (this.width - this.imageWidth) / 2;
          int relY = (this.height - this.imageHeight) / 2;
          graphics.blit(GUI, relX, relY, 0, 0, this.imageWidth, this.imageHeight);
      }
  
      @Override
      public void render(GuiGraphics graphics, int mouseX, int mouseY, float partialTick) {
          super.render(graphics, mouseX, mouseY, partialTick);
          renderTooltip(graphics, mouseX, mouseY);
      }
  }
  