Package net.minecraftforge.fml.config
Record Class IConfigEvent.ConfigConfig
java.lang.Object
java.lang.Record
net.minecraftforge.fml.config.IConfigEvent.ConfigConfig
- Enclosing interface:
IConfigEvent
public static record IConfigEvent.ConfigConfig(Function<ModConfig,IConfigEvent> loading, Function<ModConfig,IConfigEvent> reloading, @Nullable Function<ModConfig,IConfigEvent> unloading)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function<ModConfig, IConfigEvent> The field for theloadingrecord component.private final Function<ModConfig, IConfigEvent> The field for thereloadingrecord component.private final @Nullable Function<ModConfig, IConfigEvent> The field for theunloadingrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionConfigConfig(Function<ModConfig, IConfigEvent> loading, Function<ModConfig, IConfigEvent> reloading, @Nullable Function<ModConfig, IConfigEvent> unloading) Creates an instance of aConfigConfigrecord 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.loading()Returns the value of theloadingrecord component.Returns the value of thereloadingrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Function<ModConfig, IConfigEvent> Returns the value of theunloadingrecord component.
-
Field Details
-
loading
The field for theloadingrecord component. -
reloading
The field for thereloadingrecord component. -
unloading
The field for theunloadingrecord component.
-
-
Constructor Details
-
ConfigConfig
public ConfigConfig(Function<ModConfig, IConfigEvent> loading, Function<ModConfig, IConfigEvent> reloading, @Nullable @Nullable Function<ModConfig, IConfigEvent> unloading) Creates an instance of aConfigConfigrecord class.- Parameters:
loading- the value for theloadingrecord componentreloading- the value for thereloadingrecord componentunloading- the value for theunloadingrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
loading
Returns the value of theloadingrecord component.- Returns:
- the value of the
loadingrecord component
-
reloading
Returns the value of thereloadingrecord component.- Returns:
- the value of the
reloadingrecord component
-
unloading
Returns the value of theunloadingrecord component.- Returns:
- the value of the
unloadingrecord component
-