Package net.minecraft.command.argument
Class ItemStackArgument
java.lang.Object
net.minecraft.command.argument.ItemStackArgument
- Mappings:
Namespace Name named net/minecraft/command/argument/ItemStackArgument
intermediary net/minecraft/class_2290
official gz
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ComponentMap
private final RegistryEntry
<Item> private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasString
(RegistryWrapper.WrapperLookup registries) private String
componentsAsString
(RegistryWrapper.WrapperLookup registries) createStack
(int amount, boolean checkOverstack) private String
getItem()
-
Field Details
-
OVERSTACKED_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType OVERSTACKED_EXCEPTION- Mappings:
Namespace Name Mixin selector named OVERSTACKED_EXCEPTION
Lnet/minecraft/command/argument/ItemStackArgument;OVERSTACKED_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
intermediary field_10797
Lnet/minecraft/class_2290;field_10797:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
official a
Lgz;a:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
-
item
- Mappings:
Namespace Name Mixin selector named item
Lnet/minecraft/command/argument/ItemStackArgument;item:Lnet/minecraft/registry/entry/RegistryEntry;
intermediary field_10796
Lnet/minecraft/class_2290;field_10796:Lnet/minecraft/class_6880;
official b
Lgz;b:Lji;
-
components
- Mappings:
Namespace Name Mixin selector named components
Lnet/minecraft/command/argument/ItemStackArgument;components:Lnet/minecraft/component/ComponentMap;
intermediary field_49570
Lnet/minecraft/class_2290;field_49570:Lnet/minecraft/class_9323;
official c
Lgz;c:Lki;
-
-
Constructor Details
-
ItemStackArgument
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/command/argument/ItemStackArgument;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/component/ComponentMap;)V
intermediary <init>
Lnet/minecraft/class_2290;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_9323;)V
official <init>
Lgz;<init>(Lji;Lki;)V
-
-
Method Details
-
getItem
- Mappings:
Namespace Name Mixin selector named getItem
Lnet/minecraft/command/argument/ItemStackArgument;getItem()Lnet/minecraft/item/Item;
intermediary method_9785
Lnet/minecraft/class_2290;method_9785()Lnet/minecraft/class_1792;
official a
Lgz;a()Lcum;
-
createStack
public ItemStack createStack(int amount, boolean checkOverstack) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named createStack
Lnet/minecraft/command/argument/ItemStackArgument;createStack(IZ)Lnet/minecraft/item/ItemStack;
intermediary method_9781
Lnet/minecraft/class_2290;method_9781(IZ)Lnet/minecraft/class_1799;
official a
Lgz;a(IZ)Lcur;
-
asString
- Mappings:
Namespace Name Mixin selector named asString
Lnet/minecraft/command/argument/ItemStackArgument;asString(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Ljava/lang/String;
intermediary method_9782
Lnet/minecraft/class_2290;method_9782(Lnet/minecraft/class_7225$class_7874;)Ljava/lang/String;
official a
Lgz;a(Ljk$a;)Ljava/lang/String;
-
componentsAsString
- Mappings:
Namespace Name Mixin selector named componentsAsString
Lnet/minecraft/command/argument/ItemStackArgument;componentsAsString(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Ljava/lang/String;
intermediary method_57801
Lnet/minecraft/class_2290;method_57801(Lnet/minecraft/class_7225$class_7874;)Ljava/lang/String;
official b
Lgz;b(Ljk$a;)Ljava/lang/String;
-
getIdString
- Mappings:
Namespace Name Mixin selector named getIdString
Lnet/minecraft/command/argument/ItemStackArgument;getIdString()Ljava/lang/String;
intermediary method_41967
Lnet/minecraft/class_2290;method_41967()Ljava/lang/String;
official b
Lgz;b()Ljava/lang/String;
-