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
-
Constructor Summary
ConstructorDescriptionGlowMetaBanner
(org.bukkit.inventory.meta.ItemMeta meta) Creates an instance by copying from the givenItemMeta
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPattern
(@NotNull org.bukkit.block.banner.Pattern pattern) @NotNull org.bukkit.inventory.meta.ItemMeta
clone()
org.bukkit.DyeColor
@NotNull org.bukkit.block.banner.Pattern
getPattern
(int i) @NotNull List<org.bukkit.block.banner.Pattern>
boolean
isApplicable
(org.bukkit.Material material) Check whether this ItemMeta can be applied to the given material.int
@NotNull org.bukkit.block.banner.Pattern
removePattern
(int i) void
setBaseColor
(org.bukkit.DyeColor baseColor) void
setPattern
(int i, @NotNull org.bukkit.block.banner.Pattern pattern) void
setPatterns
(@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, writeNbtEnchants
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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, setVersion
Methods 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
- theItemMeta
to copy
-
-
Method Details
-
getPatterns
- Specified by:
getPatterns
in interfaceorg.bukkit.inventory.meta.BannerMeta
-
setPatterns
- Specified by:
setPatterns
in interfaceorg.bukkit.inventory.meta.BannerMeta
-
addPattern
public void addPattern(@NotNull @NotNull org.bukkit.block.banner.Pattern pattern) - Specified by:
addPattern
in interfaceorg.bukkit.inventory.meta.BannerMeta
-
getPattern
@NotNull public @NotNull org.bukkit.block.banner.Pattern getPattern(int i) - Specified by:
getPattern
in interfaceorg.bukkit.inventory.meta.BannerMeta
-
removePattern
@NotNull public @NotNull org.bukkit.block.banner.Pattern removePattern(int i) - Specified by:
removePattern
in interfaceorg.bukkit.inventory.meta.BannerMeta
-
setPattern
public void setPattern(int i, @NotNull @NotNull org.bukkit.block.banner.Pattern pattern) - Specified by:
setPattern
in interfaceorg.bukkit.inventory.meta.BannerMeta
-
numberOfPatterns
public int numberOfPatterns()- Specified by:
numberOfPatterns
in interfaceorg.bukkit.inventory.meta.BannerMeta
-
clone
@NotNull public @NotNull org.bukkit.inventory.meta.ItemMeta clone()- Specified by:
clone
in interfaceorg.bukkit.inventory.meta.ItemMeta
- Overrides:
clone
in classGlowMetaItem
-
isApplicable
public boolean isApplicable(org.bukkit.Material material) Description copied from class:GlowMetaItem
Check whether this ItemMeta can be applied to the given material.- Overrides:
isApplicable
in classGlowMetaItem
- Parameters:
material
- The Material.- Returns:
- True if this ItemMeta is applicable.
-
serialize
- Specified by:
serialize
in interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable
- Overrides:
serialize
in classGlowMetaItem
-
getBaseColor
public org.bukkit.DyeColor getBaseColor()- Specified by:
getBaseColor
in interfaceorg.bukkit.inventory.meta.BannerMeta
-
setBaseColor
public void setBaseColor(org.bukkit.DyeColor baseColor) - Specified by:
setBaseColor
in interfaceorg.bukkit.inventory.meta.BannerMeta
-