Interface AdditionsSign
public interface AdditionsSign
The custom AdditionsPlus sign class.
Used for periodically updating signs for each player individually.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLocation
(org.bukkit.Location location) Add a sign location to the signs.Get aList
of actions to perform when interacting with this sign.getLines()
Get aList
of sign lines.List<org.bukkit.Location>
Get aList
of all signLocation
.getName()
Get the identifier of the sign.long
Get the update interval of this sign.boolean
hasLocation
(org.bukkit.Location location) Check if this sign has the specific location.void
removeLocation
(org.bukkit.Location location) Remove a sign location from the signs.void
update()
Update all sign locations.void
update
(org.bukkit.Location location) Update a certain sign location for all players.void
update
(org.bukkit.Location location, org.bukkit.entity.Player player) Update a certain sign location for one player.
-
Method Details
-
getUpdateInterval
long getUpdateInterval()Get the update interval of this sign.- Returns:
- Update interval of this sign.
-
getName
String getName()Get the identifier of the sign.- Returns:
- Identifier of the sign.
-
getLines
Get aList
of sign lines.- Returns:
List
of lines.
-
getLocations
List<org.bukkit.Location> getLocations()Get aList
of all signLocation
.- Returns:
List
of signLocation
.
-
hasLocation
boolean hasLocation(org.bukkit.Location location) Check if this sign has the specific location.- Parameters:
location
- Location to check.- Returns:
- True when found, false otherwise.
-
addLocation
void addLocation(org.bukkit.Location location) Add a sign location to the signs.- Parameters:
location
- Sign location to add.
-
removeLocation
void removeLocation(org.bukkit.Location location) Remove a sign location from the signs.- Parameters:
location
- Sign location to remove.
-
getActions
Get aList
of actions to perform when interacting with this sign.- Returns:
List
of actions to perform on interaction.
-
update
void update()Update all sign locations. -
update
void update(org.bukkit.Location location) Update a certain sign location for all players.- Parameters:
location
- Location to update.
-
update
void update(org.bukkit.Location location, org.bukkit.entity.Player player) Update a certain sign location for one player.- Parameters:
location
- Location to update.player
- Player to update for.
-