sk89q
eee2c5d9f4
Changed Location to use Extents rather than worlds and overhauled the new Entity code a bit.
2014-06-29 15:36:41 -07:00
sk89q
33e641d5f2
Added a new Location and added Entity.getLocation().
2014-04-26 19:48:30 -07:00
sk89q
e0fd804f70
Standardized file headers.
2014-04-04 15:23:11 -07:00
sk89q
6c460f02c5
Split up source files into several source directories.
2014-04-02 20:03:52 -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
wizjany
611cb81cf8
Added rotate/flip/cycle data for 1.7.2 blocks.
2013-12-24 18:31:48 -05:00
TomyLobo
7dca4d15ef
Made hay blocks rotate like logs.
...
They're textured like them, too, so it fits.
Also, they no longer violate the "flip twice equals rotate twice" conditions.
2013-10-20 16:31:50 +02:00
TomyLobo
73bf2bd215
Fixed not flipping the center plane blocks.
...
Added regression test so we'll never have to deal with it again.
2013-10-20 16:31:46 +02:00
TomyLobo
e2f1abd7e4
Fixed the query functions not comparing data values at all for their return values.
...
Also made them accept RValue as well and added some test cases for them
and for the overloader bug i fixed last time.
2013-09-25 00:37:54 +02:00
wizjany
cba246a2a5
Fix some maven tests
2013-07-02 08:09:14 -04:00
TomyLobo
321e2246fc
Added some comments to BlockDataTest.testCycle.
2013-05-24 02:03:08 +03:00
zml2008
b6d1146427
Added support for new tree types to TreeGenerator and make adding more tree types later easier
2012-03-17 15:28:49 -07:00
TomyLobo
8aa65fd7f4
License block changes
...
Added some missing license blocks
Added "and contributors" to all copyright notices.
Added $Id$ to files that were still missing it.
Changed "All rights reserved" to GPLv3 on Injector.java.
2012-01-20 08:24:32 +01:00
zml2008
ad9d85e50f
This should either fix errors people have been having with Trove, or consistently break Spout
...
Probably the first
2012-01-17 19:50:57 -08:00
TomyLobo
e1428602af
Fixed Vector.cross and optimized the Vector tests slightly.
2012-01-08 03:21:35 +01:00
TomyLobo
12dbcf6bbc
Added Vector2D.isCollinearWith(Vector2D other).
...
Also added a test for it.
2012-01-05 22:13:21 +01:00
TomyLobo
450feb6630
Added Vector.isCollinearWith(Vector other).
...
Also added a test for it.
2012-01-05 21:27:17 +01:00
TomyLobo
324a041e38
Split up some external .* imports.
2011-12-26 00:36:23 +01:00
zml2008
a1e239d08c
Fixed SIOOBE when entering a blank quoted string
2011-12-24 22:22:37 -08:00
zml2008
c4031c38ba
Added basic tests for the DinnerPermsResolver
2011-12-12 23:21:14 -08:00
TomyLobo
a8e64fd8bc
Added switch/case to the expression parser.
...
Also added a test case.
2011-12-04 09:25:56 +01:00
TomyLobo
af9e2da6d3
Simplified the statement parser, fixed a few quirks and adjusted a test case.
2011-11-30 09:18:53 +01:00
TomyLobo
662e597f1a
Moved temporary variable creation from Parser to Expression.
2011-11-30 04:45:48 +01:00
TomyLobo
5ec6276674
Made ExpressionTest invoke the optimizer every time it evaluates an expression.
...
This way that thing at least gets SOME coverage.
2011-11-24 21:00:09 +01:00
TomyLobo
71287299b5
Added a simple for loop to the expression parser.
...
Syntax: for (counter = first, last) { body }
Also added a test case.
2011-11-24 02:35:19 +01:00
TomyLobo
7e13b60a51
Cleanup
2011-11-23 04:48:40 +01:00
TomyLobo
effbf9f79c
Added for loops to the expression parser, java style.
...
Also:
- Added a test case for for
- Fixed Identifiable.id() for the runtime Nodes and added missing elements to the list in Identifiable.java.
- Factored keyword and character consumption into a common function.
2011-11-22 16:08:15 +01:00
TomyLobo
f217be0bdf
Added while loops to the expression parser.
...
Also added a test case.
Iterations are currently limited to 256 maximum.
2011-11-22 06:16:23 +01:00
TomyLobo
aa43975e34
Added support for if/else to the expression parser. Basically same syntax as Java.
...
Also added a test case.
2011-11-22 05:12:32 +01:00
TomyLobo
e70446e82e
Renamed RValue.invoke() to getValue.
2011-10-29 16:03:55 +02:00
TomyLobo
ee79abff67
The expression parser can now parse more than a simple expression
...
- Added sequencing (; and {}).
- Added =, +=, -=, *=, /=, %=, ^= to the expression parser. (left-associative for now, will change later)
- Added pre-increment(++) and pre-decrement(--) operators.
- Adjusted/added tests.
2011-10-27 19:16:46 +02:00
TomyLobo
d93d85cd37
Added an expression parser.
2011-10-18 01:04:04 +02:00
TomyLobo
f354ab392f
Refactored BlockData test case to reduce code duplication.
2011-09-29 08:19:02 +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
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
fa82482823
Added a new test for get[Padded]Slice and renamed testHangingQuote to testUnmatchedQuote.
2011-09-20 03:41:07 +02:00
TomyLobo
67918f171b
Internal restructuring of CommandContext
...
- getJoinedStrings(n) will now return literally everything after the first space following the (n-1)th argument. Mixing flags in after that is undefined
- What was in args before is now a List named parsedArgs, which also no longer contains the command, which was split off into a separate field.
- get[Padded]Slice now operates on the unparsed args with flags and all, allowing whoever uses it (script commands) to obtain a more low-level input.
- Added a test for the exactness of getJoinedStrings and adjusted an existing test to the new old behaviour.
2011-09-20 03:25:35 +02:00
TomyLobo
2d86b1b40d
Fixed and cleaned up CommandContext.
...
- Removed all the inefficient removePortionOfArray stuff and replaced it by ArrayLists that accumulate content instead.
- Added new tests
- Swapped the arguments to assertEquals everywhere. First argument is "expected".
- Fixed warnings in the test case
- I put my original flag parser back and added support for putting flags anywhere. Looks and works better than that undocumented mindfuck zml put there.
2011-09-19 23:14:49 +02:00
TomyLobo
a4618fa3c0
It just a test case but meh...
2011-09-19 09:08:10 +02:00
TomyLobo
16a4e5ccb3
Added/fixed some copyright notices.
2011-09-19 08:24:21 +02:00
zml2008
56fd654eed
Fixed bug with unclosed quotes
2011-09-17 21:10:55 -07:00
zml2008
75e843b965
Some small improvements to value flags, and a unit test.
2011-09-14 17:59:18 -07:00