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)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate Function<ModConfig,IConfigEvent>
The field for theloading
record component.private Function<ModConfig,IConfigEvent>
The field for thereloading
record component. -
Constructor Summary
ConstructorDescriptionConfigConfig(Function<ModConfig,IConfigEvent> loading, Function<ModConfig,IConfigEvent> reloading)
Creates an instance of aConfigConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.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.toString()
Returns a string representation of this record class.
-
Field Details
-
loading
The field for theloading
record component. -
reloading
The field for thereloading
record component.
-
-
Constructor Details
-
ConfigConfig
public ConfigConfig(Function<ModConfig,IConfigEvent> loading, Function<ModConfig,IConfigEvent> reloading)Creates an instance of aConfigConfig
record class.- Parameters:
loading
- the value for theloading
record componentreloading
- the value for thereloading
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
-