Record Class PropertiesPredicate
java.lang.Object
java.lang.Record
net.minestom.server.instance.block.predicate.PropertiesPredicate
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<PropertiesPredicate> static final NetworkBuffer.Type<PropertiesPredicate> -
Constructor Summary
ConstructorsConstructorDescriptionPropertiesPredicate(Map<String, PropertiesPredicate.ValuePredicate> properties) Creates an instance of aPropertiesPredicaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static PropertiesPredicatefinal inthashCode()Returns a hash code value for this object.Returns the value of thepropertiesrecord component.booleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
NETWORK_TYPE
-
CODEC
-
-
Constructor Details
-
PropertiesPredicate
Creates an instance of aPropertiesPredicaterecord class.- Parameters:
properties- the value for thepropertiesrecord component
-
-
Method Details
-
exact
-
test
-
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). -
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-