Class CartographyTableScreen

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

public class CartographyTableScreen extends AbstractContainerScreen<CartographyTableMenu>
  • Field Details

    • ERROR_SPRITE

      private static final Identifier ERROR_SPRITE
    • SCALED_MAP_SPRITE

      private static final Identifier SCALED_MAP_SPRITE
    • DUPLICATED_MAP_SPRITE

      private static final Identifier DUPLICATED_MAP_SPRITE
    • MAP_SPRITE

      private static final Identifier MAP_SPRITE
    • LOCKED_SPRITE

      private static final Identifier LOCKED_SPRITE
    • BG_LOCATION

      private static final Identifier BG_LOCATION
    • mapRenderState

      private final MapRenderState mapRenderState
  • Constructor Details

  • Method Details

    • render

      public void render(GuiGraphics p_281331_, int p_281706_, int p_282996_, float p_283037_)
      Description copied from interface: Renderable
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class AbstractContainerScreen<CartographyTableMenu>
      Parameters:
      p_281331_ - the GuiGraphics object used for rendering.
      p_281706_ - the x-coordinate of the mouse cursor.
      p_282996_ - the y-coordinate of the mouse cursor.
      p_283037_ - the partial tick time.
    • renderBg

      protected void renderBg(GuiGraphics p_282101_, float p_282697_, int p_282380_, int p_282327_)
      Specified by:
      renderBg in class AbstractContainerScreen<CartographyTableMenu>
    • renderResultingMap

      private void renderResultingMap(GuiGraphics guiGraphics, @Nullable MapId mapId, @Nullable MapItemSavedData mapData, boolean hasMap, boolean hasPaper, boolean hasGlassPane, boolean isMaxSize)
    • renderMap

      private void renderMap(GuiGraphics guiGraphics, @Nullable MapId mapId, @Nullable MapItemSavedData mapData, int x, int y, float scale)