PaperMC/paper-server/patches/sources/net/minecraft/world
Martijn Muijsers badf809fef Optimize nearest structure border iteration
Getting the nearest generated structure contains a nested set of loops that
iterates over all chunks at a specific chessboard distance. It does this by
iterating over the entire square of chunks within that distance, and checking
if the coordinates are at exactly the right distance to be on the border.

This patch optimizes the iteration by only iterating over the border chunks.
This evaluated chunks are the same, and in the same order, as before, to
ensure that the returned found structure (which may for example be a buried
treasure that will be marked on a treasure map) is the same as in vanilla.
2023-08-21 21:05:09 +02:00
..
damagesource Add critical damage API 2021-07-26 17:32:36 +02:00
effect Fire EntityChangeBlockEvent in more places 2021-08-09 20:45:46 -07:00
entity Allow trident custom damage 2022-07-12 18:01:14 +02:00
food EntityRegainHealthEvent isFastRegen API 2016-04-22 01:43:11 -05:00
inventory Fix inventories returning null Locations 2023-03-15 18:29:45 -07:00
item Expose hand in BlockCanBuildEvent 2023-08-21 14:13:42 +01:00
level Optimize nearest structure border iteration 2023-08-21 21:05:09 +02:00
scores Don't save empty scoreboard teams to scoreboard.dat 2016-05-07 23:33:08 -04:00
BossEvent.java.patch Adventure 2021-01-29 17:54:03 +01:00
CompoundContainer.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Container.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
RandomizableContainer.java.patch LootTable API and replenishable lootables 2016-05-01 21:19:14 -04:00
SimpleContainer.java.patch Fix inventories returning null Locations 2023-03-15 18:29:45 -07:00