Package com.comphenix.protocol.wrappers
Class AdventureComponentConverter
java.lang.Object
com.comphenix.protocol.wrappers.AdventureComponentConverter
Utility class for converting between the Adventure API Component and ProtocolLib's wrapper
Note: The Adventure API Component is not included in CraftBukkit, Bukkit or Spigot and but is present in PaperMC.
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.kyori.adventure.text.Componentstatic WrappedChatComponentfromComponent(net.kyori.adventure.text.Component component)Converts aComponentinto a ProtocolLib wrapperstatic net.kyori.adventure.text.ComponentfromWrapper(WrappedChatComponent wrapper)Converts aWrappedChatComponentinto aComponentstatic Class<?>
-
Method Details
-
fromWrapper
Converts aWrappedChatComponentinto aComponent- Parameters:
wrapper- ProtocolLib wrapper- Returns:
- Component
-
fromComponent
Converts aComponentinto a ProtocolLib wrapper- Parameters:
components- Component- Returns:
- ProtocolLib wrapper
-
getComponentClass
-
clone
-