Class JacksonPaperBuilder


public class JacksonPaperBuilder extends ModuleBuilder<JacksonPaperBuilder,JacksonPaper>
Class to build a JacksonPaper module.
  • Constructor Details

    • JacksonPaperBuilder

      public JacksonPaperBuilder()
      Create a new builder instance
  • Method Details

    • useLegacyItemStackSerialization

      public JacksonPaperBuilder useLegacyItemStackSerialization()
      Use legacy serializer which serializes the item stack as a map via ConfigurationSerializable.

      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

      public JacksonPaperBuilder withMiniMessages()
      Use mini message for deserialization. This is the default behaviour when mini messages is present.
      Returns:
      builder instance
    • build

      public JacksonPaper build()
      Description copied from class: ModuleBuilder
      Build the module
      Specified by:
      build in class ModuleBuilder<JacksonPaperBuilder,JacksonPaper>
      Returns:
      new module instance