Record Class DataComponentMatchers
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentMatchers
public record DataComponentMatchers(Map<DataComponentType<?>, DataComponent<?,?>> exactMatchers, Map<DataComponentMatchers.PredicateType, com.viaversion.nbt.mini.MNBT> partialMatchers)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionDataComponentMatchers(Map<DataComponentType<?>, DataComponent<?, ?>> exactMatchers, Map<DataComponentMatchers.PredicateType, com.viaversion.nbt.mini.MNBT> partialMatchers) Creates an instance of aDataComponentMatchersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull DataComponentMatchers.DataComponentMatchersBuilderbuilder()final booleanIndicates whether some other object is "equal to" this one.Map<DataComponentType<?>, DataComponent<?, ?>> Returns the value of theexactMatchersrecord component.final inthashCode()Returns a hash code value for this object.Map<DataComponentMatchers.PredicateType, com.viaversion.nbt.mini.MNBT> Returns the value of thepartialMatchersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DataComponentMatchers
public DataComponentMatchers(Map<DataComponentType<?>, DataComponent<?, ?>> exactMatchers, Map<DataComponentMatchers.PredicateType, com.viaversion.nbt.mini.MNBT> partialMatchers) Creates an instance of aDataComponentMatchersrecord class.- Parameters:
exactMatchers- the value for theexactMatchersrecord componentpartialMatchers- the value for thepartialMatchersrecord component
-
-
Method Details
-
builder
-
toBuilder
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
exactMatchers
Returns the value of theexactMatchersrecord component.- Returns:
- the value of the
exactMatchersrecord component
-
partialMatchers
Returns the value of thepartialMatchersrecord component.- Returns:
- the value of the
partialMatchersrecord component
-