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 fk$c
intermediary net/minecraft/class_2293$class_2296
named net/minecraft/command/argument/ItemPredicateArgumentType$TagPredicate
  • Field Details

    • tag

      private final Tag<Item> tag
      Mappings:
      Namespace Name Mixin selector
      official a Lfk$c;a:Lahr;
      intermediary field_10815 Lnet/minecraft/class_2293$class_2296;field_10815:Lnet/minecraft/class_3494;
      named tag Lnet/minecraft/command/argument/ItemPredicateArgumentType$TagPredicate;tag:Lnet/minecraft/tag/Tag;
    • compound

      @Nullable private final @Nullable NbtCompound compound
      Mappings:
      Namespace Name Mixin selector
      official b Lfk$c;b:Loc;
      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(Tag<Item> tag, @Nullable @Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfk$c;<init>(Lahr;Loc;)V
      intermediary <init> Lnet/minecraft/class_2293$class_2296;<init>(Lnet/minecraft/class_3494;Lnet/minecraft/class_2487;)V
      named <init> Lnet/minecraft/command/argument/ItemPredicateArgumentType$TagPredicate;<init>(Lnet/minecraft/tag/Tag;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$c;a(Lbue;)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