Record Class ServerSettingsRegistryInitEvent
java.lang.Object
java.lang.Record
com.soulfiremc.server.api.event.lifecycle.ServerSettingsRegistryInitEvent
- All Implemented Interfaces:
SoulFireEvent, SoulFireGlobalEvent
public record ServerSettingsRegistryInitEvent(SoulFireServer soulFireServer, ServerSettingsRegistry settingsRegistry)
extends Record
implements SoulFireGlobalEvent
-
Constructor Summary
ConstructorsConstructorDescriptionServerSettingsRegistryInitEvent(SoulFireServer soulFireServer, ServerSettingsRegistry settingsRegistry) Creates an instance of aServerSettingsRegistryInitEventrecord 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.Returns the value of thesettingsRegistryrecord component.Returns the value of thesoulFireServerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServerSettingsRegistryInitEvent
public ServerSettingsRegistryInitEvent(SoulFireServer soulFireServer, ServerSettingsRegistry settingsRegistry) Creates an instance of aServerSettingsRegistryInitEventrecord class.- Parameters:
soulFireServer- the value for thesoulFireServerrecord componentsettingsRegistry- the value for thesettingsRegistryrecord 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). -
soulFireServer
Returns the value of thesoulFireServerrecord component.- Specified by:
soulFireServerin interfaceSoulFireGlobalEvent- Returns:
- the value of the
soulFireServerrecord component
-
settingsRegistry
Returns the value of thesettingsRegistryrecord component.- Returns:
- the value of the
settingsRegistryrecord component
-