Package net.minecraft.command.argument
Class ItemStackArgument
java.lang.Object
net.minecraft.command.argument.ItemStackArgument
public class ItemStackArgument extends Object implements Predicate<ItemStack>
- Mappings:
Namespace Name official ex
intermediary net/minecraft/class_2290
named net/minecraft/command/argument/ItemStackArgument
-
Field Summary
Fields Modifier and Type Field Description private Item
item
private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
OVERSTACKED_EXCEPTION
private CompoundTag
tag
-
Constructor Summary
Constructors Constructor Description ItemStackArgument(Item item, CompoundTag tag)
-
Method Summary
-
Field Details
-
OVERSTACKED_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType OVERSTACKED_EXCEPTION- Mappings:
Namespace Name Mixin selector official a
Lex;a:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
intermediary field_10797
Lnet/minecraft/class_2290;field_10797:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
named OVERSTACKED_EXCEPTION
Lnet/minecraft/command/argument/ItemStackArgument;OVERSTACKED_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
-
item
- Mappings:
Namespace Name Mixin selector official b
Lex;b:Lbnr;
intermediary field_10796
Lnet/minecraft/class_2290;field_10796:Lnet/minecraft/class_1792;
named item
Lnet/minecraft/command/argument/ItemStackArgument;item:Lnet/minecraft/item/Item;
-
tag
- Mappings:
Namespace Name Mixin selector official c
Lex;c:Lmq;
intermediary field_10798
Lnet/minecraft/class_2290;field_10798:Lnet/minecraft/class_2487;
named tag
Lnet/minecraft/command/argument/ItemStackArgument;tag:Lnet/minecraft/nbt/CompoundTag;
-
-
Constructor Details
-
ItemStackArgument
- Mappings:
Namespace Name Mixin selector official <init>
Lex;<init>(Lbnr;Lmq;)V
intermediary <init>
Lnet/minecraft/class_2290;<init>(Lnet/minecraft/class_1792;Lnet/minecraft/class_2487;)V
named <init>
Lnet/minecraft/command/argument/ItemStackArgument;<init>(Lnet/minecraft/item/Item;Lnet/minecraft/nbt/CompoundTag;)V
-
-
Method Details
-
getItem
- Mappings:
Namespace Name Mixin selector official a
Lex;a()Lbnr;
intermediary method_9785
Lnet/minecraft/class_2290;method_9785()Lnet/minecraft/class_1792;
named getItem
Lnet/minecraft/command/argument/ItemStackArgument;getItem()Lnet/minecraft/item/Item;
-
test
- Specified by:
test
in interfacePredicate<ItemStack>
- Mappings:
Namespace Name Mixin selector official a
Lex;a(Lbnv;)Z
intermediary method_9783
Lnet/minecraft/class_2290;method_9783(Lnet/minecraft/class_1799;)Z
named test
Lnet/minecraft/command/argument/ItemStackArgument;test(Lnet/minecraft/item/ItemStack;)Z
-
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 official a
Lex;a(IZ)Lbnv;
intermediary method_9781
Lnet/minecraft/class_2290;method_9781(IZ)Lnet/minecraft/class_1799;
named createStack
Lnet/minecraft/command/argument/ItemStackArgument;createStack(IZ)Lnet/minecraft/item/ItemStack;
-
asString
- Mappings:
Namespace Name Mixin selector official b
Lex;b()Ljava/lang/String;
intermediary method_9782
Lnet/minecraft/class_2290;method_9782()Ljava/lang/String;
named asString
Lnet/minecraft/command/argument/ItemStackArgument;asString()Ljava/lang/String;
-