Package com.andrei1058.spigot.signapi
Class SpigotSignAPI
java.lang.Object
com.andrei1058.spigot.signapi.SpigotSignAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddSign(PacketSign sign) Add a sign to the list.createSign(org.bukkit.block.Block block) Create a sign at the target block.intgetDelay()Get packets delay.getSigns()Unmodifiable signs list.booleanremoveSign(PacketSign sign) Remove a sign from the list.voidsetDelay(int delay) Change packets delay.
-
Constructor Details
-
SpigotSignAPI
public SpigotSignAPI(org.bukkit.plugin.Plugin client) Initialize the signs lib. This will register a listener on your plugin so it will handlePacketSign.SignClickEvent.
-
-
Method Details
-
createSign
Create a sign at the target block. The block must be already a sign-block.- Returns:
- new
PacketSigninstance.
-
getSigns
Unmodifiable signs list.- Returns:
- unmodifiable signs list.
-
addSign
Add a sign to the list.- Parameters:
sign- - sign to be added.- Returns:
true(as specified byCollection.add(Object))
-
removeSign
Remove a sign from the list.- Parameters:
sign- - sign to be removed.- Returns:
true(as specified byCollection.remove(Object))
-
getDelay
public int getDelay()Get packets delay. This is usually used to send packets when a player joins or teleports.- Returns:
- packets delay.
-
setDelay
public void setDelay(int delay) Change packets delay. This is usually used to send packets when a player joins or teleports.
-