Class GlowSign

java.lang.Object
net.glowstone.block.GlowBlockState
net.glowstone.block.entity.state.GlowSign
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 GlowSign extends GlowBlockState implements org.bukkit.block.Sign
  • Field Details

    • editable

      public boolean editable
  • Constructor Details

    • GlowSign

      public GlowSign(GlowBlock block)
      Creates the instance for the given sign block.
      Parameters:
      block - a sign block (wall or post)
  • 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 i) throws IndexOutOfBoundsException
      Specified by:
      line in interface org.bukkit.block.Sign
      Throws:
      IndexOutOfBoundsException
    • line

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

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

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

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

      public boolean update(boolean force, boolean applyPhysics)
      Specified by:
      update in interface org.bukkit.block.BlockState
      Overrides:
      update in class GlowBlockState
    • getPersistentDataContainer

      @NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPersistentDataContainer()
      Specified by:
      getPersistentDataContainer in interface org.bukkit.persistence.PersistentDataHolder
      Specified by:
      getPersistentDataContainer in interface org.bukkit.block.TileState
    • getColor

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

      public void setColor(org.bukkit.DyeColor dyeColor)
      Specified by:
      setColor in interface org.bukkit.material.Colorable
    • 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