Commit Graph

219 Commits

Author SHA1 Message Date
TomyLobo
d4c2832437 Added an ArbitraryShape class which can be used to generate hollow and solid shapes based on an in/out condition. 2011-10-25 18:46:12 +02:00
TomyLobo
c2191f4fc7 Generalized the Lexer a bit more and renamed a function in the parser. 2011-10-25 18:45:52 +02:00
TomyLobo
7dfc2a34e5 Improved fast mode.
BukkitWorld's fast lighting mode now also does what the old fast mode did.
In addition, both fast lighting mode and the fallback resend all modified chunks when done.
This should prevent display issues.
2011-10-25 18:41:07 +02:00
TomyLobo
3ed867ed53 Added left, right, back and forward directions to all directional commands. 2011-10-25 01:07:08 +02:00
TomyLobo
2d654b59c5 Reduced code duplication in the WorldEdit.get*Direction methods. 2011-10-25 01:06:18 +02:00
TomyLobo
3962e6c9d8 Added LocalPlayer.getCardinalDirection(int yawOffset) 2011-10-25 01:02:50 +02:00
TomyLobo
a1fb1fd4e4 Using Notch's block lighting functions now.
Also removed some debug messages
2011-10-24 23:42:04 +02:00
TomyLobo
a0461aeb2c BukkitWorld.fixLighting now also fixes block light. 2011-10-24 20:49:17 +02:00
TomyLobo
b31d77536a Added some new functions to BlockType.
- emitsLight which returns whether the given block type emits light
- isTranslucent, which returns whether the block lets any light pass
2011-10-24 20:49:17 +02:00
TomyLobo
4f7e1a6b31 Improved speed greatly by deferring lighting until after all blocks are in place.
This needs CraftBukkit to work.
2011-10-24 13:44:22 +02:00
TomyLobo
e8dcee1acf Added LocalWorld.fixLighting(Set<BlockVector2D>)
This method redos lighting in the given chunks.
BukkitWorld's current implementation introduces some slight errors and doesn't redo torch light, but it's better than nothing.
2011-10-24 13:35:48 +02:00
TomyLobo
ef88c04550 Gave //fast an on|off parameter and adjusted its message to reflect a future change. 2011-10-24 04:33:19 +02:00
TomyLobo
ffe5f89afc EditSession.flushQueue(): queueLast is now ordered with attachments in mind. 2011-10-24 04:31:34 +02:00
zml2008
52982c7c0f Moved YAML classes from RegionBook from WorldGuard into WorldEdit and made everything use those. 2011-10-22 23:48:15 -07:00
TomyLobo
d93d85cd37 Added an expression parser. 2011-10-18 01:04:04 +02:00
Wizjany
467cc4dd14 Fixed infinite loop. Just because it's unused in worldedit doesn't mean you should break it -.- 2011-10-12 17:47:26 -04:00
zml2008
050eef8dc7 Fixed checkLoadedChunk 2011-10-10 02:01:50 -04:00
Wizjany
b89ede09a6 Bugfix for jumpto 2011-10-09 20:43:21 -04:00
Wizjany
68fe0d3438 Cleanup. Cycler uses BaseBlock instead of BlockData directly. Fixed a few BlockType method inaccuracies. 2011-10-04 17:16:20 -04:00
ZachBora
bb609a47c2 Negative angles will return negative number of rotations thus never looping the rotation. 2011-10-02 22:26:44 -03:00
zml2008
24056df78a Fixed config generation for Windows users 2011-10-02 01:27:52 -07:00
Meaglin
b17fb7eaa3 Adding /snapshot sel [index] to select a snapshot by list index. 2011-10-02 00:10:27 -04:00
TomyLobo
e2c71e4269 Added cactus to getAttachment. 2011-09-30 08:56:09 +02:00
TomyLobo
7fec065d4a Apparently the wiki has wrong data values for the stone button.
Also added top attachment for vines.
2011-09-29 21:11:51 +02:00
TomyLobo
69367e7762 Added BlockType.getAttachment.
See javadoc for details.
2011-09-29 15:54:28 +02:00
zml2008
ccfabd94b9 Should fix broken config generation some people have been getting 2011-09-28 19:05:47 -07:00
TomyLobo
cbc331da7d Added some constants com.sk89q.worldedit.blocks.ClothColor.ID.X = ClothColor.X.getID() 2011-09-28 10:57:30 +02:00
TomyLobo
21c6ab894c Moved BlockData to the blocks package and left a stub with deprecated delegates behind. 2011-09-28 10:45:32 +02:00
Wizjany
102e5f142e Fix data cycling the right way. Merged TomyLobo's test changes in. 2011-09-26 05:53:04 -04:00
Wizjany
868fef813f Changed pyramid command usage 2011-09-26 01:43:39 -04:00
Wizjany
9e6a2ccf4d Nicer wiki perms table. 2011-09-26 00:09:21 -04:00
Wizjany
903abc80a4 Cleanup 2011-09-25 22:21:27 -04:00
TomyLobo
c6c55c3b2a Adjusted some of the cycler code and added a test case for it.
- Added range checks for most blocks
- torches: Fixed cycle from 0->1->2->3->0 to 1->2->3->4->1
- mushroom caps: Included data value 10 (stem) in cycle
- vines: Included data value 0 (top attachment only) in the cycle
- furnaces/dispensers: Linearised the cycle. It's now 2->3->4->5->2
- chests/ladders: Added cycle code.
- rails: Linearised the cycle. It's now 6->7->8->9->6
2011-09-25 10:52:29 +02:00
TomyLobo
93f36955ca Added a test case for BlockData.
Fixed some non-breaking inaccuracies to make the test case work.
2011-09-25 06:08:31 +02:00
TomyLobo
63fa72af5e Added rotate code for brick and stone brick stairs and made powered/detector rails not lose their charge when rotating. 2011-09-25 06:01:01 +02:00
TomyLobo
b06caa9fd3 Cleanup 2011-09-25 05:15:20 +02:00
TomyLobo
50009cc855 Improved hashCode implementations for the Vector classes.
Block[World]Vector was ignoring changes of y < 128 (i.e. all of them) and changes of x < 8192.
2011-09-25 04:56:54 +02:00
zml2008
3bbebcd64e Updated for Bukkit changes. 2011-09-24 15:45:49 -07:00
Wizjany
f90e47da9a Removed trailing whitespaces. 2011-09-24 15:32:03 -04:00
Wizjany
b5b55a2775 Cleanup and a few bugfixes 2011-09-24 15:24:10 -04:00
lahwran
a2e23fedf7 send poly regions to wecui, take 2 2011-09-24 11:45:03 -06:00
TomyLobo
7c18327fdc Fixed extended piston rotation. 2011-09-24 11:20:37 +02:00
TomyLobo
bfc877cdb2 Added rotate code for vines, fence gates and mushroom caps. 2011-09-23 16:32:50 +02:00
TomyLobo
a3cd58fda1 Added flip code for vines, fence gates and mushroom caps. 2011-09-23 14:00:49 +02:00
TomyLobo
4b760fd17b Swapped flipY and flipZ in BlockData.flip and formatted the function more consistently. 2011-09-23 12:50:57 +02:00
Wizjany
2f19edca2a Fixed case fallthroughs in BlockType. 2011-09-22 01:31:35 -04:00
TomyLobo
c78e8a10d7 Made shouldNotStack use a HashSet instead of a bunch of or'ed comparisons. 2011-09-19 09:13:51 +02:00
TomyLobo
c1f1e29617 Replace ItemType.X.getID() with ItemID.X everywhere. 2011-09-19 08:38:30 +02:00
TomyLobo
16a4e5ccb3 Added/fixed some copyright notices. 2011-09-19 08:24:21 +02:00
TomyLobo
088001f099 Used ItemID in ItemType 2011-09-19 08:08:05 +02:00