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

public class GlowMetaBanner extends GlowMetaItem implements org.bukkit.inventory.meta.BannerMeta
  • Field Details

    • patterns

      protected List<org.bukkit.block.banner.Pattern> 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 given ItemMeta. If that item is another BannerMeta, its patterns are copied; otherwise, the new banner is blank.
      Parameters:
      meta - the ItemMeta to copy
  • Method Details

    • getPatterns

      @NotNull public @NotNull List<org.bukkit.block.banner.Pattern> getPatterns()
      Specified by:
      getPatterns in interface org.bukkit.inventory.meta.BannerMeta
    • setPatterns

      public void setPatterns(@NotNull @NotNull List<org.bukkit.block.banner.Pattern> patterns)
      Specified by:
      setPatterns in interface org.bukkit.inventory.meta.BannerMeta
    • addPattern

      public void addPattern(@NotNull @NotNull org.bukkit.block.banner.Pattern pattern)
      Specified by:
      addPattern in interface org.bukkit.inventory.meta.BannerMeta
    • getPattern

      @NotNull public @NotNull org.bukkit.block.banner.Pattern getPattern(int i)
      Specified by:
      getPattern in interface org.bukkit.inventory.meta.BannerMeta
    • removePattern

      @NotNull public @NotNull org.bukkit.block.banner.Pattern removePattern(int i)
      Specified by:
      removePattern in interface org.bukkit.inventory.meta.BannerMeta
    • setPattern

      public void setPattern(int i, @NotNull @NotNull org.bukkit.block.banner.Pattern pattern)
      Specified by:
      setPattern in interface org.bukkit.inventory.meta.BannerMeta
    • numberOfPatterns

      public int numberOfPatterns()
      Specified by:
      numberOfPatterns in interface org.bukkit.inventory.meta.BannerMeta
    • clone

      @NotNull public @NotNull org.bukkit.inventory.meta.ItemMeta clone()
      Specified by:
      clone in interface org.bukkit.inventory.meta.ItemMeta
      Overrides:
      clone in class GlowMetaItem
    • 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 class GlowMetaItem
      Parameters:
      material - The Material.
      Returns:
      True if this ItemMeta is applicable.
    • serialize

      @NotNull public @NotNull Map<String,Object> serialize()
      Specified by:
      serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializable
      Overrides:
      serialize in class GlowMetaItem
    • getBaseColor

      public org.bukkit.DyeColor getBaseColor()
      Specified by:
      getBaseColor in interface org.bukkit.inventory.meta.BannerMeta
    • setBaseColor

      public void setBaseColor(org.bukkit.DyeColor baseColor)
      Specified by:
      setBaseColor in interface org.bukkit.inventory.meta.BannerMeta