Package net.minecraft.world.item
Class CreativeModeTab.Builder
java.lang.Object
net.minecraft.world.item.CreativeModeTab.Builder
- Enclosing class:
- CreativeModeTab
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate ResourceLocationprivate Stringprivate booleanprivate final intprivate static final ResourceLocationprivate Componentprivate static final CreativeModeTab.DisplayItemsGeneratorprivate booleanprivate intprivate final CreativeModeTab.Rowprivate intprivate booleanprivate intprivate ResourceLocationprivate CreativeModeTab.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbackgroundSuffix(String p_259981_) build()protected CreativeModeTab.Buildertype(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
-