Package net.minecraft.item
Class ItemGroup
java.lang.Object
net.minecraft.item.ItemGroup
A group of items that the items belong to. This is used by the creative inventory.
- Mappings:
Namespace Name named net/minecraft/item/ItemGroup
intermediary net/minecraft/class_1761
official cwd
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final record
static interface
private static class
static interface
static enum
protected static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final Text
private Collection
<ItemStack> private final ItemGroup.EntryCollector
(package private) static final Identifier
(package private) boolean
private final ItemGroup.Row
(package private) boolean
(package private) boolean
(package private) Identifier
private final ItemGroup.Type
-
Constructor Summary
ConstructorDescriptionItemGroup
(ItemGroup.Row row, int column, ItemGroup.Type type, Text displayName, Supplier<ItemStack> iconSupplier, ItemGroup.EntryCollector entryCollector) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static ItemGroup.Builder
create
(ItemGroup.Row location, int column) int
getIcon()
getRow()
static Identifier
getTabTextureId
(String name) getType()
boolean
boolean
boolean
boolean
boolean
Checks if this item group should render its name.void
updateEntries
(ItemGroup.DisplayContext displayContext)
-
Field Details
-
ITEMS
- Mappings:
Namespace Name Mixin selector named ITEMS
Lnet/minecraft/item/ItemGroup;ITEMS:Lnet/minecraft/util/Identifier;
intermediary field_52021
Lnet/minecraft/class_1761;field_52021:Lnet/minecraft/class_2960;
official a
Lcwd;a:Lalz;
-
displayName
- Mappings:
Namespace Name Mixin selector named displayName
Lnet/minecraft/item/ItemGroup;displayName:Lnet/minecraft/text/Text;
intermediary field_26391
Lnet/minecraft/class_1761;field_26391:Lnet/minecraft/class_2561;
official b
Lcwd;b:Lxv;
-
texture
Identifier texture- Mappings:
Namespace Name Mixin selector named texture
Lnet/minecraft/item/ItemGroup;texture:Lnet/minecraft/util/Identifier;
intermediary field_7919
Lnet/minecraft/class_1761;field_7919:Lnet/minecraft/class_2960;
official c
Lcwd;c:Lalz;
-
scrollbar
boolean scrollbar- Mappings:
Namespace Name Mixin selector named scrollbar
Lnet/minecraft/item/ItemGroup;scrollbar:Z
intermediary field_7920
Lnet/minecraft/class_1761;field_7920:Z
official d
Lcwd;d:Z
-
renderName
boolean renderName- Mappings:
Namespace Name Mixin selector named renderName
Lnet/minecraft/item/ItemGroup;renderName:Z
intermediary field_7917
Lnet/minecraft/class_1761;field_7917:Z
official e
Lcwd;e:Z
-
special
boolean special- Mappings:
Namespace Name Mixin selector named special
Lnet/minecraft/item/ItemGroup;special:Z
intermediary field_41031
Lnet/minecraft/class_1761;field_41031:Z
official f
Lcwd;f:Z
-
row
- Mappings:
Namespace Name Mixin selector named row
Lnet/minecraft/item/ItemGroup;row:Lnet/minecraft/item/ItemGroup$Row;
intermediary field_41032
Lnet/minecraft/class_1761;field_41032:Lnet/minecraft/class_1761$class_7915;
official g
Lcwd;g:Lcwd$f;
-
column
private final int column- Mappings:
Namespace Name Mixin selector named column
Lnet/minecraft/item/ItemGroup;column:I
intermediary field_41033
Lnet/minecraft/class_1761;field_41033:I
official h
Lcwd;h:I
-
type
- Mappings:
Namespace Name Mixin selector named type
Lnet/minecraft/item/ItemGroup;type:Lnet/minecraft/item/ItemGroup$Type;
intermediary field_41034
Lnet/minecraft/class_1761;field_41034:Lnet/minecraft/class_1761$class_7916;
official i
Lcwd;i:Lcwd$h;
-
icon
- Mappings:
Namespace Name Mixin selector named icon
Lnet/minecraft/item/ItemGroup;icon:Lnet/minecraft/item/ItemStack;
intermediary field_7934
Lnet/minecraft/class_1761;field_7934:Lnet/minecraft/class_1799;
official j
Lcwd;j:Lcxo;
-
displayStacks
- Mappings:
Namespace Name Mixin selector named displayStacks
Lnet/minecraft/item/ItemGroup;displayStacks:Ljava/util/Collection;
intermediary field_40859
Lnet/minecraft/class_1761;field_40859:Ljava/util/Collection;
official k
Lcwd;k:Ljava/util/Collection;
-
searchTabStacks
- Mappings:
Namespace Name Mixin selector named searchTabStacks
Lnet/minecraft/item/ItemGroup;searchTabStacks:Ljava/util/Set;
intermediary field_40860
Lnet/minecraft/class_1761;field_40860:Ljava/util/Set;
official l
Lcwd;l:Ljava/util/Set;
-
iconSupplier
- Mappings:
Namespace Name Mixin selector named iconSupplier
Lnet/minecraft/item/ItemGroup;iconSupplier:Ljava/util/function/Supplier;
intermediary field_41036
Lnet/minecraft/class_1761;field_41036:Ljava/util/function/Supplier;
official m
Lcwd;m:Ljava/util/function/Supplier;
-
entryCollector
- Mappings:
Namespace Name Mixin selector named entryCollector
Lnet/minecraft/item/ItemGroup;entryCollector:Lnet/minecraft/item/ItemGroup$EntryCollector;
intermediary field_41037
Lnet/minecraft/class_1761;field_41037:Lnet/minecraft/class_1761$class_7914;
official n
Lcwd;n:Lcwd$b;
-
-
Constructor Details
-
ItemGroup
ItemGroup(ItemGroup.Row row, int column, ItemGroup.Type type, Text displayName, Supplier<ItemStack> iconSupplier, ItemGroup.EntryCollector entryCollector) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/item/ItemGroup;<init>(Lnet/minecraft/item/ItemGroup$Row;ILnet/minecraft/item/ItemGroup$Type;Lnet/minecraft/text/Text;Ljava/util/function/Supplier;Lnet/minecraft/item/ItemGroup$EntryCollector;)V
intermediary <init>
Lnet/minecraft/class_1761;<init>(Lnet/minecraft/class_1761$class_7915;ILnet/minecraft/class_1761$class_7916;Lnet/minecraft/class_2561;Ljava/util/function/Supplier;Lnet/minecraft/class_1761$class_7914;)V
official <init>
Lcwd;<init>(Lcwd$f;ILcwd$h;Lxv;Ljava/util/function/Supplier;Lcwd$b;)V
-
-
Method Details
-
getTabTextureId
- Mappings:
Namespace Name Mixin selector named getTabTextureId
Lnet/minecraft/item/ItemGroup;getTabTextureId(Ljava/lang/String;)Lnet/minecraft/util/Identifier;
intermediary method_60733
Lnet/minecraft/class_1761;method_60733(Ljava/lang/String;)Lnet/minecraft/class_2960;
official a
Lcwd;a(Ljava/lang/String;)Lalz;
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/item/ItemGroup;create(Lnet/minecraft/item/ItemGroup$Row;I)Lnet/minecraft/item/ItemGroup$Builder;
intermediary method_47307
Lnet/minecraft/class_1761;method_47307(Lnet/minecraft/class_1761$class_7915;I)Lnet/minecraft/class_1761$class_7913;
official a
Lcwd;a(Lcwd$f;I)Lcwd$a;
-
getDisplayName
- Mappings:
Namespace Name Mixin selector named getDisplayName
Lnet/minecraft/item/ItemGroup;getDisplayName()Lnet/minecraft/text/Text;
intermediary method_7737
Lnet/minecraft/class_1761;method_7737()Lnet/minecraft/class_2561;
official a
Lcwd;a()Lxv;
-
getIcon
- Mappings:
Namespace Name Mixin selector named getIcon
Lnet/minecraft/item/ItemGroup;getIcon()Lnet/minecraft/item/ItemStack;
intermediary method_7747
Lnet/minecraft/class_1761;method_7747()Lnet/minecraft/class_1799;
official b
Lcwd;b()Lcxo;
-
getTexture
- Mappings:
Namespace Name Mixin selector named getTexture
Lnet/minecraft/item/ItemGroup;getTexture()Lnet/minecraft/util/Identifier;
intermediary method_7742
Lnet/minecraft/class_1761;method_7742()Lnet/minecraft/class_2960;
official c
Lcwd;c()Lalz;
-
shouldRenderName
public boolean shouldRenderName()Checks if this item group should render its name.The name is rendered below the top row of item groups and above the inventory.
- Mappings:
Namespace Name Mixin selector named shouldRenderName
Lnet/minecraft/item/ItemGroup;shouldRenderName()Z
intermediary method_7754
Lnet/minecraft/class_1761;method_7754()Z
official d
Lcwd;d()Z
-
hasScrollbar
public boolean hasScrollbar()- Mappings:
Namespace Name Mixin selector named hasScrollbar
Lnet/minecraft/item/ItemGroup;hasScrollbar()Z
intermediary method_7756
Lnet/minecraft/class_1761;method_7756()Z
official e
Lcwd;e()Z
-
getColumn
public int getColumn()- Mappings:
Namespace Name Mixin selector named getColumn
Lnet/minecraft/item/ItemGroup;getColumn()I
intermediary method_7743
Lnet/minecraft/class_1761;method_7743()I
official f
Lcwd;f()I
-
getRow
- Mappings:
Namespace Name Mixin selector named getRow
Lnet/minecraft/item/ItemGroup;getRow()Lnet/minecraft/item/ItemGroup$Row;
intermediary method_47309
Lnet/minecraft/class_1761;method_47309()Lnet/minecraft/class_1761$class_7915;
official g
Lcwd;g()Lcwd$f;
-
hasStacks
public boolean hasStacks()- Mappings:
Namespace Name Mixin selector named hasStacks
Lnet/minecraft/item/ItemGroup;hasStacks()Z
intermediary method_47310
Lnet/minecraft/class_1761;method_47310()Z
official h
Lcwd;h()Z
-
shouldDisplay
public boolean shouldDisplay()- Mappings:
Namespace Name Mixin selector named shouldDisplay
Lnet/minecraft/item/ItemGroup;shouldDisplay()Z
intermediary method_47311
Lnet/minecraft/class_1761;method_47311()Z
official i
Lcwd;i()Z
-
isSpecial
public boolean isSpecial()- Mappings:
Namespace Name Mixin selector named isSpecial
Lnet/minecraft/item/ItemGroup;isSpecial()Z
intermediary method_7752
Lnet/minecraft/class_1761;method_7752()Z
official j
Lcwd;j()Z
-
getType
- Mappings:
Namespace Name Mixin selector named getType
Lnet/minecraft/item/ItemGroup;getType()Lnet/minecraft/item/ItemGroup$Type;
intermediary method_47312
Lnet/minecraft/class_1761;method_47312()Lnet/minecraft/class_1761$class_7916;
official k
Lcwd;k()Lcwd$h;
-
updateEntries
- Mappings:
Namespace Name Mixin selector named updateEntries
Lnet/minecraft/item/ItemGroup;updateEntries(Lnet/minecraft/item/ItemGroup$DisplayContext;)V
intermediary method_47306
Lnet/minecraft/class_1761;method_47306(Lnet/minecraft/class_1761$class_8128;)V
official a
Lcwd;a(Lcwd$d;)V
-
getDisplayStacks
- Mappings:
Namespace Name Mixin selector named getDisplayStacks
Lnet/minecraft/item/ItemGroup;getDisplayStacks()Ljava/util/Collection;
intermediary method_47313
Lnet/minecraft/class_1761;method_47313()Ljava/util/Collection;
official l
Lcwd;l()Ljava/util/Collection;
-
getSearchTabStacks
- Mappings:
Namespace Name Mixin selector named getSearchTabStacks
Lnet/minecraft/item/ItemGroup;getSearchTabStacks()Ljava/util/Collection;
intermediary method_45414
Lnet/minecraft/class_1761;method_45414()Ljava/util/Collection;
official m
Lcwd;m()Ljava/util/Collection;
-
contains
- Mappings:
Namespace Name Mixin selector named contains
Lnet/minecraft/item/ItemGroup;contains(Lnet/minecraft/item/ItemStack;)Z
intermediary method_45412
Lnet/minecraft/class_1761;method_45412(Lnet/minecraft/class_1799;)Z
official a
Lcwd;a(Lcxo;)Z
-