{"id":16375758,"url":"https://github.com/vankka/enhancedlegacytext","last_synced_at":"2025-03-21T01:32:17.789Z","repository":{"id":137196219,"uuid":"387263420","full_name":"Vankka/EnhancedLegacyText","owner":"Vankka","description":"An alternative input format for Adventure","archived":false,"fork":false,"pushed_at":"2024-07-20T15:45:05.000Z","size":285,"stargazers_count":19,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-11T03:22:10.481Z","etag":null,"topics":["java","minecraft"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vankka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"Vankka"}},"created_at":"2021-07-18T20:28:24.000Z","updated_at":"2024-07-20T15:45:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"d33e7a77-7445-4cf0-ad89-c160aa065a69","html_url":"https://github.com/Vankka/EnhancedLegacyText","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vankka%2FEnhancedLegacyText","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vankka%2FEnhancedLegacyText/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vankka%2FEnhancedLegacyText/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vankka%2FEnhancedLegacyText/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vankka","download_url":"https://codeload.github.com/Vankka/EnhancedLegacyText/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221811304,"owners_count":16884290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","minecraft"],"created_at":"2024-10-11T03:22:04.814Z","updated_at":"2024-10-28T09:05:29.798Z","avatar_url":"https://github.com/Vankka.png","language":"Java","funding_links":["https://github.com/sponsors/Vankka"],"categories":[],"sub_categories":[],"readme":"# EnhancedLegacyText\n\n[![Maven Central](https://img.shields.io/maven-central/v/dev.vankka/enhancedlegacytext?label=release)](https://central.sonatype.com/search?q=g%3Adev.vankka+a%3Aenhancedlegacytext)\n[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/dev.vankka/enhancedlegacytext?label=dev\u0026server=https%3A%2F%2Fs01.oss.sonatype.org)](https://s01.oss.sonatype.org/#view-repositories;snapshots~browsestorage~dev/vankka)\n\nAn alternative input format for [Adventure](https://github.com/KyoriPowered/adventure), \nbuilding on top of the well known [legacy formatting codes](https://minecraft.fandom.com/wiki/Formatting_codes).\n\n## Dependency Information\n### Gradle\n```groovy\nrepositories {\n    mavenCentral()\n}\n\ndependencies {\n    implementation 'dev.vankka:enhancedlegacytext:1.0.0'\n}\n```\n\n### Maven\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003edev.vankka\u003c/groupId\u003e\n    \u003cartifactId\u003eenhancedlegacytext\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0\u003c/version\u003e\n    \u003cscope\u003ecompile\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\n## Basic Usage\n```java\nComponent component = EnhancedLegacyText.get().buildComponent(\"\u0026c\u0026lThis is red, [click:open_url:https://github.com]this is clickable, this %placeholder% got replaced\")\n        .replace(\"%placeholder%\", Component.text(\"\u003cThe placeholder replacement\u003e\").color(NamedTextColor.GREEN))\n        .build();\n```\n\n## The Format\n\n[Version 2.0.0+ Format](https://github.com/Vankka/EnhancedLegacyText/wiki/Format)\n\n### Color \u0026 Formatting\n\n- [The legacy codes](https://minecraft.fandom.com/wiki/Formatting_codes)\n    + Exception: Formatting codes remain enabled after color codes (Can be re-enabled via `EnhancedLegacyText.Builder#colorResets`)\n- Adventure's hex format, (`\u0026#\u003chex\u003e` / `\u0026#abc123`)\n\n### Color Gradients\n\nSurrounded by `{` and `}`, seperated by `,`\n\nExamples:\n- `{\u0026a,\u00262,\u00263}`\n- `{\u0026a,\u0026#00aa00,\u00263}` (mix \u0026 match permitted)\n- `{\u0026#55ff55,\u0026#00aa00,\u0026#00aaaa}`\n\n## Square Brackets format\n\n### Click \u0026 Hover Events\n\nEvents are surrounded by `[` and `]`, and split at the first two `:`, first part being either `click` or `hover`\n\n#### Click\n\nValid types: `open_url`, `run_command`, `suggest_command`, `change_page`, `copy_to_clipboard`\n\nExamples:\n- `[click:open_url:https://github.com/Vankka/EnhancedLegacyText]`\n- `[click:run_command:say hello]`\n- `[click:suggest_command:/help]`\n- `[click:change_page:2]`\n- `[click:copy_to_clipboard:Secret]`\n\n#### Hover\n\nValid type: `show_text`\n\nExamples:\n- `[hover:show_text:Hello]`\n- `[hover:show_text:\u0026#00aa00Hello]`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvankka%2Fenhancedlegacytext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvankka%2Fenhancedlegacytext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvankka%2Fenhancedlegacytext/lists"}