类 CreativeModeTab.Builder
java.lang.Object
net.minecraft.world.item.CreativeModeTab.Builder
- 封闭类:
CreativeModeTab
-
字段概要
字段修饰符和类型字段说明private boolean
private ResourceLocation
private boolean
private final int
private Component
private static final CreativeModeTab.DisplayItemsGenerator
private boolean
private int
private final CreativeModeTab.Row
private int
private boolean
private int
private final List
<ResourceLocation> private final List
<ResourceLocation> private CreativeModeTab.Type
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明backgroundTexture
(ResourceLocation p_344105_) build()
protected CreativeModeTab.Builder
type
(CreativeModeTab.Type p_259283_) withLabelColor
(int labelColor) Sets the color of the tab label.Gives this tab a search bar.withSearchBar
(int searchBarWidth) Gives this tab a search bar, with a specific width.withSlotColor
(int slotColor) Sets the color of tab's slots.withTabFactory
(Function<CreativeModeTab.Builder, CreativeModeTab> tabFactory) final CreativeModeTab.Builder
withTabsAfter
(ResourceKey<CreativeModeTab>... tabs) Define tabs that should come after this tab.withTabsAfter
(ResourceLocation... tabs) Define tabs that should come after this tab.final CreativeModeTab.Builder
withTabsBefore
(ResourceKey<CreativeModeTab>... tabs) Define tabs that should come before this tab.withTabsBefore
(ResourceLocation... tabs) Define tabs that should come before this tab.
-
字段详细资料
-
EMPTY_GENERATOR
-
row
-
column
private final int column -
displayName
-
iconGenerator
-
displayItemsGenerator
-
canScroll
private boolean canScroll -
showTitle
private boolean showTitle -
alignedRight
private boolean alignedRight -
type
-
backgroundTexture
-
hasSearchBar
private boolean hasSearchBar -
searchBarWidth
private int searchBarWidth -
labelColor
private int labelColor -
slotColor
private int slotColor -
tabFactory
-
tabsBefore
-
tabsAfter
-
-
构造器详细资料
-
Builder
-
-
方法详细资料
-
title
-
icon
-
displayItems
-
alignedRight
-
hideTitle
-
noScrollBar
-
type
-
backgroundTexture
-
withSearchBar
Gives this tab a search bar.Note that, if using a custom
引用无效
background image
-
withSearchBar
Gives this tab a search bar, with a specific width.- 参数:
searchBarWidth
- the width of the search bar
-
withLabelColor
Sets the color of the tab label. -
withSlotColor
Sets the color of tab's slots. -
withTabFactory
public CreativeModeTab.Builder withTabFactory(Function<CreativeModeTab.Builder, CreativeModeTab> tabFactory) -
withTabsBefore
Define tabs that should come before this tab. This tab will be placed after thetabs
. -
withTabsAfter
Define tabs that should come after this tab. This tab will be placed before thetabs
. -
withTabsBefore
@SafeVarargs public final CreativeModeTab.Builder withTabsBefore(ResourceKey<CreativeModeTab>... tabs) Define tabs that should come before this tab. This tab will be placed after thetabs
. -
withTabsAfter
@SafeVarargs public final CreativeModeTab.Builder withTabsAfter(ResourceKey<CreativeModeTab>... tabs) Define tabs that should come after this tab. This tab will be placed before thetabs
. -
build
-