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 LivingEntity mount
  • Constructor Details

    • AbstractMountInventoryScreen

      public AbstractMountInventoryScreen(T pMenu, Inventory pPlayerInventory, Component pTitle, int pInventoryColumns, LivingEntity pMount)
  • Method Details

    • renderBg

      protected void renderBg(GuiGraphics p_470698_, float p_470831_, int p_470675_, int p_470799_)
      Specified by:
      renderBg in class AbstractContainerScreen<T extends AbstractMountInventoryMenu>
    • drawSlot

      protected void drawSlot(GuiGraphics pGuiGraphics, int pX, int pY)
    • render

      public void render(GuiGraphics p_470541_, int p_470731_, int p_470784_, float p_470749_)
      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:
      p_470541_ - the GuiGraphics object used for rendering.
      p_470731_ - the x-coordinate of the mouse cursor.
      p_470784_ - the y-coordinate of the mouse cursor.
      p_470749_ - 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()