summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/WorldGenerator.java
Commit message (Collapse)AuthorAgeLines
* Refactored BlockPlaceEvent and BlockChangeDelegate. Adds BUKKIT-5558bloodshot2014-04-23-50/+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.
* Maintain old setType method in WorldGenerator. Fixes BUKKIT-4915Nate Mortensen2013-12-02-9/+17
| | | | | | | | | | | | | | | | WorldGenerator setType and setTypeAndData have their arguments changed to add in support for CraftBlockChangeDelegate, which changes the method signature. This change in the method signature breaks any WorldGenerators that aren't modified to use CraftBlockChangeDelegate. This commit fixes the issue by readding the old method and maintaining the CraftBlockChangeDelegate method. This makes it so that there is a compatible method for both CraftBlockChangeDelegate WorldGenerators and unmodified WorldGenerators. Additionally, this commit reduces and corrects the diffs in WorldGenerator, moving the fix for layering violations to CraftBlockChangeDelegate.
* Update CraftBukkit to Minecraft 1.7.2mbax2013-11-30-9/+8
|
* Update CraftBukkit to 1.6.1Nate Mortensen2013-07-01-0/+1
|
* Don't do physics updates in world generation. Fixes BUKKIT-3747Travis Watkins2013-04-16-1/+7
|
* Update CraftBukkit to Minecraft 1.5Travis Watkins2013-03-15-2/+1
|
* Update CraftBukkit to Minecraft 1.4(.2).Travis Watkins2012-10-27-0/+1
|
* Update CraftBukkit to Minecraft 1.3.1feildmaster2012-08-02-4/+0
|
* Updated version to 1.2.5-R0.1-SNAPSHOTDinnerbone (Laptop)2012-03-30-2/+2
|
* Fixed fatal crash at world generation.Nathan Adams2012-03-23-1/+1
|
* Updated to Minecraft version 1.2.4. Updated version string to 1.2.4-R0.1.Nathan Adams2012-03-22-5/+7
|
* [Bleeding] Prevent update inconsistencies on generation/decoration that span ↵Mike Primm2012-03-22-0/+7
| | | | chunks. Fixes BUKKIT-871
* [Bleeding] Added support for all TreeType entries to ↵zml20082012-03-21-1/+1
| | | | CraftWorld.generateTree(). Addresses BUKKIT-1161
* Update for 1.1_01 renames.Erik Broes2012-01-15-1/+1
| | | | | 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 CraftBukkit comments.Erik Broes2012-01-12-2/+2
|
* Update for 1.0.0Erik Broes2011-11-20-0/+31