Class SlotsScreenAddon<T extends IComponentHarness>

java.lang.Object
com.hrznstudio.titanium.client.screen.addon.BasicScreenAddon
com.hrznstudio.titanium.client.screen.addon.SlotsScreenAddon<T>
All Implemented Interfaces:
IScreenAddon, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.TabOrderedElement

public class SlotsScreenAddon<T extends IComponentHarness> extends BasicScreenAddon
  • Constructor Details

  • Method Details

    • getXSize

      public int getXSize()
      Specified by:
      getXSize in class BasicScreenAddon
    • getYSize

      public int getYSize()
      Specified by:
      getYSize in class BasicScreenAddon
    • drawAsset

      public static void drawAsset(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.screens.Screen screen, IAssetProvider provider, int handlerPosX, int handlerPosY, int guiX, int guiY, int slots, Function<Integer,org.apache.commons.lang3.tuple.Pair<Integer,Integer>> positionFunction, Function<Integer,net.minecraft.world.item.ItemStack> slotToStackRenderMap, boolean drawColor, Function<Integer,Color> slotToColorRenderMap, Predicate<Integer> slotEnabled)
    • drawAsset

      public static void drawAsset(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.screens.Screen screen, IAssetProvider provider, int handlerPosX, int handlerPosY, int guiX, int guiY, int slots, Function<Integer,org.apache.commons.lang3.tuple.Pair<Integer,Integer>> positionFunction, Function<Integer,net.minecraft.world.item.ItemStack> slotToStackRenderMap, boolean drawColor, Function<Integer,Color> slotToColorRenderMap, Predicate<Integer> slotEnabled, int overlayDepth)
    • drawBackgroundLayer

      public void drawBackgroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.screens.Screen screen, IAssetProvider provider, int guiX, int guiY, int mouseX, int mouseY, float partialTicks)
      Description copied from interface: IScreenAddon
      Draws the component in the background layer
      screen - The current open screen
      provider - The current asset provider used in the GUI
      guiX - The gui X in the top left corner
      guiY - The gui Y in the top left corner
      mouseX - The current mouse X
      mouseY - The current mouse Y
      partialTicks - Partial ticks
    • drawForegroundLayer

      public void drawForegroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.screens.Screen screen, IAssetProvider provider, int guiX, int guiY, int mouseX, int mouseY, float partialTicks)
      Description copied from interface: IScreenAddon
      Draws the component in the foreground layer
      screen - The current open screen
      provider - The current asset provider used in the GUI
      guiX - The gui X in the top left corner
      guiY - The gui Y in the top left corner
      mouseX - The current mouse X
      mouseY - The current mouse Y
      partialTicks - Partial Ticks