Record Class DataComponentMatchers.PredicateType
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentMatchers.PredicateType
- Enclosing class:
DataComponentMatchers
public static record DataComponentMatchers.PredicateType(boolean isPredicate, int id)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionPredicateType(boolean isPredicate, int id) Creates an instance of aPredicateTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull DataComponentMatchers.PredicateType.PredicateTypeBuilderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.booleanReturns the value of theisPredicaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PredicateType
public PredicateType(boolean isPredicate, int id) Creates an instance of aPredicateTyperecord class.- Parameters:
isPredicate- the value for theisPredicaterecord componentid- the value for theidrecord 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 with thecomparemethod from their corresponding wrapper classes. -
isPredicate
public boolean isPredicate()Returns the value of theisPredicaterecord component.- Returns:
- the value of the
isPredicaterecord component
-
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-