Package net.minecraft.world.item
Class CreativeModeTab
java.lang.Object
net.minecraft.world.item.CreativeModeTab
- Direct Known Subclasses:
CreativeModeTabTest.CreativeModeColorTab
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static interface
(package private) static class
static final record
static interface
static enum
static enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean
(package private) ResourceLocation
(package private) boolean
private final int
(package private) static final ResourceLocation
private Collection
<ItemStack> private final CreativeModeTab.DisplayItemsGenerator
private final Component
private final boolean
private ItemStack
private final int
private final CreativeModeTab.Row
private static final ResourceLocation
private static final ResourceLocation
private final ResourceLocation
private final int
(package private) boolean
private final int
final List
<ResourceLocation> final List
<ResourceLocation> private final ResourceLocation
private final CreativeModeTab.Type
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CreativeModeTab
(CreativeModeTab.Builder builder) (package private)
CreativeModeTab
(CreativeModeTab.Row pRow, int pColumn, CreativeModeTab.Type pType, Component pDisplayName, Supplier<ItemStack> pIconGenerator, CreativeModeTab.DisplayItemsGenerator pDisplayItemGenerator, ResourceLocation scrollerSpriteLocation, boolean hasSearchBar, int searchBarWidth, ResourceLocation tabsImage, int labelColor, int slotColor, List<ResourceLocation> tabsBefore, List<ResourceLocation> tabsAfter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildContents
(CreativeModeTab.ItemDisplayParameters pParameters) static CreativeModeTab.Builder
builder()
static CreativeModeTab.Builder
builder
(CreativeModeTab.Row pRow, int pColumn) Deprecated.boolean
int
column()
boolean
static ResourceLocation
createTextureLocation
(String pName) int
int
int
getType()
boolean
boolean
boolean
row()
boolean
boolean
-
Field Details
-
SCROLLER_SPRITE
-
SCROLLER_DISABLED_SPRITE
-
DEFAULT_BACKGROUND
-
displayName
-
backgroundTexture
ResourceLocation backgroundTexture -
canScroll
boolean canScroll -
showTitle
boolean showTitle -
alignedRight
boolean alignedRight -
row
-
column
private final int column -
type
-
iconItemStack
-
displayItems
-
displayItemsSearchTab
-
iconGenerator
-
displayItemsGenerator
-
scrollerSpriteLocation
-
hasSearchBar
private final boolean hasSearchBar -
searchBarWidth
private final int searchBarWidth -
tabsImage
-
labelColor
private final int labelColor -
slotColor
private final int slotColor -
tabsBefore
-
tabsAfter
-
-
Constructor Details
-
CreativeModeTab
CreativeModeTab(CreativeModeTab.Row pRow, int pColumn, CreativeModeTab.Type pType, Component pDisplayName, Supplier<ItemStack> pIconGenerator, CreativeModeTab.DisplayItemsGenerator pDisplayItemGenerator, ResourceLocation scrollerSpriteLocation, boolean hasSearchBar, int searchBarWidth, ResourceLocation tabsImage, int labelColor, int slotColor, List<ResourceLocation> tabsBefore, List<ResourceLocation> tabsAfter) -
CreativeModeTab
-
-
Method Details
-
builder
-
createTextureLocation
-
builder
Deprecated.Forge: usebuilder()
-
getDisplayName
-
getIconItem
-
getBackgroundTexture
-
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
-
hasSearchBar
public boolean hasSearchBar() -
getSearchBarWidth
public int getSearchBarWidth() -
getTabsImage
-
getLabelColor
public int getLabelColor() -
getSlotColor
public int getSlotColor() -
getScrollerSprite
-
builder()