Class HorseInventoryScreen

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

public class HorseInventoryScreen extends AbstractContainerScreen<HorseInventoryMenu>
  • Field Details

    • CHEST_SLOTS_SPRITE

      private static final ResourceLocation CHEST_SLOTS_SPRITE
    • SADDLE_SLOT_SPRITE

      private static final ResourceLocation SADDLE_SLOT_SPRITE
    • LLAMA_ARMOR_SLOT_SPRITE

      private static final ResourceLocation LLAMA_ARMOR_SLOT_SPRITE
    • ARMOR_SLOT_SPRITE

      private static final ResourceLocation ARMOR_SLOT_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 pGuiGraphics, float pPartialTick, int pMouseX, int pMouseY)
      Specified by:
      renderBg in class AbstractContainerScreen<HorseInventoryMenu>
    • render

      public void render(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class AbstractContainerScreen<HorseInventoryMenu>
      Parameters:
      pGuiGraphics - the GuiGraphics object used for rendering.
      pMouseX - the x-coordinate of the mouse cursor.
      pMouseY - the y-coordinate of the mouse cursor.
      pPartialTick - the partial tick time.