Class HopperScreen

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

public class HopperScreen extends AbstractContainerScreen<HopperMenu>
  • Field Details

    • HOPPER_LOCATION

      private static final ResourceLocation HOPPER_LOCATION
      The ResourceLocation containing the gui texture for the hopper
  • Constructor Details

  • Method Details

    • render

      public void render(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class AbstractContainerScreen<HopperMenu>
      Parameters:
      guiGraphics - the GuiGraphics object used for rendering.
      mouseX - the x-coordinate of the mouse cursor.
      mouseY - the y-coordinate of the mouse cursor.
      partialTick - the partial tick time.
    • renderBg

      protected void renderBg(GuiGraphics guiGraphics, float partialTick, int mouseX, int mouseY)
      Specified by:
      renderBg in class AbstractContainerScreen<HopperMenu>