Package net.glowstone.inventory
Class GlowMetaBanner
java.lang.Object
net.glowstone.inventory.GlowMetaItem
net.glowstone.inventory.GlowMetaBanner
- All Implemented Interfaces:
Cloneable,org.bukkit.configuration.serialization.ConfigurationSerializable,org.bukkit.inventory.meta.BannerMeta,org.bukkit.inventory.meta.ItemMeta,org.bukkit.persistence.PersistentDataHolder
- Direct Known Subclasses:
GlowMetaShield
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGlowMetaBanner(org.bukkit.inventory.meta.ItemMeta meta) Creates an instance by copying from the givenItemMeta. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPattern(@NotNull org.bukkit.block.banner.Pattern pattern) @NotNull org.bukkit.inventory.meta.ItemMetaclone()org.bukkit.DyeColor@NotNull org.bukkit.block.banner.PatterngetPattern(int i) @NotNull List<org.bukkit.block.banner.Pattern>booleanisApplicable(org.bukkit.Material material) Check whether this ItemMeta can be applied to the given material.int@NotNull org.bukkit.block.banner.PatternremovePattern(int i) voidsetBaseColor(org.bukkit.DyeColor baseColor) voidsetPattern(int i, @NotNull org.bukkit.block.banner.Pattern pattern) voidsetPatterns(@NotNull List<org.bukkit.block.banner.Pattern> patterns) Methods inherited from class net.glowstone.inventory.GlowMetaItem
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPersistentDataContainer, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, lore, lore, readNbtEnchants, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, serializeEnchants, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersion, toString, writeNbtEnchantsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Field Details
-
patterns
-
baseColor
protected org.bukkit.DyeColor baseColor
-
-
Constructor Details
-
GlowMetaBanner
public GlowMetaBanner(org.bukkit.inventory.meta.ItemMeta meta) Creates an instance by copying from the givenItemMeta. If that item is anotherBannerMeta, its patterns are copied; otherwise, the new banner is blank.- Parameters:
meta- theItemMetato copy
-
-
Method Details
-
getPatterns
- Specified by:
getPatternsin interfaceorg.bukkit.inventory.meta.BannerMeta
-
setPatterns
- Specified by:
setPatternsin interfaceorg.bukkit.inventory.meta.BannerMeta
-
addPattern
public void addPattern(@NotNull @NotNull org.bukkit.block.banner.Pattern pattern) - Specified by:
addPatternin interfaceorg.bukkit.inventory.meta.BannerMeta
-
getPattern
@NotNull public @NotNull org.bukkit.block.banner.Pattern getPattern(int i) - Specified by:
getPatternin interfaceorg.bukkit.inventory.meta.BannerMeta
-
removePattern
@NotNull public @NotNull org.bukkit.block.banner.Pattern removePattern(int i) - Specified by:
removePatternin interfaceorg.bukkit.inventory.meta.BannerMeta
-
setPattern
public void setPattern(int i, @NotNull @NotNull org.bukkit.block.banner.Pattern pattern) - Specified by:
setPatternin interfaceorg.bukkit.inventory.meta.BannerMeta
-
numberOfPatterns
public int numberOfPatterns()- Specified by:
numberOfPatternsin interfaceorg.bukkit.inventory.meta.BannerMeta
-
clone
@NotNull public @NotNull org.bukkit.inventory.meta.ItemMeta clone()- Specified by:
clonein interfaceorg.bukkit.inventory.meta.ItemMeta- Overrides:
clonein classGlowMetaItem
-
isApplicable
public boolean isApplicable(org.bukkit.Material material) Description copied from class:GlowMetaItemCheck whether this ItemMeta can be applied to the given material.- Overrides:
isApplicablein classGlowMetaItem- Parameters:
material- The Material.- Returns:
- True if this ItemMeta is applicable.
-
serialize
- Specified by:
serializein interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable- Overrides:
serializein classGlowMetaItem
-
getBaseColor
public org.bukkit.DyeColor getBaseColor()- Specified by:
getBaseColorin interfaceorg.bukkit.inventory.meta.BannerMeta
-
setBaseColor
public void setBaseColor(org.bukkit.DyeColor baseColor) - Specified by:
setBaseColorin interfaceorg.bukkit.inventory.meta.BannerMeta
-