38 Commits

Author SHA1 Message Date
md_5
459c38af30
Update to Minecraft 1.21.2 2024-10-23 02:15:00 +11:00
md_5
a4c2ee70db
Update to Minecraft 1.21 2024-06-14 01:05:00 +10:00
DerFrZocker
9003845569
SPIGOT-7676: Enforce locale parameter in toLowerCase and toUpperCase method calls and always use root locale 2024-06-03 07:18:17 +10:00
md_5
735b2d0d7f
Update to Minecraft 1.20.5 2024-04-24 01:15:00 +10:00
Doc
29b6bb79bf
SPIGOT-7587: Remove fixes for now-resolved MC-142590 and MC-109346 2024-03-10 09:20:54 +11:00
md_5
07e5dd5d59
Update to Minecraft 1.20.3 2023-12-06 03:40:00 +11:00
md_5
6d4b25bf19
Increase diff stability 2023-09-22 02:57:13 +10:00
md_5
28c1023286
Update to Minecraft 1.20.2 2023-09-22 02:40:00 +10:00
md_5
db4ba28978
SPIGOT-7467: Add getAddress to RemoteConsoleCommandSender 2023-08-26 18:19:22 +10:00
md_5
d91e5aa0b6
SPIGOT-7447: Rewrite --forceUpgrade to minimise diff and properly handle CraftBukkit world layout 2023-08-07 20:16:07 +10:00
md_5
921ae06d60
Revert "SPIGOT-7447: Fix --forceUpgrade"
This reverts commit 70e0bc050a2ef1bb5b0d8ac97be24484f3891ceb.
2023-08-07 07:53:30 +10:00
md_5
70e0bc050a
SPIGOT-7447: Fix --forceUpgrade 2023-08-05 10:01:59 +10:00
md_5
e1188ed3a2
Update to Minecraft 1.20 2023-06-08 01:30:00 +10:00
md_5
bcedf28a1b
Update to Minecraft 1.19.4 2023-03-15 03:30:00 +11:00
md_5
2ed3e3e6e5
SPIGOT-7210: Fix structures in custom worlds 2022-12-16 11:13:10 +11:00
md_5
585ab5ba1b
SPIGOT-7207: WorldCreator creates world as super flat even when normal is specified 2022-12-14 13:47:32 +11:00
md_5
19e6be0209
Update to Minecraft 1.19.3 2022-12-08 03:00:00 +11:00
md_5
d45057c597
SPIGOT-7089: Crash when command blocks attempt to load worlds 2022-08-14 10:46:41 +10:00
md_5
8f3647242a
SPIGOT-7127: /say doesn't work from console 2022-08-01 22:07:48 +10:00
md_5
6da82662bb
Update to Minecraft 1.19.1 2022-07-28 04:00:00 +10:00
md_5
64c15270e7
Update to Minecraft 1.19 2022-06-08 02:00:00 +10:00
md_5
4ed5af5e63
SPIGOT-6956: Reduce differences caused by setKeepSpawnInMemory(false) 2022-03-04 18:53:19 +11:00
md_5
05a38da190
Update to Minecraft 1.18.2 2022-03-01 02:00:00 +11:00
DerFrZocker
507e2f6512
#1004: Call WorldInitEvent before any chunks are generated 2022-02-01 08:13:13 +11:00
md_5
03b7252338
SPIGOT-6823: Fix loading custom world in combination with superflat 2021-12-03 08:34:38 +11:00
md_5
5a39a236c1
Update to Minecraft 1.18-pre8 2021-11-25 08:00:00 +11:00
md_5
37e63e63e8
Fix loading / creating secondary worlds (nether/end) 2021-11-23 15:03:34 +11:00
md_5
a7b8b0270a
Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
DerFrZocker
4f6bcc84f9
SPIGOT-5880, SPIGOT-5567: New ChunkGenerator API
## **Current API**
The current world generation API is very old and limited when you want to make more complex world generation. Resulting in some hard to fix bugs such as that you cannot modify blocks outside the chunk in the BlockPopulator (which should and was per the docs possible), or strange behavior such as SPIGOT-5880.

