Class DefaultConfigParser
java.lang.Object
com.ultikits.ultitools.interfaces.impl.pasers.ConfigParser<Object>
com.ultikits.ultitools.interfaces.impl.pasers.DefaultConfigParser
- All Implemented Interfaces:
ObjectConfigSerializer<Object>,Parser<Object>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParses a raw object into the target type.org.bukkit.configuration.MemorySectionserializeToMemorySection(Object object) Serializes an object to a Bukkit MemorySection.Methods inherited from class com.ultikits.ultitools.interfaces.impl.pasers.ConfigParser
serialize
-
Constructor Details
-
DefaultConfigParser
public DefaultConfigParser()
-
-
Method Details
-
parse
Description copied from interface:ParserParses a raw object into the target type.
将原始对象解析为目标类型。- Parameters:
object- the raw object to parse (typically from configuration) 要解析的原始对象(通常来自配置)- Returns:
- the parsed object of type T 解析后的 T 类型对象
-
serializeToMemorySection
Description copied from interface:ObjectConfigSerializerSerializes an object to a Bukkit MemorySection.
将对象序列化为 Bukkit MemorySection。- Parameters:
object- the object to serialize / 要序列化的对象- Returns:
- the MemorySection containing the serialized data 包含序列化数据的 MemorySection
-