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
Modifier and TypeFieldDescriptionprivate final Function
<ModConfig, IConfigEvent> The field for theloading
record component.private final Function
<ModConfig, IConfigEvent> The field for thereloading
record component.private final @Nullable Function
<ModConfig, IConfigEvent> The field for theunloading
record component. -
Constructor Summary
ConstructorDescriptionConfigConfig
(Function<ModConfig, IConfigEvent> loading, Function<ModConfig, IConfigEvent> reloading, @Nullable Function<ModConfig, IConfigEvent> unloading) Creates an instance of aConfigConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.loading()
Returns the value of theloading
record component.Returns the value of thereloading
record component.final String
toString()
Returns a string representation of this record class.@Nullable Function
<ModConfig, IConfigEvent> Returns the value of theunloading
record component.
-
Field Details
-
loading
The field for theloading
record component. -
reloading
The field for thereloading
record component. -
unloading
The field for theunloading
record component.
-
-
Constructor Details
-
ConfigConfig
public ConfigConfig(Function<ModConfig, IConfigEvent> loading, Function<ModConfig, IConfigEvent> reloading, @Nullable @Nullable Function<ModConfig, IConfigEvent> unloading) Creates an instance of aConfigConfig
record class.- Parameters:
loading
- the value for theloading
record componentreloading
- the value for thereloading
record componentunloading
- the value for theunloading
record 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 theloading
record component.- Returns:
- the value of the
loading
record component
-
reloading
Returns the value of thereloading
record component.- Returns:
- the value of the
reloading
record component
-
unloading
Returns the value of theunloading
record component.- Returns:
- the value of the
unloading
record component
-