-
Notifications
You must be signed in to change notification settings - Fork 5
Supported Types
Mazen Kotb edited this page Jul 6, 2016
·
3 revisions
ConfigAPI supports a variety of types for you to use in your configuration structures, this page will be a quick and easy reference to all the types it natively supports. You can add your own adapters to the API and as a result be able to convert types which are not natively supported, you can find out on how to do that here. To put it simply, here are a list of types that are supported:
- All primitives
- java.util.Collection (includes List, Queue, and Set)
- All java.util.Collection implementations which have a one-arg (int) constructor
- java.util.Map (if implementation is specified, it will be treated as any other object)
- java.util.Date
- java.sql.Date
- java.util.uuid
- Arrays of any type
- java.util.concurrent.atomic classes
- org.bukkit.Color
- ConfigurationSections
- ItemStacks (note: a lot of metadata will be discarded, feel free to write a PR using a more sophisticated method than Bukkit serialization)
- OfflinePlayers
- org.bukkit.util.Vector
If you have any suggestions of adapters to be added, or wish to add one yourself, feel free to suggest by posting an Issue or PR accordingly!