Class ItemPredicateArgumentType.TagPredicate

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

private static class ItemPredicateArgumentType.TagPredicate extends Object implements Predicate<ItemStack>
Mappings:
Namespace Name
official fn$c
intermediary net/minecraft/class_2293$class_2296
named net/minecraft/command/argument/ItemPredicateArgumentType$TagPredicate
  • Field Details

    • tag

      private final TagKey<Item> tag
      Mappings:
      Namespace Name Mixin selector
      official a Lfn$c;a:Laii;
      intermediary field_10815 Lnet/minecraft/class_2293$class_2296;field_10815:Lnet/minecraft/class_6862;
      named tag Lnet/minecraft/command/argument/ItemPredicateArgumentType$TagPredicate;tag:Lnet/minecraft/tag/TagKey;
    • compound

      @Nullable private final @Nullable NbtCompound compound
      Mappings:
      Namespace Name Mixin selector
      official b Lfn$c;b:Lom;
      intermediary field_10816 Lnet/minecraft/class_2293$class_2296;field_10816:Lnet/minecraft/class_2487;
      named compound Lnet/minecraft/command/argument/ItemPredicateArgumentType$TagPredicate;compound:Lnet/minecraft/nbt/NbtCompound;
  • Constructor Details

    • TagPredicate

      public TagPredicate(TagKey<Item> tag, @Nullable @Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfn$c;<init>(Laii;Lom;)V
      intermediary <init> Lnet/minecraft/class_2293$class_2296;<init>(Lnet/minecraft/class_6862;Lnet/minecraft/class_2487;)V
      named <init> Lnet/minecraft/command/argument/ItemPredicateArgumentType$TagPredicate;<init>(Lnet/minecraft/tag/TagKey;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 Lfn$c;a(Lbux;)Z
      intermediary method_9807 Lnet/minecraft/class_2293$class_2296;method_9807(Lnet/minecraft/class_1799;)Z
      named test Lnet/minecraft/command/argument/ItemPredicateArgumentType$TagPredicate;test(Lnet/minecraft/item/ItemStack;)Z