Class MinecraftBannerGroupBanner
java.lang.Object
org.kingdoms.constants.group.flag.MinecraftBannerGroupBanner
- All Implemented Interfaces:
GroupBanner,org.kingdoms.constants.namespace.Namespaced,org.kingdoms.data.Deserializable,org.kingdoms.data.Serializable,org.kingdoms.locale.provider.CascadingMessageContextProvider,org.kingdoms.locale.provider.MessageContextProvider
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.kingdoms.constants.group.flag.GroupBanner
GroupBanner.PreferredMethod -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessageContextEdits(@NotNull MessagePlaceholderProvider context) asImage()org.bukkit.inventory.ItemStackcreateItem(org.bukkit.inventory.ItemStack item) voiddeserialize(@NotNull DeserializationContext<org.kingdoms.data.database.dataprovider.SectionableDataGetter> context) @Nullable Dimensioncom.cryptomorin.xseries.XMaterialList<org.bukkit.block.banner.Pattern> voidserialize(@NotNull SerializationContext<org.kingdoms.data.database.dataprovider.SectionableDataSetter> context) voidsetMaterial(com.cryptomorin.xseries.XMaterial material) voidsetPatterns(List<org.bukkit.block.banner.Pattern> patterns) urlOrCreate(Path path) If this banner is saved in form of an image, a URL can be provided.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kingdoms.locale.provider.CascadingMessageContextProvider
getMessageContextMethods inherited from interface org.kingdoms.constants.group.flag.GroupBanner
getNamespace
-
Field Details
-
PROVIDER
-
-
Constructor Details
-
MinecraftBannerGroupBanner
public MinecraftBannerGroupBanner()
-
-
Method Details
-
setPatterns
-
setMaterial
public void setMaterial(com.cryptomorin.xseries.XMaterial material) -
getMaterial
public com.cryptomorin.xseries.XMaterial getMaterial() -
getPatterns
-
description
- Specified by:
descriptionin interfaceGroupBanner
-
asImage
- Specified by:
asImagein interfaceGroupBanner
-
urlOrCreate
Description copied from interface:GroupBannerIf 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.- Specified by:
urlOrCreatein interfaceGroupBanner- Parameters:
path- The path to generate the image to if it doesn't exist in a form of URL.
-
getImageSize
- Specified by:
getImageSizein interfaceGroupBanner
-
getPreferredMethod
- Specified by:
getPreferredMethodin interfaceGroupBanner
-
createItem
public org.bukkit.inventory.ItemStack createItem(org.bukkit.inventory.ItemStack item) - Specified by:
createItemin interfaceGroupBanner
-
getProvider
- Specified by:
getProviderin interfaceGroupBanner
-
deserialize
public void deserialize(@NotNull @NotNull DeserializationContext<org.kingdoms.data.database.dataprovider.SectionableDataGetter> context) - Specified by:
deserializein interfaceorg.kingdoms.data.Deserializable
-
serialize
public void serialize(@NotNull @NotNull SerializationContext<org.kingdoms.data.database.dataprovider.SectionableDataSetter> context) - Specified by:
serializein interfaceGroupBanner- Specified by:
serializein interfaceorg.kingdoms.data.Serializable
-
addMessageContextEdits
- Specified by:
addMessageContextEditsin interfaceorg.kingdoms.locale.provider.CascadingMessageContextProvider
-