mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Identity changes / improvements
This commit is contained in:
1 parent
00de18d936
commit
00f1a23f4f
11 files changed
+49
-37
No files matched your search
@@ -3,6 +3,7 @@ package net.draycia.carbon.api.channels;
|
||||
import net.draycia.carbon.api.users.CarbonUser;
|
||||
import net.draycia.carbon.api.users.PlayerUser;
|
||||
import net.kyori.adventure.audience.Audience;
|
||||
import net.kyori.adventure.identity.Identity;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.format.TextColor;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
@@ -36,9 +37,11 @@ public interface ChatChannel extends Audience {
|
||||
|
||||
boolean canPlayerSee(@NonNull PlayerUser target, boolean checkSpying);
|
||||
|
||||
void sendComponents(@NonNull final Map<? extends CarbonUser, Component> components);
|
||||
void sendComponents(@NonNull final Identity identity,
|
||||
@NonNull final Map<? extends CarbonUser, Component> components);
|
||||
|
||||
void sendComponentsAndLog(@NonNull final Map<? extends CarbonUser, Component> components);
|
||||
void sendComponentsAndLog(@NonNull final Identity identity,
|
||||
@NonNull final Map<? extends CarbonUser, Component> components);
|
||||
|
||||
@NonNull String name();
|
||||
|
||||
|
||||
@@ -2,10 +2,11 @@ package net.draycia.carbon.api.users;
|
||||
|
||||
import net.draycia.carbon.api.channels.ChatChannel;
|
||||
import net.kyori.adventure.audience.Audience;
|
||||
import net.kyori.adventure.identity.Identified;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
||||
public interface CarbonUser extends Audience {
|
||||
public interface CarbonUser extends Audience, Identified {
|
||||
|
||||
boolean hasPermission(@NonNull String permission);
|
||||
|
||||
|
||||
Reference in new issue
Block a user