Commit graph

124 commits

Author SHA1 Message Date
Bukkit/Spigot
4fd0026eb5 #703: Fix/test yaml anchors and merge
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2022-01-02 21:08:01 +01:00
Bukkit/Spigot
0503e4faed SPIGOT-6866: Fixed spaces a between comment indicator and actual comment
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-23 23:07:00 +01:00
Bukkit/Spigot
ed8a152b3a SPIGOT-3247: Comment support for YAML files
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-21 08:35:19 +11:00
Bukkit/Spigot
ab0429fddc #686: Fix contains for default section generating real sections
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-04 22:05:54 +01:00
Bukkit/Spigot
3ddde21487 SPIGOT-6830: Fix addDefaults with Configuration overrides child Sections in the defaults
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-04 21:38:45 +01:00
Bukkit/Spigot
e887c31580 SPIGOT-6762: ChatPaginator.wordWrap only transfers one modifier
By: md_5 <git@md-5.net>
2021-10-29 18:45:29 +11:00
Bukkit/Spigot
c255eb3333 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.

By: DerFrZocker <derrieple@gmail.com>
2021-08-15 08:08:11 +10:00
Bukkit/Spigot
6924afb662 #510: Add NamespacedKey#fromString() to fetch from user input
By: Parker Hawke <hawkeboyz2@hotmail.com>
2021-02-16 18:52:16 +11:00
Bukkit/Spigot
d34f1cd453 SPIGOT-6274: Reloading configuration does not clear previous values
By: blablubbabc <lukas@wirsindwir.de>
2021-01-13 08:35:37 +11:00
Bukkit/Spigot
c73564ed4b SPIGOT-6313: Revert "SPIGOT-6274: Reloading configuration does not clear previous values"
This reverts commit 885c2247d1.

By: md_5 <git@md-5.net>
2021-01-12 11:34:31 +11:00
Bukkit/Spigot
885c2247d1 SPIGOT-6274: Reloading configuration does not clear previous values
By: md_5 <git@md-5.net>
2021-01-12 09:37:26 +11:00
Bukkit/Spigot
139ca6a269 SPIGOT-6234: enum classes don't serialize properly when implementing ConfigurationSerializable
By: md_5 <git@md-5.net>
2020-11-17 12:56:36 +11:00
Bukkit/Spigot
f341d8d29a #556: Allow sending messages from specific UUIDs
By: Mariell Hoversholm <proximyst@proximyst.com>
2020-10-17 17:42:40 +11:00
Bukkit/Spigot
eed3a67ee8 Update to Minecraft 1.16.1
By: md_5 <git@md-5.net>
2020-06-25 10:00:00 +10:00
Bukkit/Spigot
d66f5c3295 Remove package-info from tests, breaks some IDEs
By: md_5 <git@md-5.net>
2020-01-29 09:24:17 +11:00
Bukkit/Spigot
0c53c95293 Add additional checkstyle checks
By: md_5 <git@md-5.net>
2020-01-24 17:37:30 +11:00
Bukkit/Spigot
d16413b877 Javadoc improvements per checkstyle
By: md_5 <git@md-5.net>
2019-12-22 09:56:28 +11:00
Bukkit/Spigot
e5c9e369ed SPIGOT-5240: Vector.angle not valid for angles very close to each other
By: md_5 <git@md-5.net>
2019-08-03 09:53:50 +10:00
Bukkit/Spigot
7a2194f937 Explicitly deprecate all MaterialData subclasses
By: md_5 <git@md-5.net>
2019-05-20 20:09:17 +10:00
Bukkit/Spigot
86dee5827e SPIGOT-4833: Allow access to LivingEntity memories
By: Yannick Lamprecht <yannicklamprecht@live.de>
2019-05-19 19:57:33 +10:00
Bukkit/Spigot
4c0157d6de SPIGOT-4815: Location.equals() not working
By: md_5 <git@md-5.net>
2019-04-30 09:36:30 +10:00
Bukkit/Spigot
82854b7bd7 Add Override annotations where appropriate
By: md_5 <git@md-5.net>
2019-04-28 11:37:52 +10:00
Bukkit/Spigot
e9ae9842f0 Apply and enforce import ordering rules
By: md_5 <git@md-5.net>
2019-04-23 14:33:57 +10:00
Bukkit/Spigot
c240b58f66 Begin implementation of CheckStyle style checking
By: md_5 <git@md-5.net>
2019-04-23 14:00:20 +10:00
Bukkit/Spigot
30a442aef7 Update to Minecraft 1.14-pre5
By: md_5 <git@md-5.net>
2019-04-23 12:00:00 +10:00
Bukkit/Spigot
4526a9f21e Add getObject methods to ConfigurationSection
By: stonar96 <minecraft.stonar96@gmail.com>
2019-03-19 23:19:09 +01:00
Bukkit/Spigot
b294ce797b Remove debug print from SyntheticEventTest
By: md_5 <git@md-5.net>
2019-03-16 20:48:55 +11:00
Bukkit/Spigot
416c865476 SPIGOT-2540: Add nullability annotations to entire Bukkit API
By: Darkyenus <darkyenus@gmail.com>
2019-03-13 17:42:57 +11:00
Bukkit/Spigot
e069a80fd8 Use TestPlugin for ConversationTest
By: md_5 <git@md-5.net>
2019-03-09 15:10:40 +11:00
Bukkit/Spigot
1c79fa6a3f Introduce rotation methods to the Vector class
By: Bjarne Koll <LynxPlay101@gmail.com>
2019-02-14 21:28:20 +01:00
Bukkit/Spigot
6a8d62ff22 SPIGOT-4558: Preserve user order in the face of copied defaults in configurations
By: md_5 <git@md-5.net>
2018-12-31 17:10:56 +11:00
Bukkit/Spigot
55523cfcfc Add ray tracing and bounding box API
By: blablubbabc <lukas@wirsindwir.de>
2018-10-26 19:59:36 +11:00
Bukkit/Spigot
017a3c55d7 SPIGOT-4439: Allow minecraft:brand channel for use by plugins.
By: md_5 <git@md-5.net>
2018-10-25 20:38:53 +11:00
Bukkit/Spigot
6ea05f1541 Make matchMaterial accept the minecraft: namespace
By: md_5 <git@md-5.net>
2018-08-29 19:26:58 +10:00
Bukkit/Spigot
8573509379 Clarify NamespacedKey error messages.
Add new tests for NamespacedKeys.

