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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CustomTab.ITabEntrystatic final CustomTab.ITabEntry -
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddItems(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 intgetSize()How many contiguous slots this entry occupiesdefault booleandefault booleannewLine()Whether this entry should begin on a new linedefault voidrender(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTick)
-
Field Details
-
EMPTY
-
LINE_BREAK
-
-
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 entryparameters-specialRenderLocation- If this entryhas 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)
-