Commit Graph

147 Commits

Author SHA1 Message Date
TomyLobo
cacf2cabe2 Moved the spawn egg entry in ItemType further up. 2012-08-15 19:16:24 +02:00
TomyLobo
5e4c809f66 Added ender chest to flip/rotate. 2012-08-14 01:32:35 +02:00
TomyLobo
bcf4204ffc Added tripwire hook to flip/rotate. 2012-08-14 01:30:45 +02:00
TomyLobo
df3062a68f Added cocoa plant to cycle/flip/rotate. 2012-08-14 01:20:50 +02:00
TomyLobo
3497d9e557 Added 1.3 stairs and wooden steps to cycle/flip/rotate. 2012-08-14 01:20:50 +02:00
TomyLobo
b07a084b8a Added cocoa plant to centralTopLimit. 2012-08-14 01:18:31 +02:00
TomyLobo
e8ea4e4ef1 Added 1.3 blocks to getBlockBagItem. 2012-08-14 00:35:24 +02:00
TomyLobo
082871f46d Added 1.3 blocks to isContainerBlock. 2012-08-13 23:59:37 +02:00
TomyLobo
c2d7ab5bff Added 1.3 blocks to isRedstoneBlock. 2012-08-13 23:57:53 +02:00
TomyLobo
0b0b39b025 Added 1.3 blocks to isRedstoneSource. 2012-08-13 23:57:12 +02:00
TomyLobo
7c4cf0494f Added 1.3 blocks to isNaturalTerrainBlock. 2012-08-13 23:56:20 +02:00
TomyLobo
22ed05576c Added 1.3 blocks to emitsLight. 2012-08-13 23:55:10 +02:00
TomyLobo
38a1d8fcc1 Added 1.3 blocks to isTranslucent. 2012-08-13 23:53:42 +02:00
TomyLobo
ad4213e1e3 Added leaves, piston extension, mobspawner, wooden/cobble stairs, chest and cactus to isTranslucent. 2012-08-13 23:52:47 +02:00
TomyLobo
ec4dbac165 Added 1.3 blocks to getAttachment. 2012-08-13 23:41:25 +02:00
TomyLobo
42a64f72a1 Added 1.3 blocks to shouldPlaceLast. 2012-08-13 23:28:36 +02:00
TomyLobo
d88691d450 Added 1.3 blocks to canPassThrough. 2012-08-13 23:26:28 +02:00
TomyLobo
69cf59565b Added 1.3 blocks to usesData. 2012-08-13 23:23:50 +02:00
TomyLobo
0e897778b0 Removed lily pad from canPassThrough. 2012-08-12 16:00:14 +02:00
TomyLobo
aaa01eb608 meh 2012-08-12 16:00:13 +02:00
TomyLobo
b2e442e53d Added BlockType.centralTopLimit.
Returns the y offset a player falls to when falling onto the top of a block at xp+0.5/zp+0.5.
2012-08-12 15:56:47 +02:00
Ammar Askar
d40ef103ba Update for 1.3 blocks 2012-08-12 14:41:50 +02:00
zml2008
0d279e7706 Added initial support for AddBlocks (4096 ids) in schematics 2012-07-08 04:05:24 -07:00
TomyLobo
b2aeb2e1f1 Added upside-down stairs to //cycle. 2012-06-15 00:11:28 +02:00
TomyLobo
5a9bddd252 Added flip and rotate code for upside-down stairs and steps. 2012-06-07 12:55:58 +02:00
aumgn
8c36047cbb Fix warnings 2012-04-10 13:12:24 +02:00
zml2008
3bfb12c051 Cleaned up ContainerBlock inventory reading from NBT
Changed ListTag's List parameter to List<? extends Tag>
2012-03-29 21:14:45 -07:00
zml2008
90fb512a45 Added planks and sandstone to the usesData list 2012-03-25 18:02:49 -07:00
Meaglin
8aabfb0c67 Implemented new Anvil saving format, fixed old chunk saving format.
- Added 'Chunk' Interface.
 - Moved old 'Chunk' to 'OldChunk' and replaced dynamic world height reference with '128.
 - Added 'AnvilChunk' implementing the new anvil chunk format.
 - Added temp fixes to FileMcRegionChunkStore.java, TrueZipMcRegionChunkStore.java and ZippedMcRegionChunkStore.java too allow them to read .mca files.
 - Added the new 'IntArrayTag' since the new heightmap tag wasn't recognized.
 - Moved 'getChildTag' to 'NBTUtils'.
