Class ContainerScreen

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

public class ContainerScreen extends AbstractContainerScreen<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 p_282060_, int p_282533_, int p_281661_, float p_281873_)
      Description copied from interface: Renderable
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class AbstractContainerScreen<ChestMenu>
      Parameters:
      p_282060_ - the GuiGraphics object used for rendering.
      p_282533_ - the x-coordinate of the mouse cursor.
      p_281661_ - the y-coordinate of the mouse cursor.
      p_281873_ - the partial tick time.
    • renderBg

      protected void renderBg(GuiGraphics p_283694_, float p_282334_, int p_282603_, int p_282158_)
      Specified by:
      renderBg in class AbstractContainerScreen<ChestMenu>