SmylerMC / litemapy

Litemapy's goal is to provide an easy to use way to read and edit Litematica's schematic file format
GNU General Public License v3.0
52 stars 6 forks source link

Added support to read (tile) entities #10

Closed boscawinks closed 2 years ago

boscawinks commented 2 years ago

Added support to read (tile) entities and pending ticks from .litematic files. The pending ticks are simply kept as NBT tags. The entities get a wrapper class that allows the user to set and change some basic information like an entity's position.

The Entity and TileEntity classes are basically just wrappers for the NBT tag plus some functions to get and set basic properties that all entities have (Entity: id, Pos, Rotation, Motion; TileEntity: id, x, y, z).

The support for preview images and pending ticks is even more basic. The NBT tags are simply stored in a Region's member variables and wrote to file when saved.