/** * Construct a new chat component wrapper around the given NMS object. * @param handle - the NMS object. * @return The wrapper. */ public static WrappedChatComponent fromHandle(Object handle) { return new WrappedChatComponent(handle, null); }
/** * Construct a new chat component wrapper from the given JSON string. * @param json - the json. * @return The chat component wrapper. */ public static WrappedChatComponent fromJson(String json) { return new WrappedChatComponent(deserialize(json), json); }