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 classstatic interface(package private) static classstatic final recordstatic interfacestatic enumstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescription(package private) booleanprivate ResourceLocation(package private) String(package private) booleanprivate final intprivate Collection<ItemStack> private final CreativeModeTab.DisplayItemsGeneratorprivate final Componentprivate final booleanprivate ItemStackprivate final intprivate final CreativeModeTab.Rowprivate static final ResourceLocationprivate static final ResourceLocationprivate final ResourceLocationprivate final int(package private) booleanprivate final intfinal List<ResourceLocation> final List<ResourceLocation> private final ResourceLocationprivate final CreativeModeTab.Type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreativeModeTab(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_, ResourceLocation backgroundLocation, ResourceLocation scrollerSpriteLocation, boolean hasSearchBar, int searchBarWidth, ResourceLocation tabsImage, int labelColor, int slotColor, List<ResourceLocation> tabsBefore, List<ResourceLocation> tabsAfter) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic CreativeModeTab.Builderbuilder()static CreativeModeTab.Builderbuilder(CreativeModeTab.Row p_259342_, int p_260312_) Deprecated.booleanintcolumn()booleanDeprecated.intintintgetType()booleanbooleanbooleanvoidrow()voidsetSearchTreeBuilder(Consumer<List<ItemStack>> p_259669_) booleanboolean
-
Field Details
-
SCROLLER_SPRITE
-
SCROLLER_DISABLED_SPRITE
-
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
-
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 p_260217_, int p_259557_, CreativeModeTab.Type p_260176_, Component p_260100_, Supplier<ItemStack> p_259543_, CreativeModeTab.DisplayItemsGenerator p_259085_, ResourceLocation backgroundLocation, ResourceLocation scrollerSpriteLocation, boolean hasSearchBar, int searchBarWidth, ResourceLocation tabsImage, int labelColor, int slotColor, List<ResourceLocation> tabsBefore, List<ResourceLocation> tabsAfter) -
CreativeModeTab
-
-
Method Details
-
builder
-
builder
@Deprecated public static CreativeModeTab.Builder builder(CreativeModeTab.Row p_259342_, int p_260312_) 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() -
getTabsImage
-
getLabelColor
public int getLabelColor() -
getSlotColor
public int getSlotColor() -
getScrollerSprite
-
builder()