Class CustomTab.ITabEntry.SingleItem
java.lang.Object
com.petrolpark.client.creativemodetab.CustomTab.ITabEntry.SingleItem
- All Implemented Interfaces:
CustomTab.ITabEntry
- Enclosing interface:
CustomTab.ITabEntry
A simple ItemStack, like in a normal
CreativeModeTab.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.petrolpark.client.creativemodetab.CustomTab.ITabEntry
CustomTab.ITabEntry.SingleItem, CustomTab.ITabEntry.Subheading -
Field Summary
FieldsFields inherited from interface com.petrolpark.client.creativemodetab.CustomTab.ITabEntry
EMPTY, LINE_BREAK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItems(List<net.minecraft.world.item.ItemStack> stacks, net.minecraft.world.item.CreativeModeTab.ItemDisplayParameters parameters, IntConsumer specialRenderLocation) Collection<net.minecraft.world.item.ItemStack> getItemsToAddToSearch(net.minecraft.world.item.CreativeModeTab.ItemDisplayParameters parameters) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.petrolpark.client.creativemodetab.CustomTab.ITabEntry
hasSpecialRendering, newLine, render
-
Field Details
-
stack
-
-
Constructor Details
-
SingleItem
-
-
Method Details
-
addItems
public void addItems(List<net.minecraft.world.item.ItemStack> stacks, net.minecraft.world.item.CreativeModeTab.ItemDisplayParameters parameters, IntConsumer specialRenderLocation) - Specified by:
addItemsin interfaceCustomTab.ITabEntry- 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
-
getItemsToAddToSearch
public Collection<net.minecraft.world.item.ItemStack> getItemsToAddToSearch(net.minecraft.world.item.CreativeModeTab.ItemDisplayParameters parameters) - Specified by:
getItemsToAddToSearchin interfaceCustomTab.ITabEntry
-