Record Class RegistryData.GameEventEntry
java.lang.Object
java.lang.Record
net.minestom.server.registry.RegistryData.GameEventEntry
- All Implemented Interfaces:
RegistryData.Entry
- Enclosing class:
RegistryData
public static record RegistryData.GameEventEntry(Key key, RegistryData.Properties main)
extends Record
implements RegistryData.Entry
-
Constructor Summary
ConstructorsConstructorDescriptionGameEventEntry(String key, RegistryData.Properties main) GameEventEntry(Key key, RegistryData.Properties main) Creates an instance of aGameEventEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.main()Returns the value of themainrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GameEventEntry
-
GameEventEntry
Creates an instance of aGameEventEntryrecord class.- Parameters:
key- the value for thekeyrecord componentmain- the value for themainrecord component
-
-
Method Details
-
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
main
Returns the value of themainrecord component.- Returns:
- the value of the
mainrecord component
-