Class ItemInput
java.lang.Object
net.minecraft.commands.arguments.item.ItemInput
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DataComponentMap
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateItemStack
(int p_120981_, boolean p_120982_) getItem()
private String
serialize
(HolderLookup.Provider p_330692_) private String
serializeComponents
(HolderLookup.Provider p_331015_)
-
Field Details
-
ERROR_STACK_TOO_BIG
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_STACK_TOO_BIG -
item
-
components
-
-
Constructor Details
-
ItemInput
-
-
Method Details
-
getItem
-
createItemStack
public ItemStack createItemStack(int p_120981_, boolean p_120982_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
serialize
-
serializeComponents
-
getItemName
-