Package net.minecraft.world.item
Class CreativeModeTab.Builder
java.lang.Object
net.minecraft.world.item.CreativeModeTab.Builder
- Enclosing class:
- CreativeModeTab
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private ResourceLocation
private String
private boolean
private final int
private static final ResourceLocation
private Component
private static final CreativeModeTab.DisplayItemsGenerator
private boolean
private int
private final CreativeModeTab.Row
private int
private boolean
private int
private ResourceLocation
private CreativeModeTab.Type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbackgroundSuffix
(String p_259981_) build()
protected CreativeModeTab.Builder
type
(CreativeModeTab.Type p_259283_) withBackgroundLocation
(ResourceLocation background) withLabelColor
(int labelColor) withSearchBar
(int searchBarWidth) withSlotColor
(int slotColor) withTabFactory
(Function<CreativeModeTab.Builder, CreativeModeTab> tabFactory) withTabsImage
(ResourceLocation tabsImage)
-
Field Details
-
EMPTY_GENERATOR
-
CREATIVE_INVENTORY_TABS_IMAGE
-
row
-
column
private final int column -
displayName
-
iconGenerator
-
displayItemsGenerator
-
canScroll
private boolean canScroll -
showTitle
private boolean showTitle -
alignedRight
private boolean alignedRight -
type
-
backgroundSuffix
-
backgroundLocation
-
hasSearchBar
private boolean hasSearchBar -
searchBarWidth
private int searchBarWidth -
tabsImage
-
labelColor
private int labelColor -
slotColor
private int slotColor -
tabFactory
-
-
Constructor Details
-
Builder
-
-
Method Details
-
title
-
icon
-
displayItems
-
alignedRight
-
hideTitle
-
noScrollBar
-
type
-
backgroundSuffix
-
withBackgroundLocation
-
withSearchBar
-
withSearchBar
-
withTabsImage
-
withLabelColor
-
withSlotColor
-
withTabFactory
public CreativeModeTab.Builder withTabFactory(Function<CreativeModeTab.Builder, CreativeModeTab> tabFactory) -
build
-