Class ComponentPredicate

java.lang.Object
net.minecraft.predicate.ComponentPredicate
All Implemented Interfaces:
Predicate<ComponentMap>

public final class ComponentPredicate extends Object implements Predicate<ComponentMap>
Mappings:
Namespace Name
named net/minecraft/predicate/ComponentPredicate
intermediary net/minecraft/class_9329
official kk
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<ComponentPredicate> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/predicate/ComponentPredicate;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_49595 Lnet/minecraft/class_9329;field_49595:Lcom/mojang/serialization/Codec;
      official a Lkk;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,ComponentPredicate> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/predicate/ComponentPredicate;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49596 Lnet/minecraft/class_9329;field_49596:Lnet/minecraft/class_9139;
      official b Lkk;b:Lzn;
    • EMPTY

      public static final ComponentPredicate EMPTY
      Mappings:
      Namespace Name Mixin selector
      named EMPTY Lnet/minecraft/predicate/ComponentPredicate;EMPTY:Lnet/minecraft/predicate/ComponentPredicate;
      intermediary field_49597 Lnet/minecraft/class_9329;field_49597:Lnet/minecraft/class_9329;
      official c Lkk;c:Lkk;
    • components

      private final List<Component<?>> components
      Mappings:
      Namespace Name Mixin selector
      named components Lnet/minecraft/predicate/ComponentPredicate;components:Ljava/util/List;
      intermediary field_49598 Lnet/minecraft/class_9329;field_49598:Ljava/util/List;
      official d Lkk;d:Ljava/util/List;
  • Constructor Details

    • ComponentPredicate

      ComponentPredicate(List<Component<?>> components)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/predicate/ComponentPredicate;<init>(Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_9329;<init>(Ljava/util/List;)V
      official <init> Lkk;<init>(Ljava/util/List;)V
  • Method Details

    • builder

      public static ComponentPredicate.Builder builder()
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/predicate/ComponentPredicate;builder()Lnet/minecraft/predicate/ComponentPredicate$Builder;
      intermediary method_57862 Lnet/minecraft/class_9329;method_57862()Lnet/minecraft/class_9329$class_9330;
      official a Lkk;a()Lkk$a;
    • of

      public static ComponentPredicate of(ComponentMap components)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/predicate/ComponentPredicate;of(Lnet/minecraft/component/ComponentMap;)Lnet/minecraft/predicate/ComponentPredicate;
      intermediary method_57865 Lnet/minecraft/class_9329;method_57865(Lnet/minecraft/class_9323;)Lnet/minecraft/class_9329;
      official a Lkk;a(Lki;)Lkk;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/predicate/ComponentPredicate;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_9329;equals(Ljava/lang/Object;)Z
      official equals Lkk;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • test

      public boolean test(ComponentMap componentMap)
      Specified by:
      test in interface Predicate<ComponentMap>
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/predicate/ComponentPredicate;test(Lnet/minecraft/component/ComponentMap;)Z
      intermediary method_57868 Lnet/minecraft/class_9329;method_57868(Lnet/minecraft/class_9323;)Z
      official b Lkk;b(Lki;)Z
    • test

      public boolean test(ComponentHolder holder)
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/predicate/ComponentPredicate;test(Lnet/minecraft/component/ComponentHolder;)Z
      intermediary method_57864 Lnet/minecraft/class_9329;method_57864(Lnet/minecraft/class_9322;)Z
      official a Lkk;a(Lkh;)Z
    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      named isEmpty Lnet/minecraft/predicate/ComponentPredicate;isEmpty()Z
      intermediary method_57867 Lnet/minecraft/class_9329;method_57867()Z
      official b Lkk;b()Z
    • toChanges

      public ComponentChanges toChanges()
      Mappings:
      Namespace Name Mixin selector
      named toChanges Lnet/minecraft/predicate/ComponentPredicate;toChanges()Lnet/minecraft/component/ComponentChanges;
      intermediary method_57870 Lnet/minecraft/class_9329;method_57870()Lnet/minecraft/class_9326;
      official c Lkk;c()Lkj;