Package de.eldoria.jacksonbukkit.builder
Class JacksonPaperBuilder
java.lang.Object
de.eldoria.jacksonbukkit.builder.ModuleBuilder<JacksonPaperBuilder,JacksonPaper>
de.eldoria.jacksonbukkit.builder.JacksonPaperBuilder
Class to build a
JacksonPaper
module.-
Field Summary
Fields inherited from class de.eldoria.jacksonbukkit.builder.ModuleBuilder
hexColors
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the moduleUse legacy serializer which serializes the item stack as a map viaConfigurationSerializable
.Use mini message for deserialization.withMiniMessages
(net.kyori.adventure.text.minimessage.MiniMessage miniMessage) Supply a custom mini message instance to the module.Methods inherited from class de.eldoria.jacksonbukkit.builder.ModuleBuilder
colorAsHex, colorAsHex
-
Constructor Details
-
JacksonPaperBuilder
public JacksonPaperBuilder()Create a new builder instance
-
-
Method Details
-
useLegacyItemStackSerialization
Use legacy serializer which serializes the item stack as a map viaConfigurationSerializable
.This does not work if the plugin is a
PaperPlugin
- Returns:
- builder instance
-
withMiniMessages
public JacksonPaperBuilder withMiniMessages(net.kyori.adventure.text.minimessage.MiniMessage miniMessage) Supply a custom mini message instance to the module.- Parameters:
miniMessage
- mini message instance. Providing null will disable component serialization.- Returns:
- builder instance
-
withMiniMessages
Use mini message for deserialization. This is the default behaviour when mini messages is present.- Returns:
- builder instance
-
build
Description copied from class:ModuleBuilder
Build the module- Specified by:
build
in classModuleBuilder<JacksonPaperBuilder,
JacksonPaper> - Returns:
- new module instance
-