类 ItemInput
java.lang.Object
net.minecraft.commands.arguments.item.ItemInput
-
字段概要
字段修饰符和类型字段说明private final DataComponentPatch
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明createItemStack
(int p_120981_, boolean p_120982_) getItem()
private String
serialize
(HolderLookup.Provider p_330692_) private String
serializeComponents
(HolderLookup.Provider p_331015_)
-
字段详细资料
-
ERROR_STACK_TOO_BIG
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_STACK_TOO_BIG -
item
-
components
-
-
构造器详细资料
-
ItemInput
-
-
方法详细资料
-
getItem
-
createItemStack
public ItemStack createItemStack(int p_120981_, boolean p_120982_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
serialize
-
serializeComponents
-
getItemName
-