Class CreativeModeTab
java.lang.Object
net.minecraft.world.item.CreativeModeTab
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfaceprivate static classstatic final recordstatic interfacestatic enumstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Identifierprivate booleanprivate final intprivate static final Identifierprivate Collection<ItemStack> private final CreativeModeTab.DisplayItemsGeneratorprivate final Componentprivate final booleanprivate @Nullable ItemStackprivate final intprivate final CreativeModeTab.Rowprivate static final Identifierprivate static final Identifierprivate final @Nullable Identifierprivate final intprivate booleanprivate final intfinal List<Identifier> final List<Identifier> private final Identifierprivate final CreativeModeTab.Type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreativeModeTab(CreativeModeTab.Builder builder) privateCreativeModeTab(CreativeModeTab.Row row, int column, CreativeModeTab.Type type, Component displayName, Supplier<ItemStack> iconGenerator, CreativeModeTab.DisplayItemsGenerator displayItemsGenerator, Identifier scrollerSpriteLocation, boolean hasSearchBar, int searchBarWidth, Identifier tabsImage, int labelColor, int slotColor, List<Identifier> tabsBefore, List<Identifier> tabsAfter) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildContents(CreativeModeTab.ItemDisplayParameters parameters) static CreativeModeTab.Builderbuilder()static CreativeModeTab.Builderbuilder(CreativeModeTab.Row row, int column) Deprecated.booleanintcolumn()booleanstatic IdentifiercreateTextureLocation(String name) intintintgetType()booleanbooleanbooleanrow()booleanboolean
-
Field Details
-
SCROLLER_SPRITE
-
SCROLLER_DISABLED_SPRITE
-
DEFAULT_BACKGROUND
-
displayName
-
backgroundTexture
-
canScroll
private boolean canScroll -
showTitle
private boolean showTitle -
alignedRight
private 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
private CreativeModeTab(CreativeModeTab.Row row, int column, CreativeModeTab.Type type, Component displayName, Supplier<ItemStack> iconGenerator, CreativeModeTab.DisplayItemsGenerator displayItemsGenerator, Identifier scrollerSpriteLocation, boolean hasSearchBar, int searchBarWidth, Identifier tabsImage, int labelColor, int slotColor, List<Identifier> tabsBefore, List<Identifier> 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()