Package de.eldoria.jacksonbukkit
Class JacksonBukkit
java.lang.Object
com.fasterxml.jackson.databind.Module
de.eldoria.jacksonbukkit.JacksonBukkitModule
de.eldoria.jacksonbukkit.JacksonBukkit
- All Implemented Interfaces:
Versioned
Class adding support for classes implementing
ConfigurationSerializable
.
Vector
BlockVector
Color
ItemStack
PotionEffect
FireworkEffect
Pattern
BoundingBox
AttributeModifier
Location
It also provides some additional serialization for:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.Module
Module.SetupContext
-
Field Summary
Fields inherited from class de.eldoria.jacksonbukkit.JacksonBukkitModule
hexColors
-
Constructor Summary
ConstructorDescriptionCreate a new JacksonPaper module.JacksonBukkit
(boolean hexColors) Create a new JacksonBukkit module. -
Method Summary
Modifier and TypeMethodDescriptionstatic JacksonBukkitBuilder
builder()
Creates a new builder for aJacksonBukkit
moduleprotected void
registerDeserializer
(SimpleDeserializers deserializers) Register deserializers of the inheriting class.protected void
registerSerializer
(SimpleSerializers serializers) Register serializer of the inheriting classMethods inherited from class de.eldoria.jacksonbukkit.JacksonBukkitModule
addDeserializer, addSerializer, setupModule, version
Methods inherited from class com.fasterxml.jackson.databind.Module
getDependencies, getTypeId
-
Constructor Details
-
JacksonBukkit
Create a new JacksonBukkit module.- Parameters:
hexColors
- true to serialize colors as hex by default
-
JacksonBukkit
Create a new JacksonPaper module.
-
-
Method Details
-
getModuleName
- Specified by:
getModuleName
in classJacksonBukkitModule
-
registerDeserializer
Description copied from class:JacksonBukkitModule
Register deserializers of the inheriting class.Will be called after default deserializer were registered.
- Specified by:
registerDeserializer
in classJacksonBukkitModule
- Parameters:
deserializers
- deserializers
-
registerSerializer
Description copied from class:JacksonBukkitModule
Register serializer of the inheriting classWill be called after default serializer were registered.
- Specified by:
registerSerializer
in classJacksonBukkitModule
- Parameters:
serializers
- serializers
-
builder
Creates a new builder for aJacksonBukkit
module- Returns:
- builder instance
-