mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Add missing impl
This commit is contained in:
1 parent
83d755e356
commit
a213ed8d9f
6 files changed
+27
-17
No files matched your search
@@ -46,6 +46,8 @@ public interface ChatChannel extends Keyed {
|
||||
|
||||
/**
|
||||
* Represents the result of a channel permission check.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
record ChannelPermissionResult(boolean permitted, Component reason) {
|
||||
|
||||
|
||||
@@ -1,16 +1,13 @@
|
||||
package net.draycia.carbon.api.events;
|
||||
|
||||
import net.draycia.carbon.api.users.CarbonPlayer;
|
||||
import net.draycia.carbon.api.util.ChatComponentRenderer;
|
||||
import net.draycia.carbon.api.util.KeyedRenderer;
|
||||
import net.kyori.adventure.audience.Audience;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.checkerframework.framework.qual.DefaultQualifier;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* {@link CancellableCarbonEvent} that's called when chat components are rendered for online players.
|
||||
|
||||
@@ -18,7 +18,7 @@ import org.checkerframework.framework.qual.DefaultQualifier;
|
||||
public interface KeyedRenderer extends Keyed, ChatComponentRenderer {
|
||||
|
||||
/**
|
||||
* Creates a new renderer with the corresponding key
|
||||
* Creates a new renderer with the corresponding key.
|
||||
*
|
||||
* @param key the renderer's key
|
||||
* @param renderer the chat renderer
|
||||
@@ -29,6 +29,11 @@ public interface KeyedRenderer extends Keyed, ChatComponentRenderer {
|
||||
return new Impl(key, renderer);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of the keyed renderer.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
record Impl(@NonNull Key key, ChatComponentRenderer renderer) implements KeyedRenderer {
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user