类 ItemInput

java.lang.Object
net.minecraft.commands.arguments.item.ItemInput
所有已实现的接口:
Predicate<ItemStack>

public class ItemInput extends Object implements Predicate<ItemStack>
  • 字段详细资料

    • ERROR_STACK_TOO_BIG

      private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_STACK_TOO_BIG
    • item

      private final Holder<Item> item
    • tag

      @Nullable private final CompoundTag tag
  • 构造器详细资料

  • 方法详细资料

    • getItem

      public Item getItem()
    • test

      public boolean test(ItemStack pStack)
      指定者:
      test 在接口中 Predicate<ItemStack>
    • createItemStack

      public ItemStack createItemStack(int pCount, boolean pAllowOversizedStacks) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      抛出:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • serialize

      public String serialize()
    • getItemName

      private String getItemName()