Interface ComponentSubPredicate<T>

All Superinterfaces:
ItemSubPredicate
All Known Implementing Classes:
DamagePredicate, EnchantmentsPredicate, EnchantmentsPredicate.Enchantments, EnchantmentsPredicate.StoredEnchantments, PotionContentsPredicate

public interface ComponentSubPredicate<T> extends ItemSubPredicate
Mappings:
Namespace Name
official df
intermediary net/minecraft/class_9365
named net/minecraft/predicate/item/ComponentSubPredicate
  • Method Details

    • test

      default boolean test(ItemStack stack)
      Specified by:
      test in interface ItemSubPredicate
      Mappings:
      Namespace Name Mixin selector
      official a Lci;a(Lcsz;)Z
      intermediary method_58161 Lnet/minecraft/class_9360;method_58161(Lnet/minecraft/class_1799;)Z
      named test Lnet/minecraft/predicate/item/ItemSubPredicate;test(Lnet/minecraft/item/ItemStack;)Z
    • getComponentType

      DataComponentType<T> getComponentType()
      Mappings:
      Namespace Name Mixin selector
      official a Ldf;a()Ljz;
      intermediary method_58163 Lnet/minecraft/class_9365;method_58163()Lnet/minecraft/class_9331;
      named getComponentType Lnet/minecraft/predicate/item/ComponentSubPredicate;getComponentType()Lnet/minecraft/component/DataComponentType;
    • test

      boolean test(ItemStack stack, T component)
      Mappings:
      Namespace Name Mixin selector
      official a Ldf;a(Lcsz;Ljava/lang/Object;)Z
      intermediary method_58167 Lnet/minecraft/class_9365;method_58167(Lnet/minecraft/class_1799;Ljava/lang/Object;)Z
      named test Lnet/minecraft/predicate/item/ComponentSubPredicate;test(Lnet/minecraft/item/ItemStack;Ljava/lang/Object;)Z