This commit is contained in:
kento2 2026-07-07 08:41:46 +02:00
parent 60a0bc5093
commit 7f5eca5417

View file

@ -2,6 +2,21 @@ package de.kentoj.scrowlib.player;
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 {
void sendToInstance(String handle);