mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 00:07:56 +01:00
66779f5c86
== AT == public net.minecraft.network.chat.HoverEvent$ItemStackInfo item public net.minecraft.network.chat.HoverEvent$ItemStackInfo count public net.minecraft.network.chat.HoverEvent$ItemStackInfo components public net.minecraft.network.chat.contents.TranslatableContents filterAllowedArguments(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult; Co-authored-by: zml <zml@stellardrift.ca> Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
11 lines
554 B
Diff
11 lines
554 B
Diff
--- a/net/minecraft/network/chat/MessageSignature.java
|
|
+++ b/net/minecraft/network/chat/MessageSignature.java
|
|
@@ -13,6 +13,7 @@
|
|
import net.minecraft.util.SignatureValidator;
|
|
|
|
public record MessageSignature(byte[] bytes) {
|
|
+ public net.kyori.adventure.chat.SignedMessage.Signature adventure() { return () -> this.bytes; } // Paper - adventure; support signed messages
|
|
public static final Codec<MessageSignature> CODEC = ExtraCodecs.BASE64_STRING.xmap(MessageSignature::new, MessageSignature::bytes);
|
|
public static final int BYTES = 256;
|
|
|