Class AbstractMountInventoryScreen<T extends AbstractMountInventoryMenu>

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement, MenuAccess<T>
Direct Known Subclasses:
HorseInventoryScreen, NautilusInventoryScreen

public abstract class AbstractMountInventoryScreen<T extends AbstractMountInventoryMenu> extends AbstractContainerScreen<T>
  • Field Details

    • inventoryColumns

      protected final int inventoryColumns
    • xMouse

      protected float xMouse
    • yMouse

      protected float yMouse
    • mount

      protected final LivingEntity mount
  • Constructor Details

    • AbstractMountInventoryScreen

      public AbstractMountInventoryScreen(T menu, Inventory inventory, Component title, int inventoryColumns, LivingEntity mount)
  • Method Details

    • renderBg

      protected void renderBg(GuiGraphics graphics, float a, int xm, int ym)
      Specified by:
      renderBg in class AbstractContainerScreen<T extends AbstractMountInventoryMenu>
    • drawSlot

      protected void drawSlot(GuiGraphics graphics, int x, int y)
    • render

      public void render(GuiGraphics graphics, int mouseX, int mouseY, float a)
      Description copied from interface: Renderable
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class AbstractContainerScreen<T extends AbstractMountInventoryMenu>
      Parameters:
      graphics - the GuiGraphics object used for rendering.
      mouseX - the x-coordinate of the mouse cursor.
      mouseY - the y-coordinate of the mouse cursor.
      a - the partial tick time.
    • getBackgroundTextureLocation

      protected abstract Identifier getBackgroundTextureLocation()
    • getSlotSpriteLocation

      protected abstract Identifier getSlotSpriteLocation()
    • getChestSlotsSpriteLocation

      protected abstract @Nullable Identifier getChestSlotsSpriteLocation()
    • shouldRenderSaddleSlot

      protected abstract boolean shouldRenderSaddleSlot()
    • shouldRenderArmorSlot

      protected abstract boolean shouldRenderArmorSlot()