Skip to content

RochBlondiaux/BlockBenchModelReader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockbench Model Reader

MIT License Maven Central Javadoc GitHub Issues or Pull Requests GitHub Forks GitHub Stars

A simple library to read Blockbench models in Java.

Why?

There is no open-source and maintained library to read Blockbench models in Java.

This library aims to fill this gap. I'll try to keep it up-to-date with the latest Blockbench versions.

Installation

Maven

Add this dependency to your pom.xml file:

<dependency>
    <groupId>me.rochblondiaux</groupId>
    <artifactId>blockbenchmodelreader</artifactId>
    <version>1.2</version>
</dependency>

Gradle

Add this dependency to your build.gradle file:

implementation 'me.rochblondiaux:blockbenchmodelreader:1.2'

Usage

The library provides an interface called BlockBenchModelReader class to read Blockbench models.

You can use the #reader() static method to create a new instance of the reader.

Here is an example of how to read a model:

import me.rochblondiaux.blockbench.model.BlockBenchModel;

public static void main(String[] args) {
    Path path = Path.of("/my/path/model.bbmodel");
    try {
        BlockBenchModel model = BlockBenchModelReader.reader().read(path);
    } catch (Exception e) {
        throw new RuntimeException("Error while reading the model", e);
    }
}

Contributing

Contributions are always welcome!

I don't really have a specific guideline for contributions, but please make sure to follow the general code style of the project.

If you want to contribute, please fork the repository and create a pull request.

Author

Contact

If you want to contact me you can reach me at:

Email: contact@roch-blondiaux.com

Discord: kiwix

About

Reads blockbench models.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages