Class CustomTab.ITabEntry.Item

java.lang.Object
com.petrolpark.client.creativemodetab.CustomTab.ITabEntry.Item
All Implemented Interfaces:
CustomTab.ITabEntry
Direct Known Subclasses:
CustomTab.ITabEntry.ConditionalItem, CustomTab.ITabEntry.DuplicateItem
Enclosing interface:
CustomTab.ITabEntry

public static class CustomTab.ITabEntry.Item extends Object implements CustomTab.ITabEntry
  • Field Details

    • stack

      public final Supplier<net.minecraft.world.item.ItemStack> stack
  • Constructor Details

    • Item

      public Item(Supplier<net.minecraft.world.item.ItemStack> stack)
  • Method Details

    • 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
      specialRenderLocation - If this entry has special rendering, pass this the slot to render it at
    • getItemsToAddToSearch

      public Collection<net.minecraft.world.item.ItemStack> getItemsToAddToSearch(net.minecraft.world.item.CreativeModeTab.ItemDisplayParameters parameters)
      Specified by:
      getItemsToAddToSearch in interface CustomTab.ITabEntry