Record Class InstanceSettingsRegistryInitEvent
java.lang.Object
java.lang.Record
com.soulfiremc.server.api.event.lifecycle.InstanceSettingsRegistryInitEvent
- All Implemented Interfaces:
SoulFireEvent, SoulFireGlobalEvent, SoulFireInstanceEvent
public record InstanceSettingsRegistryInitEvent(InstanceManager instanceManager, SettingsPageRegistry settingsPageRegistry)
extends Record
implements SoulFireInstanceEvent
-
Constructor Summary
ConstructorsConstructorDescriptionInstanceSettingsRegistryInitEvent(InstanceManager instanceManager, SettingsPageRegistry settingsPageRegistry) Creates an instance of aInstanceSettingsRegistryInitEventrecord 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 theinstanceManagerrecord component.Returns the value of thesettingsPageRegistryrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface SoulFireInstanceEvent
soulFireServer
-
Constructor Details
-
InstanceSettingsRegistryInitEvent
public InstanceSettingsRegistryInitEvent(InstanceManager instanceManager, SettingsPageRegistry settingsPageRegistry) Creates an instance of aInstanceSettingsRegistryInitEventrecord class.- Parameters:
instanceManager- the value for theinstanceManagerrecord componentsettingsPageRegistry- the value for thesettingsPageRegistryrecord 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). -
instanceManager
Returns the value of theinstanceManagerrecord component.- Specified by:
instanceManagerin interfaceSoulFireInstanceEvent- Returns:
- the value of the
instanceManagerrecord component
-
settingsPageRegistry
Returns the value of thesettingsPageRegistryrecord component.- Returns:
- the value of the
settingsPageRegistryrecord component
-