Class SignMock

All Implemented Interfaces:
org.bukkit.block.BlockState, org.bukkit.block.Sign, org.bukkit.block.TileState, org.bukkit.material.Colorable, org.bukkit.metadata.Metadatable, org.bukkit.persistence.PersistentDataHolder

public class SignMock extends TileStateMock implements org.bukkit.block.Sign
This ContainerMock represents a Sign.
  • Constructor Details

    • SignMock

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

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

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

    • lines

      @NotNull public @NotNull List<net.kyori.adventure.text.Component> lines()
      Specified by:
      lines in interface org.bukkit.block.Sign
    • line

      @NotNull public @NotNull net.kyori.adventure.text.Component line(int index) throws IndexOutOfBoundsException
      Specified by:
      line in interface org.bukkit.block.Sign
      Throws:
      IndexOutOfBoundsException
    • line

      public void line(int index, @NotNull @NotNull net.kyori.adventure.text.Component line) throws IndexOutOfBoundsException
      Specified by:
      line in interface org.bukkit.block.Sign
      Throws:
      IndexOutOfBoundsException
    • getLines

      @NotNull @Deprecated public @NotNull String[] getLines()
      Deprecated.
      Specified by:
      getLines in interface org.bukkit.block.Sign
    • getLine

      @Deprecated public String getLine(int index) throws IndexOutOfBoundsException
      Deprecated.
      Specified by:
      getLine in interface org.bukkit.block.Sign
      Throws:
      IndexOutOfBoundsException
    • setLine

      @Deprecated public void setLine(int index, @NotNull @NotNull String line) throws IndexOutOfBoundsException
      Deprecated.
      Specified by:
      setLine in interface org.bukkit.block.Sign
      Throws:
      IndexOutOfBoundsException
    • isEditable

      public boolean isEditable()
      Specified by:
      isEditable in interface org.bukkit.block.Sign
    • setEditable

      public void setEditable(boolean editable)
      Specified by:
      setEditable in interface org.bukkit.block.Sign
    • isGlowingText

      public boolean isGlowingText()
      Specified by:
      isGlowingText in interface org.bukkit.block.Sign
    • setGlowingText

      public void setGlowingText(boolean glowing)
      Specified by:
      setGlowingText in interface org.bukkit.block.Sign
    • getColor

      public org.bukkit.DyeColor getColor()
      Specified by:
      getColor in interface org.bukkit.material.Colorable
    • setColor

      public void setColor(org.bukkit.DyeColor color)
      Specified by:
      setColor in interface org.bukkit.material.Colorable
    • getSnapshot

      public org.bukkit.block.BlockState 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.