We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fc68d4 commit fb08567Copy full SHA for fb08567
src/main/java/com/comphenix/protocol/wrappers/AdventureComponentConverter.java
@@ -86,6 +86,15 @@ public static WrappedChatComponent fromComponent(Component component) {
86
return WrappedChatComponent.fromJson(SERIALIZER.serialize(component));
87
}
88
89
+ /**
90
+ * Converts an object that is instance of {@link Component} into a ProtocolLib wrapper
91
+ * @param component Component
92
+ * @return ProtocolLib wrapper
93
+ */
94
+ public static WrappedChatComponent fromComponentObject(Object component) {
95
+ return fromComponent((Component) component);
96
+ }
97
+
98
/**
99
* Converts a {@link WrappedComponentStyle} into a {@link Style}
100
* @param wrapper ProtocolLib wrapper
0 commit comments