{"id":26151093,"url":"https://github.com/solid-resourcepack/solid-material","last_synced_at":"2025-03-11T06:25:13.851Z","repository":{"id":251933783,"uuid":"838892385","full_name":"solid-resourcepack/solid-material","owner":"solid-resourcepack","description":"A collection of auto generated enum classes for minecraft materials, holding important information for resource packs","archived":false,"fork":false,"pushed_at":"2024-08-10T15:15:43.000Z","size":119,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-08-10T17:44:52.639Z","etag":null,"topics":["api","generated-code","material","minecraft","resourcepack"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solid-resourcepack.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-08-06T14:45:22.000Z","updated_at":"2024-08-10T15:15:31.000Z","dependencies_parsed_at":"2024-08-06T17:24:22.606Z","dependency_job_id":null,"html_url":"https://github.com/solid-resourcepack/solid-material","commit_stats":null,"previous_names":["solid-resourcepack/solid-material"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solid-resourcepack%2Fsolid-material","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solid-resourcepack%2Fsolid-material/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solid-resourcepack%2Fsolid-material/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solid-resourcepack%2Fsolid-material/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solid-resourcepack","download_url":"https://codeload.github.com/solid-resourcepack/solid-material/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242982989,"owners_count":20216730,"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":["api","generated-code","material","minecraft","resourcepack"],"created_at":"2025-03-11T06:25:12.917Z","updated_at":"2025-03-11T06:25:13.813Z","avatar_url":"https://github.com/solid-resourcepack.png","language":"Kotlin","readme":"# solid-material ![Maven Central Version](https://img.shields.io/maven-central/v/io.github.solid-resourcepack/solid-material-api?style=flat) ![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/solid-resourcepack/solid-material)\nA collection of auto generated enum classes for minecraft materials, holding important information for resource packs.\nThis repository aims to provide a simple way to access material information for resource packs. It is generated from the official minecraft data files and provides a simple way to access the information.\n\nThe API is designed to be used in combination with the [solid-api](https://github.com/solid-resourcepack/solid-api) project.\n\nYou can however access resource pack information without the solid-api project, by using the generated enum classes [directly](#usage).\n\n## Dependency\n\n### Gradle Kotlin\n```kt\nimplementation(\"io.github.solid-resourcepack:solid-material-api:VERSION\")\n```\n### Gradle Groovy\n```groovy\nimplementation 'io.github.solid-resourcepack:solid-material-api:VERSION'\n```\n\n### Maven\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.solid-resourcepack\u003c/groupId\u003e\n    \u003cartifactId\u003esolid-material-api\u003c/artifactId\u003e\n    \u003cversion\u003eVERSION\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n### Block Materials\n```kotlin\nval material = SolidBlockMaterial.STONE.toGeneric()\n```\n\n### Item Materials\n```kotlin\nval material = SolidItemMaterial.STICK.toGeneric()\n```\n\n### Material properties\n```kotlin\nmaterial.parent // The resourcepack parent key of the material (e.g. \"minecraft:item/generated\")\nmaterial.key // The resourcepack key of the material (e.g. \"minecraft:item/stick\")\nmaterial.textures // A list of all textures used by the material\n```\n\n\n## Contributing\nTo contribute to this project\n1. Check if your feature is not already provided in a pull request or the project,\n2. if it is not, [fork](https://github.com/solid-resourcepack/solid-material/fork) the repository,\n3. commit changes into the fork,\n4. open a pull request with the [development branch](https://github.com/solid-resourcepack/solid-material/tree/development) as base\n\n## License\nThis project is [licensed](LICENSE) under the Apache-2.0 license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolid-resourcepack%2Fsolid-material","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolid-resourcepack%2Fsolid-material","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolid-resourcepack%2Fsolid-material/lists"}