A collection of auto generated enum classes for minecraft materials, holding important information for resource packs. This 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.
The API is designed to be used in combination with the solid-api project.
You can however access resource pack information without the solid-api project, by using the generated enum classes directly.
implementation("io.github.solid-resourcepack:solid-material-api:VERSION")
implementation 'io.github.solid-resourcepack:solid-material-api:VERSION'
<dependency>
<groupId>io.github.solid-resourcepack</groupId>
<artifactId>solid-material-api</artifactId>
<version>VERSION</version>
</dependency>
val material = SolidBlockMaterial.STONE.toGeneric()
val material = SolidItemMaterial.STICK.toGeneric()
material.parent // The resourcepack parent key of the material (e.g. "minecraft:item/generated")
material.key // The resourcepack key of the material (e.g. "minecraft:item/stick")
material.textures // A list of all textures used by the material
To contribute to this project
- Check if your feature is not already provided in a pull request or the project,
- if it is not, fork the repository,
- commit changes into the fork,
- open a pull request with the development branch as base
This project is licensed under the Apache-2.0 license.