mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Somewhat working on Paper 1.19.3
This commit is contained in:
1 parent
67520cd2dc
commit
a45ae78f22
50 files changed
+176
-440
No files matched your search
@@ -23,7 +23,6 @@ import java.nio.file.Path;
|
||||
import java.util.UUID;
|
||||
import net.draycia.carbon.api.channels.ChannelRegistry;
|
||||
import net.draycia.carbon.api.events.CarbonEventHandler;
|
||||
import net.draycia.carbon.api.util.RenderedMessage;
|
||||
import net.kyori.adventure.audience.Audience;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.moonshine.message.IMessageRenderer;
|
||||
@@ -106,6 +105,6 @@ public interface CarbonChat {
|
||||
* @return the message renderer
|
||||
* @since 2.0.0
|
||||
*/
|
||||
<T extends Audience> IMessageRenderer<T, String, RenderedMessage, Component> messageRenderer();
|
||||
<T extends Audience> IMessageRenderer<T, String, Component, Component> messageRenderer();
|
||||
|
||||
}
|
||||
@@ -48,7 +48,7 @@ public interface ChatComponentRenderer {
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@NotNull
|
||||
RenderedMessage render(final CarbonPlayer sender,
|
||||
Component render(final CarbonPlayer sender,
|
||||
final Audience recipient,
|
||||
final Component message,
|
||||
final Component originalMessage);
|
||||
|
||||
@@ -56,7 +56,7 @@ public interface KeyedRenderer extends Keyed, ChatComponentRenderer {
|
||||
record Impl(Key key, ChatComponentRenderer renderer) implements KeyedRenderer {
|
||||
|
||||
@Override
|
||||
public @NotNull RenderedMessage render(
|
||||
public @NotNull Component render(
|
||||
final CarbonPlayer sender,
|
||||
final Audience recipient,
|
||||
final Component message,
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
/*
|
||||
* CarbonChat
|
||||
*
|
||||
* Copyright (c) 2021 Josua Parks (Vicarious)
|
||||
* Contributors
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package net.draycia.carbon.api.util;
|
||||
|
||||
import net.kyori.adventure.audience.MessageType;
|
||||
import net.kyori.adventure.text.Component;
|
||||
|
||||
/**
|
||||
* A message that's been rendered.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
public record RenderedMessage(Component component, MessageType messageType) {
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user