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>

public class DefaultConfigParser extends ConfigParser<Object>
  • Constructor Details

    • DefaultConfigParser

      public DefaultConfigParser()
  • Method Details

    • parse

      public Object parse(Object object)
      Description copied from interface: Parser
      Parses 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

      public org.bukkit.configuration.MemorySection serializeToMemorySection(Object object)
      Description copied from interface: ObjectConfigSerializer
      Serializes an object to a Bukkit MemorySection.
      将对象序列化为 Bukkit MemorySection。
      Parameters:
      object - the object to serialize / 要序列化的对象
      Returns:
      the MemorySection containing the serialized data 包含序列化数据的 MemorySection