Package net.glowstone.block.entity.state
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
-
Field Summary
FieldsFields inherited from class net.glowstone.block.GlowBlockState
blockData, data, type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable org.bukkit.DyeColor
getColor()
@NotNull String
getLine
(int index) @NotNull String[]
getLines()
@NotNull org.bukkit.persistence.PersistentDataContainer
boolean
@NotNull net.kyori.adventure.text.Component
line
(int i) void
line
(int i, @NotNull net.kyori.adventure.text.Component component) @NotNull List<net.kyori.adventure.text.Component>
lines()
void
setColor
(org.bukkit.DyeColor dyeColor) void
setEditable
(boolean editable) void
boolean
update
(boolean force, boolean applyPhysics) Methods inherited from class net.glowstone.block.GlowBlockState
canEqual, equals, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getMetadata, getRawData, getType, getWorld, getX, getY, getZ, hashCode, hasMetadata, isFlowed, isPlaced, removeMetadata, setBlockData, setData, setFlowed, setMetadata, setRawData, setType, toString, update, update
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bukkit.block.BlockState
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
-
Field Details
-
editable
public boolean editable
-
-
Constructor Details
-
GlowSign
Creates the instance for the given sign block.- Parameters:
block
- a sign block (wall or post)
-
-
Method Details
-
lines
- Specified by:
lines
in interfaceorg.bukkit.block.Sign
-
line
@NotNull public @NotNull net.kyori.adventure.text.Component line(int i) throws IndexOutOfBoundsException - Specified by:
line
in interfaceorg.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 interfaceorg.bukkit.block.Sign
- Throws:
IndexOutOfBoundsException
-
getLines
- Specified by:
getLines
in interfaceorg.bukkit.block.Sign
-
getLine
- Specified by:
getLine
in interfaceorg.bukkit.block.Sign
- Throws:
IndexOutOfBoundsException
-
setLine
- Specified by:
setLine
in interfaceorg.bukkit.block.Sign
- Throws:
IndexOutOfBoundsException
-
update
public boolean update(boolean force, boolean applyPhysics) - Specified by:
update
in interfaceorg.bukkit.block.BlockState
- Overrides:
update
in classGlowBlockState
-
getPersistentDataContainer
@NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPersistentDataContainer()- Specified by:
getPersistentDataContainer
in interfaceorg.bukkit.persistence.PersistentDataHolder
- Specified by:
getPersistentDataContainer
in interfaceorg.bukkit.block.TileState
-
getColor
@Nullable public @Nullable org.bukkit.DyeColor getColor()- Specified by:
getColor
in interfaceorg.bukkit.material.Colorable
-
setColor
public void setColor(org.bukkit.DyeColor dyeColor) - Specified by:
setColor
in interfaceorg.bukkit.material.Colorable
-
isEditable
public boolean isEditable()- Specified by:
isEditable
in interfaceorg.bukkit.block.Sign
-
setEditable
public void setEditable(boolean editable) - Specified by:
setEditable
in interfaceorg.bukkit.block.Sign
-