Class BukkitConverter

java.lang.Object
me.hsgamer.hscore.bukkit.config.converter.BukkitConverter
All Implemented Interfaces:
Converter

public class BukkitConverter extends Object implements Converter
The Converter for Bukkit's ConfigurationSerializable
  • Constructor Details

    • BukkitConverter

      public BukkitConverter(Class<?> type)
  • Method Details

    • convert

      public Object convert(Object raw)
      Description copied from interface: Converter
      Convert the raw value from the config file to the final value for the field
      Specified by:
      convert in interface Converter
      Parameters:
      raw - the raw value
      Returns:
      the final value
    • convertToRaw

      public Object convertToRaw(Object value)
      Description copied from interface: Converter
      Convert the final value from the field to the raw value for the config file
      Specified by:
      convertToRaw in interface Converter
      Parameters:
      value - the final value
      Returns:
      the raw value