Package net.draycia.carbon.api.util
Interface KeyedRenderer
- All Superinterfaces:
ChatComponentRenderer,Keyed
@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
public interface KeyedRenderer
extends Keyed, ChatComponentRenderer
A
chat renderer that's identifiable by key.- Since:
- 2.0.0
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic KeyedRendererkeyedRenderer(Key key, ChatComponentRenderer renderer) Creates a new renderer with the corresponding key.Methods inherited from interface net.draycia.carbon.api.util.ChatComponentRenderer
render
-
Method Details
-
keyedRenderer
Creates a new renderer with the corresponding key.- Parameters:
key- the renderer's keyrenderer- the chat renderer- Returns:
- the keyed renderer
- Since:
- 2.0.0
-