This is a tool (a java library) to handle schematic files, an export format of many MineCraft tools.
After reading a schematic file, it provides you with a SlizeStack object. This object represents a cuboid inside MineCraft, a three-dimensional collection of blocks.
The SlizeStack contains various Slizes representing a single horizontal plane of the SlizeStack, ordered so that the index 0,0 corresponds to the north-west corner of the slize (first index is width, second is height).
Each slize consists of various Blocks, each one representing a single block inside the world of MineCraft. All blocks that have a data value, such as the direction they're facing, have a subclass handling its special needs, for example, Redstone Torches have a direction (RedstoneTorch.getDirection()) and can be on or off (RedstoneTorch.isOn()). To ensure that everything can be written back to a schematic file, all changes to a block (such as RedstoneTorch.setOn(false)) will update its data values.
All those classes also have the ability to give you a graphic representation of them as a swing component, making it easy to build GUI programs. To enable this, you have to call ImageProvider.initialize(). For memory and speed reasons, images are not loaded if you don't so the tool can be used in the background just as well.
All Blocks have the function getImage() returning a BufferedImage-instance of the block and the function getComponent, returning a special swing component that displays the image and updates with changes to this block. It also has tooltips giving more informations about the block. Some blocks, like Chests, have a special tooltip that displays an image.
Slizes have the function getImages() which gives you an ImageGrid, a swing component holding the representation of the slize (a graphical grid grid containing all its blocks). SlizeStacks return an array of such slize components wrapped inside a ImageGridStack object (which handles zooming etc).
More information and download at http://klaue.net16.n... ... ool.en.php
Please post any bug you find here
@Mods: I decided to split this and Schematic2Blueprint into two threads. If you object, feel free to merge them
Latest News Article
Minecraft News - NEW Xbox Textures, Jeb's FAQs & MORE! David and Toby learn about love, loss, and... ...wait, no. They take us through a very interesting week in Minecraft events! Enjoy!... Snapshot 14w10b Ready for Testing The Snapshot is live, and it's time to test! What's up with 14w10b? CHANGELOG: [Bug MC-50219] – "Slightly Damaged Anvil" Faces the wrong way in Inventory[Bug MC-50220] – "Nether Brick Fence" is not rendered correctly ... SXSW and Minecraft Are you going to SXSW this weekend? If so, Mojang's Lydia "MinecraftChick" Winters will be there to do a Minecraft talk on the Geek Stage, Saturday, March 8th from 2:30-3:15pm at the Palmer Events Center. Lydia adds that if you show up in M...
1 reply to this topic