Interface ItemArgument
- All Superinterfaces:
ArgumentInf
@NullMarked
@Deprecated(since="1.21.7",
forRemoval=true)
public interface ItemArgument
extends ArgumentInf
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ItemArgument
create()
Deprecated, for removal: This API element is subject to removal in a future version.createItemStack
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name, int amount, boolean checkOverstack) Deprecated, for removal: This API element is subject to removal in a future version.default ItemStack
getItem
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from interface moe.caramel.daydream.brigadier.argument.ArgumentInf
get
-
Method Details
-
getItem
default ItemStack getItem(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
createItemStack
ItemStack createItemStack(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name, int amount, boolean checkOverstack) throws com.mojang.brigadier.exceptions.CommandSyntaxException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
create
Deprecated, for removal: This API element is subject to removal in a future version.
-