Class SignMock
java.lang.Object
be.seeseemelk.mockbukkit.block.state.BlockStateMock
be.seeseemelk.mockbukkit.block.state.TileStateMock
be.seeseemelk.mockbukkit.block.state.SignMock
- All Implemented Interfaces:
PersistentDataViewHolder,BlockState,Sign,TileState,Colorable,Metadatable,PersistentDataHolder
Mock implementation of a
Sign.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs a newSignMockby cloning the data from an existing one.protected -
Method Summary
Modifier and TypeMethodDescription@Nullable Player@Nullable UUID@NotNull DyeColorgetColor()@NotNull SidegetInteractableSideFor(double x, double z) @NotNull StringgetLine(int index) Deprecated.@NotNull String @NotNull []getLines()Deprecated.@NotNull SignSide@NotNull BlockStateThis returns a copy of thisBlockStateMock.@NotNull SignSidegetTargetSide(@NotNull Player player) booleanbooleanbooleanisWaxed()@NotNull net.kyori.adventure.text.Componentline(int index) voidline(int index, @NotNull net.kyori.adventure.text.Component line) @NotNull List<net.kyori.adventure.text.Component> lines()voidsetAllowedEditorUniqueId(@Nullable UUID uuid) voidvoidsetEditable(boolean editable) voidsetGlowingText(boolean glowing) voidDeprecated.voidsetWaxed(boolean waxed) Methods inherited from class be.seeseemelk.mockbukkit.block.state.TileStateMock
getPersistentDataContainer, isSnapshotMethods inherited from class be.seeseemelk.mockbukkit.block.state.BlockStateMock
checkType, checkType, checkType, checkType, copy, copy, equals, getBlock, getBlockData, getChunk, getData, getDrops, getDrops, getDrops, getLightLevel, getLocation, getLocation, getMetadata, getRawData, getType, getWorld, getX, getY, getZ, hashCode, hasMetadata, isCollidable, isPlaced, mockState, mockState, removeMetadata, setBlockData, setData, setMetadata, setRawData, setType, update, update, updateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.block.BlockState
copy, copy, getBlock, getBlockData, getChunk, getData, getDrops, getDrops, getDrops, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isCollidable, isPlaced, setBlockData, setData, setRawData, setType, update, update, updateMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.block.Sign
getInteractableSideFor, getInteractableSideForMethods inherited from interface org.bukkit.block.TileState
getPersistentDataContainer, isSnapshot
-
Constructor Details
-
SignMock
- Parameters:
material- The material this state is for.
-
SignMock
- Parameters:
block- The block this state is for.
-
SignMock
Constructs a newSignMockby cloning the data from an existing one.- Parameters:
state- The state to clone.
-
-
Method Details
-
lines
-
line
@NotNull public @NotNull net.kyori.adventure.text.Component line(int index) throws IndexOutOfBoundsException - Specified by:
linein interfaceSign- Throws:
IndexOutOfBoundsException
-
line
public void line(int index, @NotNull @NotNull net.kyori.adventure.text.Component line) throws IndexOutOfBoundsException - Specified by:
linein interfaceSign- Throws:
IndexOutOfBoundsException
-
getLines
Deprecated. -
getLine
@Deprecated(since="1.16") @NotNull public @NotNull String getLine(int index) throws IndexOutOfBoundsException Deprecated.- Specified by:
getLinein interfaceSign- Throws:
IndexOutOfBoundsException
-
setLine
@Deprecated(since="1.16") public void setLine(int index, String line) throws IndexOutOfBoundsException Deprecated.- Specified by:
setLinein interfaceSign- Throws:
IndexOutOfBoundsException
-
isEditable
public boolean isEditable()- Specified by:
isEditablein interfaceSign
-
setEditable
public void setEditable(boolean editable) - Specified by:
setEditablein interfaceSign
-
isGlowingText
public boolean isGlowingText()- Specified by:
isGlowingTextin interfaceSign
-
setGlowingText
public void setGlowingText(boolean glowing) - Specified by:
setGlowingTextin interfaceSign
-
getColor
-
setColor
-
isWaxed
public boolean isWaxed() -
setWaxed
public void setWaxed(boolean waxed) -
getSide
-
getTargetSide
- Specified by:
getTargetSidein interfaceSign
-
getAllowedEditor
- Specified by:
getAllowedEditorin interfaceSign
-
getAllowedEditorUniqueId
- Specified by:
getAllowedEditorUniqueIdin interfaceSign
-
setAllowedEditorUniqueId
- Specified by:
setAllowedEditorUniqueIdin interfaceSign
-
getInteractableSideFor
- Specified by:
getInteractableSideForin interfaceSign
-
getSnapshot
Description copied from class:BlockStateMockThis returns a copy of thisBlockStateMock. Inheritents of this class should override this method!- Specified by:
getSnapshotin classTileStateMock- Returns:
- A snapshot of this
BlockStateMock.
-