## **New API**
With the new API, the generation is more separate in multiple methods and is more in line with Vanilla chunk generation. The new API is designed to as future proof as possible. If for example a new generation step is added it can easily also be added as a step in API by simply creating the method for it. On the other side if a generation step gets removed, the method can easily be called after another, which is the case with surface and bedrock. The new API and changes are also fully backwards compatible with old chunk generators.

### **Changes in the new api**
**Extra generation steps:**
Noise, surface, bedrock and caves are added as steps. With those generation steps three extra methods for Vanilla generation are also added. Those new methods provide the ChunkData instead of returning one. The reason for this is, that the ChunkData is now backed by a ChunkAccess. With this, each step has the information of the step before and the Vanilla information (if chosen by setting a 'should' method to true). The old method is deprecated.

**New class BiomeProvider**
The BiomeProvider acts as Biome source and wrapper for the NMS class WorldChunkManager. With this the underlying Vanilla ChunkGeneration knows which Biome to use for the structure and decoration generation. (Fixes: SPIGOT-5880). Although the List of Biomes which is required in BiomeProvider, is currently not much in use in Vanilla, I decided to add it to future proof the API when it may be required in later versions of Minecraft.
The BiomeProvider is also separated from the ChunkGenerator for plugins which only want to change the biome map, such as single Biome worlds or if some biomes should be more present than others.

**Deprecated isParallelCapable**
Mojang has and is pushing to a more multi threaded chunk generation. This should also be the case for custom chunk generators. This is why the new API only supports multi threaded generation. This does not affect the old API, which is still checking this.

**Base height method added**
This method was added to also bring the Minecraft generator and Bukkit generator more in line. With this it is possible to return the max height of a location (before decorations). This is useful to let most structures know were to place them. This fixes SPIGOT-5567. (This fixes not all structures placement, desert pyramids for example are still way up at y-level 64, This however is more a vanilla bug and should be fixed at Mojangs end).

**WorldInfo Class**
The World object was swapped for a WorldInfo object. This is because many methods of the World object won't work during world generation and would mostly likely result in a deadlock. It contains any information a plugin should need to identify the world.

**BlockPopulator Changes**
Instead of directly manipulating a chunk, changes are now made to a new class LimitedRegion, this class provides methods to populated the chunk and its surrounding area. The wrapping is done so that the population can be moved into the place where Minecraft generates decorations. Where there is no chunk to access yet. By moving it into this place the generation is now async and the surrounding area of the chunk can also be used.

For common methods between the World and LimitedRegion a RegionAccessor was added.
2021-08-15 08:08:16 +10:00
md_5
fb556bfa14
Update to Minecraft 1.17.1 2021-07-07 00:00:00 +10:00
md_5
40caacc846
SPIGOT-6526: World entities are not populated when plugin onEnable is called 2021-06-13 15:05:32 +10:00
md_5
4d2c780090
Fix second usage of worldGenSettings just in case 2021-06-11 16:47:43 +10:00
md_5
5182f92349
SPIGOT-6504: Fix generating fresh worlds 2021-06-11 16:16:41 +10:00
md_5
e2f5ea34e9
Update to Minecraft 1.17 2021-06-11 15:00:00 +10:00
DerFrZocker
cc21bae977
SPIGOT-5569: Call WorldInitEvent before any chunks are getting generated 2021-05-18 08:18:20 +10:00
Martoph
9294ebbf05
SPIGOT-5877: Add support for Vanilla custom dimensions 2021-04-16 10:36:05 +10:00
md_5
90d6905b15
Repackage NMS 2021-03-16 09:00:00 +11:00
md_5
69cf961d83
Repackage patches 2021-03-16 09:00:00 +11:00