Class ModuleBuilder<T,V extends JacksonBukkitModule>

java.lang.Object
de.eldoria.jacksonbukkit.builder.ModuleBuilder<T,V>
Type Parameters:
T - type of builder
V - type of created module
Direct Known Subclasses:
JacksonBukkitBuilder, JacksonPaperBuilder

public abstract class ModuleBuilder<T,V extends JacksonBukkitModule> extends Object
Base class for module builder.
  • Field Details

    • hexColors

      protected boolean hexColors
      Whether hex colors should be serialized as hex or not.
  • Constructor Details

    • ModuleBuilder

      public ModuleBuilder()
  • Method Details

    • colorAsHex

      public T colorAsHex()
      Serialize Color as hex string.
      Returns:
      builder instance
    • colorAsHex

      public T colorAsHex(boolean hexColors)
      Serialize Color as hex string.
      Parameters:
      hexColors - true to serialize colors as hex.
      Returns:
      builder instance
    • build

      public abstract V build()
      Build the module
      Returns:
      new module instance