Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.
/ solid-material Public archive

A collection of auto generated enum classes for minecraft materials, holding important information for resource packs

License

Notifications You must be signed in to change notification settings

solidpack/solid-material

Repository files navigation

solid-material Maven Central Version CodeFactor Grade

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.

Dependency

Gradle Kotlin

implementation("io.github.solid-resourcepack:solid-material-api:VERSION")

Gradle Groovy

implementation 'io.github.solid-resourcepack:solid-material-api:VERSION'

Maven

<dependency>
    <groupId>io.github.solid-resourcepack</groupId>
    <artifactId>solid-material-api</artifactId>
    <version>VERSION</version>
</dependency>

Usage

Block Materials

val material = SolidBlockMaterial.STONE.toGeneric()

Item Materials

val material = SolidItemMaterial.STICK.toGeneric()

Material properties

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

Contributing

To contribute to this project

  1. Check if your feature is not already provided in a pull request or the project,
  2. if it is not, fork the repository,
  3. commit changes into the fork,
  4. open a pull request with the development branch as base

License

This project is licensed under the Apache-2.0 license.

About

A collection of auto generated enum classes for minecraft materials, holding important information for resource packs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages