Class PaperAdventure

java.lang.Object
org.geysermc.geyser.platform.spigot.PaperAdventure

public final class PaperAdventure extends Object
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 Details

    • toNativeComponent

      public static Object toNativeComponent(net.kyori.adventure.text.Component component)
    • sendMessage

      public static void sendMessage(org.bukkit.command.CommandSender sender, net.kyori.adventure.text.Component component)
    • canSendMessageUsingComponent

      public static boolean canSendMessageUsingComponent()