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.DyeColorgetColor()@NotNull StringgetLine(int index) @NotNull String[]getLines()@NotNull org.bukkit.persistence.PersistentDataContainerboolean@NotNull net.kyori.adventure.text.Componentline(int i) voidline(int i, @NotNull net.kyori.adventure.text.Component component) @NotNull List<net.kyori.adventure.text.Component>lines()voidsetColor(org.bukkit.DyeColor dyeColor) voidsetEditable(boolean editable) voidbooleanupdate(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, updateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, updateMethods 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:
linesin interfaceorg.bukkit.block.Sign
-
line
@NotNull public @NotNull net.kyori.adventure.text.Component line(int i) throws IndexOutOfBoundsException - Specified by:
linein interfaceorg.bukkit.block.Sign- Throws:
IndexOutOfBoundsException
-
line
public void line(int i, @NotNull @NotNull net.kyori.adventure.text.Component component) throws IndexOutOfBoundsException - Specified by:
linein interfaceorg.bukkit.block.Sign- Throws:
IndexOutOfBoundsException
-
getLines
- Specified by:
getLinesin interfaceorg.bukkit.block.Sign
-
getLine
- Specified by:
getLinein interfaceorg.bukkit.block.Sign- Throws:
IndexOutOfBoundsException
-
setLine
- Specified by:
setLinein interfaceorg.bukkit.block.Sign- Throws:
IndexOutOfBoundsException
-
update
public boolean update(boolean force, boolean applyPhysics) - Specified by:
updatein interfaceorg.bukkit.block.BlockState- Overrides:
updatein classGlowBlockState
-
getPersistentDataContainer
@NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPersistentDataContainer()- Specified by:
getPersistentDataContainerin interfaceorg.bukkit.persistence.PersistentDataHolder- Specified by:
getPersistentDataContainerin interfaceorg.bukkit.block.TileState
-
getColor
@Nullable public @Nullable org.bukkit.DyeColor getColor()- Specified by:
getColorin interfaceorg.bukkit.material.Colorable
-
setColor
public void setColor(org.bukkit.DyeColor dyeColor) - Specified by:
setColorin interfaceorg.bukkit.material.Colorable
-
isEditable
public boolean isEditable()- Specified by:
isEditablein interfaceorg.bukkit.block.Sign
-
setEditable
public void setEditable(boolean editable) - Specified by:
setEditablein interfaceorg.bukkit.block.Sign
-