mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-31 21:48:08 +01:00
More explanations for JsonMessage#toString
This commit is contained in:
parent
618c2b5b17
commit
ddc5da4415
@ -65,7 +65,7 @@ public class BossBar implements Viewable {
|
|||||||
if (playerBossBars != null && playerBossBars.size() >= MAX_BOSSBAR) {
|
if (playerBossBars != null && playerBossBars.size() >= MAX_BOSSBAR) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Add to the map
|
|
||||||
addToPlayer(player);
|
addToPlayer(player);
|
||||||
return viewers.add(player);
|
return viewers.add(player);
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,7 @@ public abstract class JsonMessage {
|
|||||||
* Sent directly to the client.
|
* Sent directly to the client.
|
||||||
*
|
*
|
||||||
* @return the json representation of the message
|
* @return the json representation of the message
|
||||||
|
* @see #toString()
|
||||||
*/
|
*/
|
||||||
public abstract JsonObject getJsonObject();
|
public abstract JsonObject getJsonObject();
|
||||||
|
|
||||||
@ -35,9 +36,12 @@ public abstract class JsonMessage {
|
|||||||
/**
|
/**
|
||||||
* Gets the Json representation.
|
* Gets the Json representation.
|
||||||
* <p>
|
* <p>
|
||||||
* Used to send messages.
|
* Will check of the current cached compiled json is up-to-date in order to prevent
|
||||||
|
* re-parsing the message every time.
|
||||||
*
|
*
|
||||||
* @return the string json representation
|
* @return the string json representation
|
||||||
|
* @see #getJsonObject()
|
||||||
|
* @see #refreshUpdate()
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
Loading…
Reference in New Issue
Block a user