Interface CustomTab.ITabEntry

All Known Implementing Classes:
CustomTab.ITabEntry.SingleItem, CustomTab.ITabEntry.Subheading, WoodHelper.WoodenItemTabEntry, WoodSetEntry
Enclosing class:
CustomTab

public static interface CustomTab.ITabEntry
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    A simple ItemStack, like in a normal CreativeModeTab.
    static class 
    Add a caption that takes up a whole row in this CustomTab.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final CustomTab.ITabEntry
     
    static final CustomTab.ITabEntry
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    addItems(List<net.minecraft.world.item.ItemStack> stacks, net.minecraft.world.item.CreativeModeTab.ItemDisplayParameters parameters, IntConsumer specialRenderLocation)
     
    default Collection<net.minecraft.world.item.ItemStack>
    getItemsToAddToSearch(net.minecraft.world.item.CreativeModeTab.ItemDisplayParameters parameters)
     
    default boolean
     
    default boolean
    Whether this entry should begin on a new line
    default void
    render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTick)
     
  • Field Details

  • Method Details

    • newLine

      default boolean newLine()
      Whether this entry should begin on a new line
      Returns:
    • addItems

      default void addItems(List<net.minecraft.world.item.ItemStack> stacks, net.minecraft.world.item.CreativeModeTab.ItemDisplayParameters parameters, IntConsumer specialRenderLocation)
      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

      default boolean hasSpecialRendering()
    • render

      default void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTick)
    • getItemsToAddToSearch

      default Collection<net.minecraft.world.item.ItemStack> getItemsToAddToSearch(net.minecraft.world.item.CreativeModeTab.ItemDisplayParameters parameters)