Coder Social home page Coder Social logo

yt-toaster / mc3dst-parser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bjtmastermind/mc3dst-parser

0.0 0.0 0.0 26 KB

A Minecraft: 3DS Edition 3dst Image File Parser and Assembler

License: GNU General Public License v2.0

Java 100.00%

mc3dst-parser's Introduction

Minecraft 3dst Parser

A Minecraft: 3DS Edition 3dst Image File Parser and Assembler

How To Use

  • Download MC3dst-Parser-v<version>.jar from Releases tab.
  • Add the library into your project.
  • Import me.bjtmastermind.mc3dstparser.MC3dstFile to use.

Example Code:

// Create a new instance of the MC3dstFile
MC3dstFile mc3dstFile = new MC3dstFile();

// Use the parse method to parse a 3dst image
mc3dstFile.parse("/path/to/image.3dst");
// Use the extractPNG method to generate a .png file from the parsed 3dst image
mc3dstFile.extractPNG("/path/to/output.png");

BufferedImage image = ImageIO.read(new File("/path/to/replacementImage.png"));
// Use the replace method to replace the image in a parsed 3dst image from a .png file
// Choose your desired ColorFormat of ABGR, BGR, or RGBA5551
mc3dstFile.replace(image, ColorFormat.ABGR); // this will override the existing 3dst image data

// Create a new 3dst image from scratch
mc3dstFile.assemble(image, ColorFormat.ABGR, "/path/to/output.3dst");

Minimum Java Version

  • Java 8

3dst File Format

mc3dst-parser's People

Contributors

bjtmastermind avatar yt-toaster avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.