类 CreativeModeTab
java.lang.Object
net.minecraft.world.item.CreativeModeTab
-
嵌套类概要
嵌套类修饰符和类型类说明static class
static interface
(专用程序包) static class
static final record
static interface
static enum
static enum
static enum
-
字段概要
字段修饰符和类型字段说明(专用程序包) boolean
(专用程序包) ResourceLocation
(专用程序包) boolean
private final int
(专用程序包) 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
(专用程序包) boolean
private final int
final List
<ResourceLocation> final List
<ResourceLocation> private final ResourceLocation
private final CreativeModeTab.Type
-
构造器概要
构造器限定符构造器说明protected
CreativeModeTab
(CreativeModeTab.Builder builder) (专用程序包)
CreativeModeTab
(CreativeModeTab.Row p_260217_, int p_259557_, CreativeModeTab.Type p_260176_, Component p_260100_, Supplier<ItemStack> p_259543_, CreativeModeTab.DisplayItemsGenerator p_259085_, ResourceLocation scrollerSpriteLocation, boolean hasSearchBar, int searchBarWidth, ResourceLocation tabsImage, int labelColor, int slotColor, List<ResourceLocation> tabsBefore, List<ResourceLocation> tabsAfter) -
方法概要
修饰符和类型方法说明void
static CreativeModeTab.Builder
builder()
static CreativeModeTab.Builder
builder
(CreativeModeTab.Row p_259342_, int p_260312_) 已过时。boolean
int
column()
boolean
static ResourceLocation
createTextureLocation
(String p_350882_) int
int
int
getType()
boolean
boolean
boolean
row()
boolean
boolean
-
字段详细资料
-
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
-
-
构造器详细资料
-
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 scrollerSpriteLocation, boolean hasSearchBar, int searchBarWidth, ResourceLocation tabsImage, int labelColor, int slotColor, List<ResourceLocation> tabsBefore, List<ResourceLocation> tabsAfter) -
CreativeModeTab
-
-
方法详细资料
-
builder
-
createTextureLocation
-
builder
@Deprecated public static CreativeModeTab.Builder builder(CreativeModeTab.Row p_259342_, int p_260312_) 已过时。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()