public class SignMock extends TileStateMock implements org.bukkit.block.Sign
ContainerMock represents a Sign.| Modifier | Constructor and Description |
|---|---|
protected |
SignMock(@NotNull org.bukkit.block.Block block) |
|
SignMock(@NotNull org.bukkit.Material material) |
protected |
SignMock(@NotNull SignMock state) |
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.DyeColor |
getColor() |
java.lang.String |
getLine(int index) |
@NotNull java.lang.String[] |
getLines() |
org.bukkit.block.BlockState |
getSnapshot()
This returns a copy of this
BlockStateMock. |
boolean |
isEditable() |
void |
setColor(org.bukkit.DyeColor color) |
void |
setEditable(boolean editable) |
void |
setLine(int index,
@NotNull java.lang.String line) |
getPersistentDataContainergetBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getMetadata, getRawData, getType, getWorld, getX, getY, getZ, hasMetadata, isPlaced, mockState, removeMetadata, setBlockData, setData, setMetadata, setRawData, setType, update, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic SignMock(@NotNull
@NotNull org.bukkit.Material material)
protected SignMock(@NotNull
@NotNull org.bukkit.block.Block block)
protected SignMock(@NotNull
@NotNull SignMock state)
@NotNull public @NotNull java.lang.String[] getLines()
getLines in interface org.bukkit.block.Signpublic java.lang.String getLine(int index)
throws java.lang.IndexOutOfBoundsException
getLine in interface org.bukkit.block.Signjava.lang.IndexOutOfBoundsExceptionpublic void setLine(int index,
@NotNull
@NotNull java.lang.String line)
throws java.lang.IndexOutOfBoundsException
setLine in interface org.bukkit.block.Signjava.lang.IndexOutOfBoundsExceptionpublic boolean isEditable()
isEditable in interface org.bukkit.block.Signpublic void setEditable(boolean editable)
setEditable in interface org.bukkit.block.Signpublic org.bukkit.DyeColor getColor()
getColor in interface org.bukkit.material.Colorablepublic void setColor(org.bukkit.DyeColor color)
setColor in interface org.bukkit.material.Colorablepublic org.bukkit.block.BlockState getSnapshot()
BlockStateMockBlockStateMock. Inheritents of this class should override this method!getSnapshot in class TileStateMockBlockStateMock.