Interface GroupBanner

All Superinterfaces:
org.kingdoms.locale.provider.CascadingMessageContextProvider, org.kingdoms.data.Deserializable, org.kingdoms.locale.provider.MessageContextProvider, org.kingdoms.constants.namespace.Namespaced, org.kingdoms.data.Serializable
All Known Implementing Classes:
MinecraftBannerGroupBanner, URLGroupBanner

public interface GroupBanner extends org.kingdoms.constants.namespace.Namespaced, org.kingdoms.data.Serializable, org.kingdoms.data.Deserializable, org.kingdoms.locale.provider.CascadingMessageContextProvider
  • Method Details

    • description

      @NotNull @NotNull Messenger description()
    • asImage

      @NotNull @NotNull BufferedImage asImage()
    • getPreferredMethod

      GroupBanner.PreferredMethod getPreferredMethod()
    • urlOrCreate

      @NotNull @NotNull URL urlOrCreate(@Nullable @Nullable Path path)
      If this banner is saved in form of an image, a URL can be provided. This could be a file or even a link to a direct image file (PNG, JPEG, etc...) from a website.
      Parameters:
      path - The path to generate the image to if it doesn't exist in a form of URL.
    • getImageSize

      @Nullable @Nullable Dimension getImageSize()
    • getProvider

      @NotNull @NotNull GroupBannerProvider<? extends GroupBanner> getProvider()
    • createItem

      default org.bukkit.inventory.ItemStack createItem(org.bukkit.inventory.ItemStack item)
    • getNamespace

      default @NonNull org.kingdoms.constants.namespace.Namespace getNamespace()
      Specified by:
      getNamespace in interface org.kingdoms.constants.namespace.Namespaced
    • serialize

      default void serialize(@NotNull @NotNull SerializationContext<org.kingdoms.data.database.dataprovider.SectionableDataSetter> context)
      Specified by:
      serialize in interface org.kingdoms.data.Serializable