By: Senmori <thesenmori@gmail.com>
2018-07-20 13:14:30 -04:00
Bukkit/Spigot
767e4f6ccf Update to Minecraft 1.13-pre7
By: md_5 <git@md-5.net>
2018-07-15 10:00:00 +10:00
Bukkit/Spigot
536017764d Be more strict about what constitutes a valid NamespacedKey
* Brings us largely in line with what is supported by the implementation
* Adds unit tests

By: md_5 <git@md-5.net>
2018-07-10 12:21:23 +10:00
Bukkit/Spigot
417599c2ab Some minor improvements from static analysis
By: md_5 <git@md-5.net>
2017-11-07 17:28:28 +11:00
Bukkit/Spigot
28dfa926fd SPIGOT-3568: Fix single letter pagination edge case
By: md_5 <git@md-5.net>
2017-09-18 20:46:38 +10:00
Bukkit/Spigot
158afaffeb Remove Ebean ORM
By: md_5 <git@md-5.net>
2017-05-14 12:00:00 +10:00
Bukkit/Spigot
f1fb3d9462 Update to Minecraft 1.11
By: md_5 <git@md-5.net>
2016-11-17 12:40:59 +11:00
Bukkit/Spigot
7f7f1608e8 BUILDTOOLS-251: Make much of Bukkit locale independent
By: md_5 <git@md-5.net>
2016-06-26 19:31:59 +10:00
Bukkit/Spigot
640346e011 Add method to check configuration path existence, ignoring defaults.
By: FakeNeth <cneth97@gmail.com>
2016-04-05 18:24:05 -04:00
Bukkit/Spigot
2c724bafe6 SPIGOT-2013 Added Comparator/Hopper material, enhanced Diode
By: ryanbennitt <ryanbennitt@googlemail.com>
2016-03-26 09:27:04 +11:00
Bukkit/Spigot
c432218993 SPIGOT-1682: Fixed block data for Beetroot
By: ryanbennitt <ryanbennitt@googlemail.com>
2016-03-26 09:26:20 +11:00
Bukkit/Spigot
3e1845033a SPIGOT-1464: Fixed setting Mushroom faces
By: ryanbennitt <ryanbennitt@googlemail.com>
2016-03-20 14:20:46 +00:00
Bukkit/Spigot
949890d29d SPIGOT-1638 / SPIGOT-1673: Rework Potions API
By: t00thpick1 <t00thpick1dirko@gmail.com>
2016-03-02 20:45:27 -05:00
Bukkit/Spigot
f2fcb9f8bd SPIGOT-1389: Fixed issues with setting tree species by expanding API
By: ryanbennitt <ryanbennitt@googlemail.com>
2016-03-01 08:30:03 +11:00
Bukkit/Spigot
0d19656632 SPIGOT-1393: Fixed door direction mask
By: ryanbennitt <ryanbennitt@googlemail.com>
2016-01-11 18:07:51 +00:00
Bukkit/Spigot
5232a2cbba SPIGOT-918: Add constructor for DyeColor to Dye
By: t7seven7t <t7seven7t@gmail.com>
2015-08-11 10:10:17 -08:00