Contents
Record Class MembershipReferenceValidator
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.worldgen.assets.membership.MembershipReferenceValidator
- All Implemented Interfaces:
Validator<String>, BiConsumer<String, ValidationResults>
-
Constructor Summary
ConstructorsConstructorDescriptionMembershipReferenceValidator(String assetType) Creates an instance of aMembershipReferenceValidatorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(String value, ValidationResults results) Returns the value of theassetTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.voidupdateSchema(SchemaContext context, Schema target) Methods inherited from interface BiConsumer
andThen
-
Constructor Details
-
MembershipReferenceValidator
Creates an instance of aMembershipReferenceValidatorrecord class.- Parameters:
assetType- the value for theassetTyperecord component
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<String, ValidationResults>- Specified by:
acceptin interfaceValidator<String>
-
updateSchema
- Specified by:
updateSchemain interfaceValidator<String>
-
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). -
assetType
Returns the value of theassetTyperecord component.- Returns:
- the value of the
assetTyperecord component
-