doc
This commit is contained in:
parent
60a0bc5093
commit
7f5eca5417
1 changed files with 15 additions and 0 deletions
|
|
@ -2,6 +2,21 @@ package de.kentoj.scrowlib.player;
|
||||||
|
|
||||||
import net.kyori.adventure.audience.Audience;
|
import net.kyori.adventure.audience.Audience;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* All methods here are NON-blocking.
|
||||||
|
* NetworkPlayer represents a Player that MAY be online on any of the minecraft, wrapped
|
||||||
|
* in an {@link Audience}
|
||||||
|
* servers in the network.
|
||||||
|
*
|
||||||
|
* If the player is not online, these methods DO NOTHING.
|
||||||
|
* Most methods here do nothing even if the Player is valid(as is the nature of Audiences)
|
||||||
|
*
|
||||||
|
* this interface should be used mainly for communication(e.g sending messages, playing sounds, ...).
|
||||||
|
* For more complex operations, use the {@link MessageBroker}.
|
||||||
|
*
|
||||||
|
* @see {@link NetworkPlayerImpl}
|
||||||
|
* @see {@link MessageBroker}
|
||||||
|
*/
|
||||||
public interface NetworkPlayer extends Audience {
|
public interface NetworkPlayer extends Audience {
|
||||||
|
|
||||||
void sendToInstance(String handle);
|
void sendToInstance(String handle);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue