private List<String> getInputForLegacyVersions(PacketContainer container) {
        WrappedChatComponent[] components = container.getChatComponentArrays().read(0);

        return Arrays.stream(components)
                .map(ComponentConverter::fromWrapper)
                .map(BaseComponent::toPlainText)
                .collect(Collectors.toList());
    }
Implementation of {@link SignPromptFactory} using ProtocolLib.
helper/src/main/java/me/lucko/helper/signprompt/PacketSignPromptFactory.java