Package net.minecraft.world.item
Class CreativeModeTab
java.lang.Object
net.minecraft.world.item.CreativeModeTab
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
(package private) static class
static final record
static interface
static enum
static enum
static enum
-
Field Summary
Modifier and TypeFieldDescription(package private) boolean
private ResourceLocation
(package private) String
(package private) boolean
private final int
private Collection
<ItemStack> private final CreativeModeTab.DisplayItemsGenerator
private final Component
private final boolean
private ItemStack
private final int
private final CreativeModeTab.Row
private final int
(package private) boolean
private final int
final List
<ResourceLocation> final List
<ResourceLocation> private final CreativeModeTab.Type
-
Constructor Summary
ModifierConstructorDescriptionprotected
CreativeModeTab
(CreativeModeTab.Builder builder) (package private)
CreativeModeTab
(CreativeModeTab.Row p_260217_, int p_259557_, CreativeModeTab.Type p_260176_, Component p_260100_, Supplier<ItemStack> p_259543_, CreativeModeTab.DisplayItemsGenerator p_259085_, CreativeModeTab.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static CreativeModeTab.Builder
builder()
static CreativeModeTab.Builder
builder
(CreativeModeTab.Row p_259342_, int p_260312_) Deprecated.boolean
int
column()
boolean
Deprecated.Forge: UsegetBackgroundLocation()
instead.int
int
int
getType()
boolean
boolean
boolean
void
row()
void
setSearchTreeBuilder
(Consumer<List<ItemStack>> p_259669_) boolean
boolean
-
Field Details
-
displayName
-
backgroundSuffix
String backgroundSuffix -
canScroll
boolean canScroll -
showTitle
boolean showTitle -
alignedRight
boolean alignedRight -
row
-
column
private final int column -
type
-
iconItemStack
-
displayItems
-
displayItemsSearchTab
-
searchTreeBuilder
-
iconGenerator
-
displayItemsGenerator
-
backgroundLocation
-
hasSearchBar
private final boolean hasSearchBar -
searchBarWidth
private final int searchBarWidth -
labelColor
private final int labelColor -
slotColor
private final int slotColor -
tabsBefore
-
tabsAfter
-
-
Constructor Details
-
CreativeModeTab
CreativeModeTab(CreativeModeTab.Row p_260217_, int p_259557_, CreativeModeTab.Type p_260176_, Component p_260100_, Supplier<ItemStack> p_259543_, CreativeModeTab.DisplayItemsGenerator p_259085_, CreativeModeTab.Builder builder) -
CreativeModeTab
-
-
Method Details
-
builder
-
builder
Deprecated.Forge: usebuilder()
-
getDisplayName
-
getIconItem
-
getBackgroundSuffix
Deprecated.Forge: UsegetBackgroundLocation()
instead. -
showTitle
public boolean showTitle() -
canScroll
public boolean canScroll() -
column
public int column() -
row
-
hasAnyItems
public boolean hasAnyItems() -
shouldDisplay
public boolean shouldDisplay() -
isAlignedRight
public boolean isAlignedRight() -
getType
-
buildContents
-
getDisplayItems
-
getSearchTabDisplayItems
-
contains
-
setSearchTreeBuilder
-
rebuildSearchTree
public void rebuildSearchTree() -
getBackgroundLocation
-
hasSearchBar
public boolean hasSearchBar() -
getSearchBarWidth
public int getSearchBarWidth() -
getLabelColor
public int getLabelColor() -
getSlotColor
public int getSlotColor()
-
builder()