记录类 ConfigFileTypeHandler.ConfigWatcher
java.lang.Object
java.lang.Record
net.minecraftforge.fml.config.ConfigFileTypeHandler.ConfigWatcher
- 所有已实现的接口:
Runnable
private static record ConfigFileTypeHandler.ConfigWatcher(ModConfig modConfig, com.electronwill.nightconfig.core.file.CommentedFileConfig commentedFileConfig, ClassLoader realClassLoader)
extends Record
implements Runnable
-
字段概要
字段修饰符和类型字段说明private final com.electronwill.nightconfig.core.file.CommentedFileConfig
commentedFileConfig
记录组件的字段。private final ModConfig
modConfig
记录组件的字段。private final ClassLoader
realClassLoader
记录组件的字段。 -
构造器概要
构造器限定符构造器说明private
ConfigWatcher
(ModConfig modConfig, com.electronwill.nightconfig.core.file.CommentedFileConfig commentedFileConfig, ClassLoader realClassLoader) 创建ConfigWatcher
记录类的实例。 -
方法概要
-
字段详细资料
-
modConfig
modConfig
记录组件的字段。 -
commentedFileConfig
private final com.electronwill.nightconfig.core.file.CommentedFileConfig commentedFileConfigcommentedFileConfig
记录组件的字段。 -
realClassLoader
realClassLoader
记录组件的字段。
-
-
构造器详细资料
-
ConfigWatcher
private ConfigWatcher(ModConfig modConfig, com.electronwill.nightconfig.core.file.CommentedFileConfig commentedFileConfig, ClassLoader realClassLoader) 创建ConfigWatcher
记录类的实例。- 参数:
modConfig
-modConfig
记录组件的值commentedFileConfig
-commentedFileConfig
记录组件的值realClassLoader
-realClassLoader
记录组件的值
-
-
方法详细资料
-
run
public void run() -
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录类中的所有组件都使用Objects::equals(Object,Object)
进行比较。 -
modConfig
返回modConfig
记录组件的值。- 返回:
modConfig
记录组件的值
-
commentedFileConfig
public com.electronwill.nightconfig.core.file.CommentedFileConfig commentedFileConfig()返回commentedFileConfig
记录组件的值。- 返回:
commentedFileConfig
记录组件的值
-
realClassLoader
返回realClassLoader
记录组件的值。- 返回:
realClassLoader
记录组件的值
-