Class HorseInventoryScreen

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

public class HorseInventoryScreen extends AbstractContainerScreen<HorseInventoryMenu>
  • Field Details

    • SLOT_SPRITE

      private static final ResourceLocation SLOT_SPRITE
    • CHEST_SLOTS_SPRITE

      private static final ResourceLocation CHEST_SLOTS_SPRITE
    • HORSE_INVENTORY_LOCATION

      private static final ResourceLocation HORSE_INVENTORY_LOCATION
    • horse

      private final AbstractHorse horse
      The EntityHorse whose inventory is currently being accessed.
    • inventoryColumns

      private final int inventoryColumns
    • xMouse

      private float xMouse
      The mouse x-position recorded during the last rendered frame.
    • yMouse

      private float yMouse
      The mouse y-position recorded during the last rendered frame.
  • Constructor Details

  • Method Details

    • renderBg

      protected void renderBg(GuiGraphics p_282553_, float p_282998_, int p_282929_, int p_283133_)
      Specified by:
      renderBg in class AbstractContainerScreen<HorseInventoryMenu>
    • drawSlot

      private void drawSlot(GuiGraphics guiGraphics, int x, int y)
    • render

      public void render(GuiGraphics p_281697_, int p_282103_, int p_283529_, float p_283079_)
      Description copied from interface: Renderable
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class AbstractContainerScreen<HorseInventoryMenu>
      Parameters:
      p_281697_ - the GuiGraphics object used for rendering.
      p_282103_ - the x-coordinate of the mouse cursor.
      p_283529_ - the y-coordinate of the mouse cursor.
      p_283079_ - the partial tick time.