Commit Graph

15 Commits

Author SHA1 Message Date
sk89q
65ee8bfd2a Allow use of InputStream to load schematics
Conflicts:
	src/main/java/com/sk89q/worldedit/schematic/MCEditSchematicFormat.java
2014-05-01 13:57:30 -07:00
sk89q
e0fd804f70 Standardized file headers. 2014-04-04 15:23:11 -07:00
sk89q
224bfef50c Throw old DataExceptions in schematic related classes.
The schematic related classes are slated for deprecation at some point.
2014-04-04 13:59:28 -07:00
sk89q
469cb8c8b3 (Breaking) Moved some packages around.
Most of the changes should not break *most* WorldEdit-using plugins,
but implementations of WorldEdit are broken by this change.
2014-04-02 19:20:12 -07:00
ItsHarry
ae0b2df66e Allow use of InputStream, this allows schematics to be loaded e.g. as a resource. 2014-01-05 21:49:06 +01:00
Wizjany
1be3320bcf Fix 4096 block id support in restore and schematic. (for real this time) 2013-02-24 14:57:34 -05:00
aumgn
1fef255d77 Clean up some io close() calls 2012-08-27 20:10:35 +02:00
sk89q
cfa1400c26 Changed SchematicFormat to create only BaseBlocks rather than their subclasses, to prevent data loss. 2012-08-24 16:02:38 -07:00
sk89q
6be8c8b55c Fixed incorrect schematic handling code being used when AddBlocks is present. The old code did not properly handle the signed nature of the byte, nor did it properly shift and add the extra 4 bits in AddBlocks. 2012-08-24 13:40:26 -07:00
sk89q
48af65cac3 Updated foundation classes a bit and added raw access for NBT. This release marks experimental support for custom blocks, and nearly all future Minecraft blocks, and is also the beginning of the gradual transition to the new foundation classes as a replacement of the current BaseBlock, etc. classes. 2012-08-23 16:52:37 -07:00
snaxson
00e6a3aa65 Fix loading schematic files with block data values >127
Minecraft 1.3 introduces several blocks with data values
over 127, such as sandstone stairs (128).  Since byte
is signed, implicit conversion to short results in
negative block data values that cause later IndexOutOfBounds
exceptions.  This change explicitly masks off the extended
sign bits so the result is positive.
2012-08-15 13:25:24 +02:00
zml2008
9f2f2fc6c9 Move block ids over even if there isn't an AddBlocks tag in schematics 2012-07-12 16:31:35 -07:00
zml2008
0d279e7706 Added initial support for AddBlocks (4096 ids) in schematics 2012-07-08 04:05:24 -07:00
zml2008
33752eb058 Added a command to list schematics and the abilitiy to autodetect schematic format 2012-03-28 13:04:09 -07:00
zml2008
7812dd6a09 Added support for multiple schematic formats 2012-03-28 11:05:52 -07:00