Class PaperAdventure
java.lang.Object
org.geysermc.geyser.platform.spigot.PaperAdventure
Utility class for converting our shaded Adventure into the Adventure bundled in Paper.
Code mostly taken from https://github.com/KyoriPowered/adventure-platform/blob/94d5821f2e755170f42bd8a5fe1d5bf6f66d04ad/platform-bukkit/src/main/java/net/kyori/adventure/platform/bukkit/PaperFacet.java#L46
and the MinecraftReflection class.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic voidsendMessage(org.bukkit.command.CommandSender sender, net.kyori.adventure.text.Component component)static ObjecttoNativeComponent(net.kyori.adventure.text.Component component)
-
Method Details
-
toNativeComponent
-
sendMessage
public static void sendMessage(org.bukkit.command.CommandSender sender, net.kyori.adventure.text.Component component) -
canSendMessageUsingComponent
public static boolean canSendMessageUsingComponent()
-