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 hd
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ComponentChanges
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
Lhd;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
Lhd;b:Ljm;
-
components
- Mappings:
Namespace Name Mixin selector named components
Lnet/minecraft/command/argument/ItemStackArgument;components:Lnet/minecraft/component/ComponentChanges;
intermediary field_49570
Lnet/minecraft/class_2290;field_49570:Lnet/minecraft/class_9326;
official c
Lhd;c:Lkn;
-
-
Constructor Details
-
ItemStackArgument
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/command/argument/ItemStackArgument;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/component/ComponentChanges;)V
intermediary <init>
Lnet/minecraft/class_2290;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_9326;)V
official <init>
Lhd;<init>(Ljm;Lkn;)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
Lhd;a()Lcul;
-
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
Lhd;a(IZ)Lcuq;
-
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
Lhd;a(Ljo$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
Lhd;b(Ljo$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
Lhd;b()Ljava/lang/String;
-