mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Add basic player abstractions
This commit is contained in:
1 parent
28ffa3d3e9
commit
0b3245ef0c
4 files changed
+150
-2
No files matched your search
@@ -4,7 +4,18 @@ import net.kyori.adventure.audience.Audience;
|
||||
import net.kyori.adventure.identity.Identified;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public interface CarbonPlayer extends Audience, Identified {
|
||||
|
||||
@NonNull String username();
|
||||
|
||||
@NonNull Component displayName();
|
||||
|
||||
void displayName(final @Nullable Component displayName);
|
||||
|
||||
@NonNull UUID uuid();
|
||||
|
||||
public abstract class CarbonPlayer implements Audience, Identified {
|
||||
public abstract @NonNull Component displayName();
|
||||
}
|
||||
Reference in new issue
Block a user