Package net.minecraft

Record Class class_10914

java.lang.Object
java.lang.Record
net.minecraft.class_10914
Record Components:
exact -
partial -
All Implemented Interfaces:
Predicate<ComponentsAccess>

public record class_10914(ComponentPredicate exact, Map<ItemSubPredicate.Type<?>,ItemSubPredicate> partial) extends Record implements Predicate<ComponentsAccess>
Mappings:
Namespace Name
named net/minecraft/class_10914
intermediary net/minecraft/class_10914
official bo
named exact
intermediary comp_3833
official d
named partial
intermediary comp_3834
official e
  • Field Details

    • exact

      private final ComponentPredicate exact
      The field for the exact record component.
    • partial

      private final Map<ItemSubPredicate.Type<?>,ItemSubPredicate> partial
      The field for the partial record component.
    • field_58044

      public static final class_10914 field_58044
      Mappings:
      Namespace Name Mixin selector
      named field_58044 Lnet/minecraft/class_10914;field_58044:Lnet/minecraft/class_10914;
      intermediary field_58044 Lnet/minecraft/class_10914;field_58044:Lnet/minecraft/class_10914;
      official a Lbo;a:Lbo;
    • field_58045

      public static final com.mojang.serialization.MapCodec<class_10914> field_58045
      Mappings:
      Namespace Name Mixin selector
      named field_58045 Lnet/minecraft/class_10914;field_58045:Lcom/mojang/serialization/MapCodec;
      intermediary field_58045 Lnet/minecraft/class_10914;field_58045:Lcom/mojang/serialization/MapCodec;
      official b Lbo;b:Lcom/mojang/serialization/MapCodec;
    • field_58046

      public static final PacketCodec<RegistryByteBuf,class_10914> field_58046
      Mappings:
      Namespace Name Mixin selector
      named field_58046 Lnet/minecraft/class_10914;field_58046:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_58046 Lnet/minecraft/class_10914;field_58046:Lnet/minecraft/class_9139;
      official c Lbo;c:Lza;
  • Constructor Details

  • Method Details

    • test

      public boolean test(ComponentsAccess componentsAccess)
      Specified by:
      test in interface Predicate<ComponentsAccess>
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/class_10914;test(Lnet/minecraft/component/ComponentsAccess;)Z
      intermediary method_68682 Lnet/minecraft/class_10914;method_68682(Lnet/minecraft/class_9473;)Z
      official a Lbo;a(Lkg;)Z
    • method_68680

      public boolean method_68680()
      Mappings:
      Namespace Name Mixin selector
      named method_68680 Lnet/minecraft/class_10914;method_68680()Z
      intermediary method_68680 Lnet/minecraft/class_10914;method_68680()Z
      official a Lbo;a()Z
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • exact

      public ComponentPredicate exact()
      Returns the value of the exact record component.
      Returns:
      the value of the exact record component
    • partial

      Returns the value of the partial record component.
      Returns:
      the value of the partial record component