Class BannerMock

All Implemented Interfaces:
org.bukkit.block.Banner, org.bukkit.block.BlockState, org.bukkit.block.TileState, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.persistence.PersistentDataHolder

public class BannerMock extends TileStateMock implements org.bukkit.block.Banner
  • Constructor Details

    • BannerMock

      public BannerMock(@NotNull @NotNull org.bukkit.Material material)
    • BannerMock

      protected BannerMock(@NotNull @NotNull org.bukkit.block.Block block)
    • BannerMock

      protected BannerMock(@NotNull @NotNull BannerMock state)
  • Method Details

    • getSnapshot

      @NotNull public @NotNull BannerMock getSnapshot()
      Description copied from class: BlockStateMock
      This returns a copy of this BlockStateMock. Inheritents of this class should override this method!
      Specified by:
      getSnapshot in class TileStateMock
      Returns:
      A snapshot of this BlockStateMock.
    • getBaseColor

      @NotNull public @NotNull org.bukkit.DyeColor getBaseColor()
      Specified by:
      getBaseColor in interface org.bukkit.block.Banner
    • setBaseColor

      public void setBaseColor(@NotNull @NotNull org.bukkit.DyeColor color)
      Specified by:
      setBaseColor in interface org.bukkit.block.Banner
    • getPatterns

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

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

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

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

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

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

      public int numberOfPatterns()
      Specified by:
      numberOfPatterns in interface org.bukkit.block.Banner
    • customName

      @Nullable public @Nullable net.kyori.adventure.text.Component customName()
      Specified by:
      customName in interface org.bukkit.Nameable
    • customName

      public void customName(@Nullable @Nullable net.kyori.adventure.text.Component customName)
      Specified by:
      customName in interface org.bukkit.Nameable
    • getCustomName

      @Nullable public @Nullable String getCustomName()
      Specified by:
      getCustomName in interface org.bukkit.Nameable
    • setCustomName

      public void setCustomName(@Nullable @Nullable String name)
      Specified by:
      setCustomName in interface org.bukkit.Nameable