Class CustomTab.ITabEntry.Subheading

java.lang.Object
com.petrolpark.client.creativemodetab.CustomTab.ITabEntry.Subheading
All Implemented Interfaces:
CustomTab.ITabEntry
Enclosing interface:
CustomTab.ITabEntry

public static class CustomTab.ITabEntry.Subheading extends Object implements CustomTab.ITabEntry
Add a caption that takes up a whole row in this CustomTab.
  • Field Details

    • subheading

      public final net.minecraft.network.chat.Component subheading
  • Constructor Details

    • Subheading

      public Subheading(net.minecraft.network.chat.Component subheading)
  • Method Details

    • newLine

      public boolean newLine()
      Description copied from interface: CustomTab.ITabEntry
      Whether this entry should begin on a new line
      Specified by:
      newLine in interface CustomTab.ITabEntry
      Returns:
    • addItems

      public void addItems(List<net.minecraft.world.item.ItemStack> stacks, net.minecraft.world.item.CreativeModeTab.ItemDisplayParameters parameters, IntConsumer specialRenderLocation)
      Specified by:
      addItems in interface CustomTab.ITabEntry
      Parameters:
      stacks - The ordered list of stacks to which to add this entry
      parameters -
      specialRenderLocation - If this entry has special rendering, pass this the slot to render it at
    • hasSpecialRendering

      public boolean hasSpecialRendering()
      Specified by:
      hasSpecialRendering in interface CustomTab.ITabEntry
    • render

      public void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      render in interface CustomTab.ITabEntry