Class ContainerScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement, MenuAccess<ChestMenu>

public class ContainerScreen extends AbstractContainerScreen<ChestMenu> implements MenuAccess<ChestMenu>
  • Field Details

    • CONTAINER_BACKGROUND

      private static final ResourceLocation CONTAINER_BACKGROUND
      The ResourceLocation containing the chest GUI texture.
    • containerRows

      private final int containerRows
      Window height is calculated with these values" the more rows, the higher
  • Constructor Details

  • Method Details

    • render

      public void render(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class AbstractContainerScreen<ChestMenu>
      Parameters:
      pGuiGraphics - the GuiGraphics object used for rendering.
      pMouseX - the x-coordinate of the mouse cursor.
      pMouseY - the y-coordinate of the mouse cursor.
      pPartialTick - the partial tick time.
    • renderBg

      protected void renderBg(GuiGraphics pGuiGraphics, float pPartialTick, int pMouseX, int pMouseY)
      Specified by:
      renderBg in class AbstractContainerScreen<ChestMenu>