Class CustomTab.ITabEntry.ConditionalItem
java.lang.Object
com.petrolpark.client.creativemodetab.CustomTab.ITabEntry.Item
com.petrolpark.client.creativemodetab.CustomTab.ITabEntry.ConditionalItem
- All Implemented Interfaces:
CustomTab.ITabEntry
- Enclosing interface:
- CustomTab.ITabEntry
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.petrolpark.client.creativemodetab.CustomTab.ITabEntry
CustomTab.ITabEntry.ConditionalItem, CustomTab.ITabEntry.DuplicateItem, CustomTab.ITabEntry.Item, CustomTab.ITabEntry.Subheading -
Field Summary
FieldsFields inherited from class com.petrolpark.client.creativemodetab.CustomTab.ITabEntry.Item
stackFields inherited from interface com.petrolpark.client.creativemodetab.CustomTab.ITabEntry
EMPTY, LINE_BREAK -
Constructor Summary
ConstructorsConstructorDescriptionConditionalItem(Supplier<net.minecraft.world.item.ItemStack> stack, Supplier<Boolean> condition) -
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
getSize, hasSpecialRendering, newLine, render
-
Field Details
-
condition
-
-
Constructor Details
-
ConditionalItem
-
-
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- Overrides:
addItemsin classCustomTab.ITabEntry.Item- Parameters:
stacks- The ordered list of stacks to which to add this entryspecialRenderLocation- 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- Overrides:
getItemsToAddToSearchin classCustomTab.ITabEntry.Item
-