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 official ccd
intermediary net/minecraft/class_1761
named net/minecraft/item/ItemGroup
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
protected static interface
private static class
static interface
static enum
protected static enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final Text
private Collection<ItemStack>
private final ItemGroup.EntryCollector
(package private) boolean
private final ItemGroup.Row
(package private) boolean
(package private) boolean
(package private) String
private final ItemGroup.Type
-
Constructor Summary
ConstructorsConstructorDescriptionItemGroup
(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()
getType()
boolean
boolean
boolean
void
void
setSearchProviderReloader
(Consumer<List<ItemStack>> searchProviderReloader) boolean
boolean
Checks if this item group should render its name.void
updateEntries
(FeatureSet enabledFeatures, boolean operatorEnabled)
-
Field Details
-
displayName
- Mappings:
Namespace Name Mixin selector official a
Lccd;a:Lss;
intermediary field_26391
Lnet/minecraft/class_1761;field_26391:Lnet/minecraft/class_2561;
named displayName
Lnet/minecraft/item/ItemGroup;displayName:Lnet/minecraft/text/Text;
-
texture
String texture- Mappings:
Namespace Name Mixin selector official b
Lccd;b:Ljava/lang/String;
intermediary field_7919
Lnet/minecraft/class_1761;field_7919:Ljava/lang/String;
named texture
Lnet/minecraft/item/ItemGroup;texture:Ljava/lang/String;
-
scrollbar
boolean scrollbar- Mappings:
Namespace Name Mixin selector official c
Lccd;c:Z
intermediary field_7920
Lnet/minecraft/class_1761;field_7920:Z
named scrollbar
Lnet/minecraft/item/ItemGroup;scrollbar:Z
-
renderName
boolean renderName- Mappings:
Namespace Name Mixin selector official d
Lccd;d:Z
intermediary field_7917
Lnet/minecraft/class_1761;field_7917:Z
named renderName
Lnet/minecraft/item/ItemGroup;renderName:Z
-
special
boolean special- Mappings:
Namespace Name Mixin selector official e
Lccd;e:Z
intermediary field_41031
Lnet/minecraft/class_1761;field_41031:Z
named special
Lnet/minecraft/item/ItemGroup;special:Z
-
row
- Mappings:
Namespace Name Mixin selector official f
Lccd;f:Lccd$e;
intermediary field_41032
Lnet/minecraft/class_1761;field_41032:Lnet/minecraft/class_1761$class_7915;
named row
Lnet/minecraft/item/ItemGroup;row:Lnet/minecraft/item/ItemGroup$Row;
-
column
private final int column- Mappings:
Namespace Name Mixin selector official g
Lccd;g:I
intermediary field_41033
Lnet/minecraft/class_1761;field_41033:I
named column
Lnet/minecraft/item/ItemGroup;column:I
-
type
- Mappings:
Namespace Name Mixin selector official h
Lccd;h:Lccd$g;
intermediary field_41034
Lnet/minecraft/class_1761;field_41034:Lnet/minecraft/class_1761$class_7916;
named type
Lnet/minecraft/item/ItemGroup;type:Lnet/minecraft/item/ItemGroup$Type;
-
icon
- Mappings:
Namespace Name Mixin selector official i
Lccd;i:Lcdt;
intermediary field_7934
Lnet/minecraft/class_1761;field_7934:Lnet/minecraft/class_1799;
named icon
Lnet/minecraft/item/ItemGroup;icon:Lnet/minecraft/item/ItemStack;
-
displayStacks
- Mappings:
Namespace Name Mixin selector official j
Lccd;j:Ljava/util/Collection;
intermediary field_40859
Lnet/minecraft/class_1761;field_40859:Ljava/util/Collection;
named displayStacks
Lnet/minecraft/item/ItemGroup;displayStacks:Ljava/util/Collection;
-
searchTabStacks
- Mappings:
Namespace Name Mixin selector official k
Lccd;k:Ljava/util/Set;
intermediary field_40860
Lnet/minecraft/class_1761;field_40860:Ljava/util/Set;
named searchTabStacks
Lnet/minecraft/item/ItemGroup;searchTabStacks:Ljava/util/Set;
-
searchProviderReloader
- Mappings:
Namespace Name Mixin selector official l
Lccd;l:Ljava/util/function/Consumer;
intermediary field_41035
Lnet/minecraft/class_1761;field_41035:Ljava/util/function/Consumer;
named searchProviderReloader
Lnet/minecraft/item/ItemGroup;searchProviderReloader:Ljava/util/function/Consumer;
-
iconSupplier
- Mappings:
Namespace Name Mixin selector official m
Lccd;m:Ljava/util/function/Supplier;
intermediary field_41036
Lnet/minecraft/class_1761;field_41036:Ljava/util/function/Supplier;
named iconSupplier
Lnet/minecraft/item/ItemGroup;iconSupplier:Ljava/util/function/Supplier;
-
entryCollector
- Mappings:
Namespace Name Mixin selector official n
Lccd;n:Lccd$b;
intermediary field_41037
Lnet/minecraft/class_1761;field_41037:Lnet/minecraft/class_1761$class_7914;
named entryCollector
Lnet/minecraft/item/ItemGroup;entryCollector:Lnet/minecraft/item/ItemGroup$EntryCollector;
-
-
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 official <init>
Lccd;<init>(Lccd$e;ILccd$g;Lss;Ljava/util/function/Supplier;Lccd$b;)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
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
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official a
Lccd;a(Lccd$e;I)Lccd$a;
intermediary method_47307
Lnet/minecraft/class_1761;method_47307(Lnet/minecraft/class_1761$class_7915;I)Lnet/minecraft/class_1761$class_7913;
named create
Lnet/minecraft/item/ItemGroup;create(Lnet/minecraft/item/ItemGroup$Row;I)Lnet/minecraft/item/ItemGroup$Builder;
-
getDisplayName
- Mappings:
Namespace Name Mixin selector official a
Lccd;a()Lss;
intermediary method_7737
Lnet/minecraft/class_1761;method_7737()Lnet/minecraft/class_2561;
named getDisplayName
Lnet/minecraft/item/ItemGroup;getDisplayName()Lnet/minecraft/text/Text;
-
getIcon
- Mappings:
Namespace Name Mixin selector official b
Lccd;b()Lcdt;
intermediary method_7747
Lnet/minecraft/class_1761;method_7747()Lnet/minecraft/class_1799;
named getIcon
Lnet/minecraft/item/ItemGroup;getIcon()Lnet/minecraft/item/ItemStack;
-
getTexture
- Mappings:
Namespace Name Mixin selector official c
Lccd;c()Ljava/lang/String;
intermediary method_7742
Lnet/minecraft/class_1761;method_7742()Ljava/lang/String;
named getTexture
Lnet/minecraft/item/ItemGroup;getTexture()Ljava/lang/String;
-
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 official d
Lccd;d()Z
intermediary method_7754
Lnet/minecraft/class_1761;method_7754()Z
named shouldRenderName
Lnet/minecraft/item/ItemGroup;shouldRenderName()Z
-
hasScrollbar
public boolean hasScrollbar()- Mappings:
Namespace Name Mixin selector official e
Lccd;e()Z
intermediary method_7756
Lnet/minecraft/class_1761;method_7756()Z
named hasScrollbar
Lnet/minecraft/item/ItemGroup;hasScrollbar()Z
-
getColumn
public int getColumn()- Mappings:
Namespace Name Mixin selector official f
Lccd;f()I
intermediary method_7743
Lnet/minecraft/class_1761;method_7743()I
named getColumn
Lnet/minecraft/item/ItemGroup;getColumn()I
-
getRow
- Mappings:
Namespace Name Mixin selector official g
Lccd;g()Lccd$e;
intermediary method_47309
Lnet/minecraft/class_1761;method_47309()Lnet/minecraft/class_1761$class_7915;
named getRow
Lnet/minecraft/item/ItemGroup;getRow()Lnet/minecraft/item/ItemGroup$Row;
-
hasStacks
public boolean hasStacks()- Mappings:
Namespace Name Mixin selector official h
Lccd;h()Z
intermediary method_47310
Lnet/minecraft/class_1761;method_47310()Z
named hasStacks
Lnet/minecraft/item/ItemGroup;hasStacks()Z
-
shouldDisplay
public boolean shouldDisplay()- Mappings:
Namespace Name Mixin selector official i
Lccd;i()Z
intermediary method_47311
Lnet/minecraft/class_1761;method_47311()Z
named shouldDisplay
Lnet/minecraft/item/ItemGroup;shouldDisplay()Z
-
isSpecial
public boolean isSpecial()- Mappings:
Namespace Name Mixin selector official j
Lccd;j()Z
intermediary method_7752
Lnet/minecraft/class_1761;method_7752()Z
named isSpecial
Lnet/minecraft/item/ItemGroup;isSpecial()Z
-
getType
- Mappings:
Namespace Name Mixin selector official k
Lccd;k()Lccd$g;
intermediary method_47312
Lnet/minecraft/class_1761;method_47312()Lnet/minecraft/class_1761$class_7916;
named getType
Lnet/minecraft/item/ItemGroup;getType()Lnet/minecraft/item/ItemGroup$Type;
-
updateEntries
- Mappings:
Namespace Name Mixin selector official a
Lccd;a(Lbyx;Z)V
intermediary method_47306
Lnet/minecraft/class_1761;method_47306(Lnet/minecraft/class_7699;Z)V
named updateEntries
Lnet/minecraft/item/ItemGroup;updateEntries(Lnet/minecraft/resource/featuretoggle/FeatureSet;Z)V
-
getDisplayStacks
- Mappings:
Namespace Name Mixin selector official l
Lccd;l()Ljava/util/Collection;
intermediary method_47313
Lnet/minecraft/class_1761;method_47313()Ljava/util/Collection;
named getDisplayStacks
Lnet/minecraft/item/ItemGroup;getDisplayStacks()Ljava/util/Collection;
-
getSearchTabStacks
- Mappings:
Namespace Name Mixin selector official m
Lccd;m()Ljava/util/Collection;
intermediary method_45414
Lnet/minecraft/class_1761;method_45414()Ljava/util/Collection;
named getSearchTabStacks
Lnet/minecraft/item/ItemGroup;getSearchTabStacks()Ljava/util/Collection;
-
contains
- Mappings:
Namespace Name Mixin selector official a
Lccd;a(Lcdt;)Z
intermediary method_45412
Lnet/minecraft/class_1761;method_45412(Lnet/minecraft/class_1799;)Z
named contains
Lnet/minecraft/item/ItemGroup;contains(Lnet/minecraft/item/ItemStack;)Z
-
setSearchProviderReloader
- Mappings:
Namespace Name Mixin selector official a
Lccd;a(Ljava/util/function/Consumer;)V
intermediary method_47308
Lnet/minecraft/class_1761;method_47308(Ljava/util/function/Consumer;)V
named setSearchProviderReloader
Lnet/minecraft/item/ItemGroup;setSearchProviderReloader(Ljava/util/function/Consumer;)V
-
reloadSearchProvider
public void reloadSearchProvider()- Mappings:
Namespace Name Mixin selector official n
Lccd;n()V
intermediary method_47314
Lnet/minecraft/class_1761;method_47314()V
named reloadSearchProvider
Lnet/minecraft/item/ItemGroup;reloadSearchProvider()V
-