Class ItemPredicateArgumentType.ItemPredicate

java.lang.Object
net.minecraft.command.argument.ItemPredicateArgumentType.ItemPredicate
All Implemented Interfaces:
Predicate<ItemStack>
Enclosing class:
ItemPredicateArgumentType

private static class ItemPredicateArgumentType.ItemPredicate extends Object implements Predicate<ItemStack>
Mappings:
Namespace Name
official fk$a
intermediary net/minecraft/class_2293$class_2294
named net/minecraft/command/argument/ItemPredicateArgumentType$ItemPredicate
  • Field Details

    • item

      private final Item item
      Mappings:
      Namespace Name Mixin selector
      official a Lfk$a;a:Lbua;
      intermediary field_10813 Lnet/minecraft/class_2293$class_2294;field_10813:Lnet/minecraft/class_1792;
      named item Lnet/minecraft/command/argument/ItemPredicateArgumentType$ItemPredicate;item:Lnet/minecraft/item/Item;
    • nbt

      @Nullable private final @Nullable NbtCompound nbt
      Mappings:
      Namespace Name Mixin selector
      official b Lfk$a;b:Loc;
      intermediary field_10814 Lnet/minecraft/class_2293$class_2294;field_10814:Lnet/minecraft/class_2487;
      named nbt Lnet/minecraft/command/argument/ItemPredicateArgumentType$ItemPredicate;nbt:Lnet/minecraft/nbt/NbtCompound;
  • Constructor Details

    • ItemPredicate

      public ItemPredicate(Item item, @Nullable @Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfk$a;<init>(Lbua;Loc;)V
      intermediary <init> Lnet/minecraft/class_2293$class_2294;<init>(Lnet/minecraft/class_1792;Lnet/minecraft/class_2487;)V
      named <init> Lnet/minecraft/command/argument/ItemPredicateArgumentType$ItemPredicate;<init>(Lnet/minecraft/item/Item;Lnet/minecraft/nbt/NbtCompound;)V
  • Method Details

    • test

      public boolean test(ItemStack itemStack)
      Specified by:
      test in interface Predicate<ItemStack>
      Mappings:
      Namespace Name Mixin selector
      official a Lfk$a;a(Lbue;)Z
      intermediary method_9806 Lnet/minecraft/class_2293$class_2294;method_9806(Lnet/minecraft/class_1799;)Z
      named test Lnet/minecraft/command/argument/ItemPredicateArgumentType$ItemPredicate;test(Lnet/minecraft/item/ItemStack;)Z