Class StaticCaption

java.lang.Object
com.plotsquared.core.configuration.caption.StaticCaption
All Implemented Interfaces:
Caption

public final class StaticCaption extends Object implements Caption
  • Method Details

    • of

      public static @NonNull StaticCaption of(@NonNull String text)
      Create a new static caption from the given text
      Parameters:
      text - Text
      Returns:
      Created caption
    • getComponent

      public @NonNull String getComponent(@NonNull LocaleHolder localeHolder)
      Description copied from interface: Caption
      Get the message that should be sent to the recipient
      Specified by:
      getComponent in interface Caption
      Parameters:
      localeHolder - Locale holder
      Returns:
      Message