2012-03-06 22:41:49 +01:00
zml2008
40aa6aca60 Use the correct Map<String, Tag> when writing enchantments 2012-03-03 16:47:22 -08:00
zml2008
a62cf3a059 Updated for new 1.2 blocks 2012-03-01 20:33:03 -08:00
Meaglin
4afd2944db Fix Dispensers, Furnaces and remove redundant casts. 2012-03-01 20:33:03 -08:00
Meaglin
31e645d500 Fix restoring enchantments from snapshots/schematics. 2012-03-01 20:33:02 -08:00
zml2008
2f2d3f8045 Lookup by id if the string passed to Block/ItemType.lookup() is an integer 2012-02-04 21:04:20 -08:00
TomyLobo
aaac36b1cc Factored lookup code from BlockType and ItemType into a method in StringUtil. 2012-01-31 17:01:06 +01:00
TomyLobo
d2c64e9304 BaseBlock changes
- Changed up EditSession.replaceBlocks to make BaseBlock.inIterable unnecessary.
- Returned BaseBlock.inIterable to its old state and deprecated it.
- Renamed the old BaseBlock.equals to equalsFuzzy, changed the parameter type and took the casts and type checks out.
- Made a new BaseBlock.equals that is consistent with the rules java prescribes.
2012-01-31 16:57:40 +01:00
zml2008
71fc98ba1c Fix handling of empty strings passed to Block/ItemType 2012-01-24 19:27:17 -08:00
zml2008
9830d9d326 Revert "Using trove collections for most internal stuff, using array access in BlockType and ItemType"
This reverts commit 410ac65c6a.
This has been causing compatibility issues with Spout. I haven't been ble to reproduce, but until somebody figures out why, this gets to go
2012-01-22 19:04:56 -08:00
TomyLobo
ca817e4e11 Optimized BaseBlock.inIterable a bit. 2012-01-23 03:26:52 +01: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
410ac65c6a Using trove collections for most internal stuff, using array access in BlockType and ItemType 2012-01-16 19:27:18 -08:00
zml2008
31bd786fdf Fix some piston operations where pistons have their state toggled mid-operation 2012-01-16 16:49:54 -08:00
zml2008
28d29d3927 Added the spawn egg from 1.1 2012-01-14 18:03:54 -08:00
zml2008
255e342353 Added enchantment support 2011-11-27 15:29:51 -08:00
zml2008
51dd7a0c9c Improved handling of valid blocks not in BlockType and added dragon egg to BlockType 2011-11-27 15:29:26 -08:00
TomyLobo
7e13b60a51 Cleanup 2011-11-23 04:48:40 +01:00
TomyLobo
af1c600fc9 Non-leaf blocks should no longer show up as leaves in the inventory when using block bags. 2011-11-05 17:58:51 +01:00
TomyLobo
2d0880e38d Piston extension and moving piece now put nothing into the blockbag. 2011-11-04 13:53:21 +01:00
TomyLobo
8e368ceef1 Employed a set of consistent rules for getDroppedBlock(type, data) and renamed it to getBlockBagItem. 2011-11-04 13:27:51 +01:00
TomyLobo
d9b8285a35 Made ItemType.usesDamageValue a bit more sane. 2011-11-03 18:34:20 +01:00
TomyLobo
429bfe9faa Added BlockType.getDroppedBlock(int type, int data)
It currently still ignores the data value, but there's a framework in place to add data values.
2011-11-03 15:51:22 +01:00
TomyLobo
2edf3559d8 EditSession: Split off a queueFinal, which contains only blocks that can be attached to other attached blocks.
This a speed improvement, since the recursive attachment checker turned out to be quite slow.
2011-11-01 21:58:50 +01:00
Wizjany
2b9f0be8df Updated to 1.9 2011-10-29 13:32:51 -04:00
Wizjany
dbc3053195 Fixed & updated BlockType.usesDamageValue 2011-10-26 16:50:46 -04: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
Wizjany
68fe0d3438 Cleanup. Cycler uses BaseBlock instead of BlockData directly. Fixed a few BlockType method inaccuracies. 2011-10-04 17:16:20 -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
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
TomyLobo
7c18327fdc Fixed extended piston rotation. 2011-09-24 11:20:37 +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
088001f099 Used ItemID in ItemType 2011-09-19 08:08:05 +02:00
TomyLobo
51d4b572cb De-craftbooked some copyright notices. 2011-09-19 07:43:49 +02:00
TomyLobo
5b5c25f1ae Added an ItemID class, containing all the item IDs. 2011-09-19 07:39:28 +02:00
TomyLobo
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
Wizjany
43809a705d More BlockType cleanup 2011-09-19 00:43:39 -04:00
zml2008
3f369f104a Abstracted type detection of simulateBlockMine into BlockType. 2011-09-17 22:00:14 -07:00
zml2008
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
md-5
46ba1c7f5b Added mob type enum and subsequently removed case sensitivity from //set with mobspawners. 2011-09-17 21:08:15 -04:00
Wizjany
f7c5782fa9 Added data support for silverfish blocks. 2011-09-17 14:11:59 -04:00
TomyLobo
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
TomyLobo
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
TomyLobo
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
Wizjany
9371202a12 Cleanup BlockType and added a missing block 2011-09-14 21:27:24 -04:00
zml2008
6f43c6a312 Updated for 1.8 blocks and items 2011-09-13 22:47:17 -07:00
Wizjany
4c00a24c1d Abstracted all block IDs to BlockID and item ids to ItemType. Overloaded recently changed methods for compatibility and cleaned a few things up. 2011-09-03 13:01:51 -04:00
TomyLobo
b8a310dfdc Changed data type of BaseBlock.data from char to byte 2011-08-29 14:46:35 +02:00
zml2008
1562f17540 Added block damage support to //replace and //replacenear 2011-08-29 00:08:06 -07:00
TomyLobo
8e84e7ae18 - Added proper block flipping code for all blocks with proper rotation code except sign posts
- Fixed block rotation code for some blocks and cleaned it up a lot
- Added block rotation code for powered rails and detector rails
- //flip now flips all blocks, not just half of them
2011-08-26 13:14:39 +02:00
zml2008
59ade7a386 Abstracted natural blocktype checking to BlockType.isNaturalBlock 2011-08-17 13:36:17 -07:00
Jacob Scott
66dcc99809 fixed superpickaxe for gravel & lightstone, preprocessors faster than postprocessors, added methods so same-type changes are visble client-side, fixed fixliquid & setblocks block count 2011-07-15 02:00:48 -05:00
Wizjany
084e9456e1 Added 1.7 blocks to BlockType methods. 2011-07-02 15:13:21 -04:00
Wizjany
5231352f6c Updated item ids and names for 1.7 2011-07-01 00:26:40 -04:00
Wizjany
1aa08104b5 Made a few commands obey //toggleplace 2011-06-21 12:44:12 -04:00
sk89q
95c60343c7 Made 'brick' => brick block, not brick bar. 2011-06-05 14:37:11 -07:00
sk89q
f0b2fcc13f Improved item/block name matching. 2011-06-05 11:59:23 -07:00
Wizjany
cc859880aa Added missing block to the list 2011-06-02 00:33:41 -04:00
Wizjany
5d44053429 Updated for MC 1.6 2011-05-26 16:09:33 -04:00
Wizjany
e2c17cbf46 Added yet another method to BlockType (rails) 2011-05-11 20:04:29 -04:00
sk89q
582b98dad0 More file moving. 2011-05-01 01:30:33 -07:00