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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionConfigConfig(Function<ModConfig, IConfigEvent> loading, Function<ModConfig, IConfigEvent> reloading, @Nullable Function<ModConfig, IConfigEvent> unloading) Creates an instance of aConfigConfigrecord class.
- 
Method SummaryModifier 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- 
loadingThe field for theloadingrecord component.
- 
reloadingThe field for thereloadingrecord component.
- 
unloadingThe field for theunloadingrecord component.
 
- 
- 
Constructor Details- 
ConfigConfigpublic 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 the- loadingrecord component
- reloading- the value for the- reloadingrecord component
- unloading- the value for the- unloadingrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
loadingReturns the value of theloadingrecord component.- Returns:
- the value of the loadingrecord component
 
- 
reloadingReturns the value of thereloadingrecord component.- Returns:
- the value of the reloadingrecord component
 
- 
unloadingReturns the value of theunloadingrecord component.- Returns:
- the value of the unloadingrecord component
 
 
-