Interface CustomTab.ITabEntry

All Known Implementing Classes:
CustomTab.ITabEntry.ConditionalItem, CustomTab.ITabEntry.DuplicateItem, CustomTab.ITabEntry.Item, CustomTab.ITabEntry.Subheading
Enclosing class:
CustomTab

public static interface CustomTab.ITabEntry
  • Field Details

  • Method Details

    • getSize

      default int getSize()
      How many contiguous slots this entry occupies
      Returns:
    • 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)