Interface ComponentSubPredicate<T>

All Superinterfaces:
ItemSubPredicate
All Known Implementing Classes:
AttributeModifiersPredicate, BundleContentsPredicate, ContainerPredicate, DamagePredicate, EnchantmentsPredicate, EnchantmentsPredicate.Enchantments, EnchantmentsPredicate.StoredEnchantments, FireworkExplosionPredicate, FireworksPredicate, JukeboxPlayablePredicate, PotionContentsPredicate, TrimPredicate, WritableBookContentPredicate, WrittenBookContentPredicate

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

    • test

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

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

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