summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/ItemBlock.java
Commit message (Collapse)AuthorAgeLines
* Refactored BlockPlaceEvent and BlockChangeDelegate. Adds BUKKIT-5558bloodshot2014-04-23-138/+0
| | | | | | | | | | | | | | | | | | | | | | | | | 23 classes have been removed as they are no longer needed using the new capture logic. This should help quite a bit with future MC updates. BlockPlaceEvent Refactor Before calling Item.interactWith, a recording flag is turned on for setTypeAndData to capture a blockstate for each block that attempts to be set. When a block place event is cancelled, the recorded blockstate, stack size, and metadata will revert back to the captured state. If the event is not cancelled, a notification will be sent to clients and block physics will be updated. BlockChangeDelegate Refactor Now that we have the ability to capture blockstates through world, there is no need to modify world gen classes with BlockChangeDelegate. Instead we will simply capture blocks during world generation in order to "replay" all of the captured blockstates to send back to delegates. StructureGrowDelegate and BlockSapling.TreeGenerator have also been removed as part of this change. BlockSapling and BlockMushroom will capture blockstates the same as block placement and revert back any grow events if needed.
* [Bleeding] Fix incorrect Cocoa Bean orientation. Addresses BUKKIT-5182t00thpick12013-12-17-0/+5
| | | | | | | When ItemDye is used to place a Cocoa Block, the postPlace() method should not be called, as data is handled within the ItemDye class. However, if Cocoa is placed via its block item, postPlace() should still be called to mirror vanilla behavior.
* Update CraftBukkit to Minecraft 1.7.2mbax2013-11-30-30/+32
|
* Update CraftBukkit to 1.6.2mbax2013-07-08-1/+3
|
* Update CraftBukkit to 1.6.1Nate Mortensen2013-07-01-1/+3
|
* Don't update physics when block place is cancelled. Fixes BUKKIT-3939Travis Watkins2013-03-31-2/+2
| | | | | | | | | When a block placement happens we currently update physics on the attempted placement and update again if the placement is cancelled. To correct the first one we simply set the block without applying physics. To correct the second we have to add a new method to BlockState that lets us update without applying physics and use this method method when putting the block back.
* Cleanup comments, formatting, etcTravis Watkins2013-03-25-2/+2
|
* Update CraftBukkit to Minecraft 1.5Travis Watkins2013-03-15-10/+6
|
* Ignore block functions for skulls on BlockPlace. Fixes BUKKIT-3495feildmaster2013-01-27-1/+2
| | | | | Skulls don't normally get block data applied to them, so we shouldn't apply it either.
* Direct all BlockPlaceEvents to a singular location. Fixes BUKKIT-3438feildmaster2013-01-27-3/+4
| | | | | | | | | | By having a single function to process BlockPlacement logic, we make it so that there is consistent behavior throughout all BlockPlace events. This should allow for easier troubleshooting and less diffs in source. This also fixes BUKKIT-3463 by including the correct coordinates that were clicked to the event.
* Fix TileEntities and Blocks getting out of sync. Fixes BUKKIT-3501feildmaster2013-01-27-1/+4
| | | | | | | | | | Also fixes: BUKKIT-3477 and BUKKIT-3488 Minecraft likes to double check that tile entities get set after they are placed, however we didn't set tile entities until after our event was called. This caused the world to have multiple tile entities in a single block location; to fix this we now set tile entities before the event.
* Refactor processBlockPlace logic. Fixes BUKKIT-3406 and BUKKIT-3454feildmaster2013-01-19-4/+12
| | | | | | | The previous logic was faulty since it lost the logic of "placing" the block. It was also taking into account data that could have been changed outside of the processing of this event, which is irrelevant to the processing of this event.
* Get the BlockState before changing the block. Fixes BUKKIT-3441feildmaster2013-01-16-2/+4
|
* Throw BlockPlaceEvent when placing double slabs. Fixes BUKKIT-2469feildmaster2013-01-16-37/+42
|
* Update CraftBukkit to Minecraft 1.4.6feildmaster2012-12-20-1/+1
|
* Update CraftBukkit to Minecraft 1.4.4.Travis Watkins2012-11-13-3/+5
|
* Update CraftBukkit to Minecraft 1.4(.2).Travis Watkins2012-10-27-4/+4
|
* Update CraftBukkit to Minecraft 1.3.1feildmaster2012-08-02-12/+20
|
* Cleaned up CraftBukkit comments in NMS.Wesley Wolfe2012-07-23-6/+2
| | | | | | | | | | | | | Added newlines at the end of files Fixed improper line endings on some files Matched start - end comments Added some missing comments for diffs Fixed syntax on some spots Minimized some diff Removed some no longer used files Added comment on some required files with no changes Fixed imports of items used once Added imports for items used more than once
* Assert that the block is still present after placement. Fixes BUKKIT-1399feildmaster2012-05-17-1/+1
|
* Updated to Minecraft version 1.2.4. Updated version string to 1.2.4-R0.1.Nathan Adams2012-03-22-2/+2
|
* Updated CraftBukkit to 1.2Nathan Adams2012-03-01-6/+6
|
* Updated to rename revision 02Erik Broes2012-03-01-1/+1
|
* [Bleeding] Use player.getItemInHand(), instead of a new ItemStack. Addresses ↵Feildmaster2012-02-23-1/+1
| | | | BUKKIT-767
* Made steps fire a BlockPlace event. Fixes BUKKIT-394Tahg2012-02-09-19/+8
|
* Allow plugins to change ID and Data during BlockPlace event.Tahg2012-02-03-15/+8
| | | | Fixes BUKKIT-674
* Fixed BlockPlace event. Fixes BUKKIT-663Tahg2012-01-30-0/+4
|
* Moved BlockPlace event.Tahg2012-01-28-28/+6
|
* Fix formatting.Erik Broes2012-01-15-2/+1
|
* Update for 1.1_01 renames.Erik Broes2012-01-15-2/+2
| | | | | We know these updates (can) break plugins bypassing Bukkit. They are needed for smooth updates however. There will be another one right before before 1.1-R1.
* Fix missing data-value when placing a stair-block (somehow gets set after ↵Erik Broes2011-12-01-0/+5
| | | | the fact) - Fixes BUKKIT-40
* Update for 1.0.0Erik Broes2011-11-20-65/+62
|
* Fixed a couple of minor obf translationsDinnerbone2011-09-15-2/+5
|
* Update for Minecraft 1.8Dinnerbone2011-09-15-59/+73
|
* Fixed BlockPlace event for doublesteps. Thanks DiddiZ!EvilSeph2011-07-28-1/+5
|
* Update to Minecraft 1.7Dinnerbone2011-06-30-1/+1
|
* Massive renaming update in nms. If you bypassed Bukkit, you will likely break.Erik Broes2011-06-27-3/+2
| | | | Also minimized all the nms diffs and generic cleanups all around.
* Generic cleanupErik Broes2011-06-12-2/+2
|
* Updated the block place cancellation code for steps to handle many more ↵sk89q2011-06-11-7/+13
| | | | cases. There's still one edge case left however.
* Implemented 1.6!Dinnerbone2011-05-26-9/+12
|
* Whitespace + general cleanupErik Broes2011-05-15-12/+10
|
* Update for 1.4_00_01 -- if you bypassed Bukkit, you will most likely break.Erik Broes2011-04-20-47/+47
|
* Updated to Minecraft version 1.4Dinnerbone2011-03-31-1/+1
|
* Minor cleanupsErik Broes2011-03-23-2/+0
|
* Fix BlockPlaceErik Broes2011-03-21-42/+11
|
* Fixing event namesErik Broes2011-03-21-1/+1
|
* Fix BLOCK_PLACED when placing on snow/stepErik Broes2011-03-18-6/+7
|
* Generic code cleanupErik Broes2011-02-23-3/+3
|
* possible fix for levers, ladders, and buttonsspeakeasy2011-02-23-1/+1
|
* Update to Minecraft 1.3 betaDinnerbone2011-02-23-4/+8
|