{"id":14969405,"url":"https://github.com/toxicity188/datacomponentapi","last_synced_at":"2025-06-30T10:36:18.525Z","repository":{"id":239794277,"uuid":"800766707","full_name":"toxicity188/DataComponentAPI","owner":"toxicity188","description":"This is a simple API for data component!","archived":false,"fork":false,"pushed_at":"2024-08-28T14:08:35.000Z","size":137,"stargazers_count":3,"open_issues_count":3,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-14T07:46:24.368Z","etag":null,"topics":["1-20-6","api","bukkit","data-components","library","minecraft","plugin"],"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/toxicity188.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-05-15T00:40:32.000Z","updated_at":"2025-03-26T22:42:50.000Z","dependencies_parsed_at":"2024-05-15T11:58:54.298Z","dependency_job_id":"33f187cf-7617-4344-86cf-baeae5fd187f","html_url":"https://github.com/toxicity188/DataComponentAPI","commit_stats":null,"previous_names":["toxicity188/datacomponentapi"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/toxicity188/DataComponentAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toxicity188%2FDataComponentAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toxicity188%2FDataComponentAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toxicity188%2FDataComponentAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toxicity188%2FDataComponentAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toxicity188","download_url":"https://codeload.github.com/toxicity188/DataComponentAPI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toxicity188%2FDataComponentAPI/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262756849,"owners_count":23359592,"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":["1-20-6","api","bukkit","data-components","library","minecraft","plugin"],"created_at":"2024-09-24T13:41:48.488Z","updated_at":"2025-06-30T10:36:18.493Z","avatar_url":"https://github.com/toxicity188.png","language":"Java","readme":"# DataComponentAPI\n\nThis is a simple API for data component!\n\n### Usage in library plugin\n``` java\npublic class TestPlugin extends JavaPlugin {\n    @Override\n    public void onEnable() {\n        var apply = DataComponentAPI.api().adapter(new ItemStack(Material.DIAMOND_SWORD));\n        apply.set(NMS.nms().damage(), 3);\n        apply.set(NMS.nms().repairCost(), 20);\n        apply.set(NMS.nms().rarity(), Rarity.EPIC);\n        getLogger().info(apply.serialize().toString());\n    }\n}\n```\n\n### Usage in shade\n``` java\npublic class TestPlugin extends JavaPlugin {\n    @Override\n    public void onEnable() {\n        DataComponentAPIBukkit.load();\n\n        var apply = DataComponentAPI.api().adapter(new ItemStack(Material.DIAMOND_SWORD));\n        apply.set(NMS.nms().damage(), 3);\n        apply.set(NMS.nms().repairCost(), 20);\n        apply.set(NMS.nms().rarity(), Rarity.EPIC);\n        getLogger().info(apply.serialize().toString());\n    }\n}\n```\n\n### How to use\n``` kotlin\nrepositories {\n    mavenCentral()\n    maven(\"https://jitpack.io\")\n}\n\ndependencies {\n    implementation(\"com.github.toxicity188:DataComponentAPI:master-SNAPSHOT\")\n}\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoxicity188%2Fdatacomponentapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoxicity188%2Fdatacomponentapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoxicity188%2Fdatacomponentapi/lists"}