Package com.hazebyte.crate.api.crate
Interface Message
-
public interface Message
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
add(String message)
Adds a string to the message.List<String>
get()
Returns the list of messages;List<String>
get(org.bukkit.entity.Player player, Object... objects)
Returns the list of messages formatted for the player.String
remove(int index)
boolean
remove(String message)
Removes a string from the message.boolean
run(org.bukkit.entity.Player player, Object... objects)
Runs the message for the given player.String
serialize()
void
set(List<String> messages)
Sets the list of messages;
-
-
-
Method Detail
-
set
void set(List<String> messages)
Sets the list of messages;- Parameters:
messages
- the list of messages.
-
get
List<String> get(org.bukkit.entity.Player player, Object... objects)
Returns the list of messages formatted for the player.- Parameters:
player
- The player to format the message for.objects
- List of objects that may be passed.- Returns:
- the list of messages.
-
add
boolean add(String message)
Adds a string to the message.- Parameters:
message
- The message string to add.- Returns:
- true if the message is appended.
-
remove
boolean remove(String message)
Removes a string from the message.- Parameters:
message
- The message string to remove.- Returns:
- true if the message is removed.
-
remove
String remove(int index)
-
run
boolean run(org.bukkit.entity.Player player, Object... objects)
Runs the message for the given player.- Parameters:
player
- the player who receives the messageobjects
- pass the objects to format.- Returns:
- true if the player received a message.
-
serialize
String serialize()
-
-