Commit Graph

2738 Commits

Author SHA1 Message Date
b5b55a2775 Cleanup and a few bugfixes 2011-09-24 15:24:10 -04:00
a2e23fedf7 send poly regions to wecui, take 2 2011-09-24 11:45:03 -06:00
7c18327fdc Fixed extended piston rotation. 2011-09-24 11:20:37 +02:00
bfc877cdb2 Added rotate code for vines, fence gates and mushroom caps. 2011-09-23 16:32:50 +02:00
a3cd58fda1 Added flip code for vines, fence gates and mushroom caps. 2011-09-23 14:00:49 +02:00
4b760fd17b Swapped flipY and flipZ in BlockData.flip and formatted the function more consistently. 2011-09-23 12:50:57 +02:00
2f19edca2a Fixed case fallthroughs in BlockType. 2011-09-22 01:31:35 -04:00
fa82482823 Added a new test for get[Padded]Slice and renamed testHangingQuote to testUnmatchedQuote. 2011-09-20 03:41:07 +02:00
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
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
c78e8a10d7 Made shouldNotStack use a HashSet instead of a bunch of or'ed comparisons. 2011-09-19 09:13:51 +02:00
a4618fa3c0 It just a test case but meh... 2011-09-19 09:08:10 +02:00
c1f1e29617 Replace ItemType.X.getID() with ItemID.X everywhere. 2011-09-19 08:38:30 +02:00
16a4e5ccb3 Added/fixed some copyright notices. 2011-09-19 08:24:21 +02:00
088001f099 Used ItemID in ItemType 2011-09-19 08:08:05 +02:00
51d4b572cb De-craftbooked some copyright notices. 2011-09-19 07:43:49 +02:00
5b5c25f1ae Added an ItemID class, containing all the item IDs. 2011-09-19 07:39:28 +02:00
88b4f4de18 Cleanup.
- Fixed a few warnings
- Unified the formatting of the command prologue
- Put down why it was deprecated in the javadoc of a deprecated method.
- Gave //none a better usage line
- Switchcaseified some elseifs
2011-09-19 07:24:49 +02:00
43809a705d More BlockType cleanup 2011-09-19 00:43:39 -04:00
b413af307a Updated plugin.yml (not that it needs it). 2011-09-19 00:43:38 -04:00
67a7969cd1 Added a tool that allows a player to place and remove blocks at a distance. 2011-09-18 21:53:29 -04:00
1a6bc6f42c Fixed AIOOBE and a missing return, removed an unused and ambiguous method from CommandContext. 2011-09-18 19:11:05 -04:00
dd358bc982 Made floating tree remover work on mushrooms 2011-09-18 02:37:38 -04:00
709cae1995 Removed permissions from plugin.yml for compatibility and cleaned up a bit more. 2011-09-18 02:37:37 -04:00
3f369f104a Abstracted type detection of simulateBlockMine into BlockType. 2011-09-17 22:00:14 -07:00
a1cf6eb6da Allow //replace to ignore from block damage values (and force them to not be ignored with the -f flag) 2011-09-17 21:50:06 -07:00
56fd654eed Fixed bug with unclosed quotes 2011-09-17 21:10:55 -07:00
46ba1c7f5b Added mob type enum and subsequently removed case sensitivity from //set with mobspawners. 2011-09-17 21:08:15 -04:00
1c4c621500 Cleanup. 2011-09-17 19:32:44 -04:00
f7c5782fa9 Added data support for silverfish blocks. 2011-09-17 14:11:59 -04:00
ece3934994 Abstracted cycler tool methods to BlockData and optimized them slightly, as well as adding support for many new blocks. 2011-09-17 01:44:10 -04:00
b10498b9c7 Added 'xp' as a parameter of the /remove command to remove experience orbs. 2011-09-17 01:44:10 -04:00
d6ed17dd9d Made some variables final. 2011-09-16 05:48:09 +02:00
633145d796 Adjusted some BlockType flags.
Beds, glass panes and fence gates should no longer be placed last
Fence gates can no longer be passed through, since they can't, if they're closed.
2011-09-16 05:46:07 +02:00
7798319896 Optimized all of the public static boolean BlockType.*(int id) functions by using HashSets and put the blockDrops HashMap next to the getDroppedBlock function. 2011-09-16 05:02:39 +02:00
f0308efdd0 Made the static initializer for BlockType.blockDrops refer to the BlockID constants instead of having the literal IDs. 2011-09-16 03:32:58 +02:00
19eedecdaf Re-re-introduced a small optimization in the flag parser. 2011-09-16 02:16:11 +02:00
9371202a12 Cleanup BlockType and added a missing block 2011-09-14 21:27:24 -04:00
afa8e873e9 Reverted block id checking in BukkitWorld to prevent false positives and made LoclWorld use the internal list for easier updates 2011-09-14 21:27:24 -04:00
bd52ed5c33 Fixed plugin.yml for dumb people 2011-09-14 18:14:42 -07:00
75e843b965 Some small improvements to value flags, and a unit test. 2011-09-14 17:59:18 -07:00
6cdfd86f0b CommandContext:
- Adjusted comment of CommandContext(String[] args, Set<Character> valueFlags) to reflect the actual semantics
- Optimized several parts of the parser (still not happy with the frequent reallocations inside removePortionOfArray)
- Someone (unintentionally?) forgot to break if a non-flag argument was found. If this was indeed intended behaviour, just change the "break;" in line 83 to "continue;".
- Reduced the number of nested control structures a bit.
2011-09-14 18:56:42 +02:00
cb927d17e1 Fixed a warning. 2011-09-14 18:33:07 +02:00
6f43c6a312 Updated for 1.8 blocks and items 2011-09-13 22:47:17 -07:00
2f390e9938 Added multiword args and some improvements to value flags. 2011-09-13 22:47:17 -07:00
c38a6b0677 Bug fixes 2011-09-09 15:15:03 -07:00
6b3f19f857 Minor cleanup of WEPIF constructors 2011-09-07 17:56:39 -07:00
703131107d Fix dinnerperms wildcard matching & group enumeration. 2011-09-05 20:53:11 -07:00
6f1d263e16 Added getting of the Bukkit player to BukkitPlayer (for RegionBook) 2011-09-04 19:29:45 -07:00
3bcd9a932b Replaced lots of else if constructs by switch/case and other simpler constructs. 2011-09-05 04:20:36 +02:00