PaperMC/paper-server/patches/sources/net/minecraft/world/level
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
..
biome Optimize Biome Mob Lookups for Mob Spawning 2018-09-12 21:47:01 -04:00
block Properly handle BlockBreakEvent#isDropItems 2023-03-04 10:52:52 -08:00
border Add worldborder events 2021-01-04 22:40:34 -08:00
chunk Optimize nearest structure border iteration 2023-08-21 21:05:09 +02:00
dimension/end More DragonBattle API 2022-12-18 13:40:05 -08:00
entity Improve and expand AsyncCatcher 2021-08-25 20:17:12 -07:00
gameevent fix MapLike spam for missing key 'selector' 2023-06-14 13:17:40 -07:00
levelgen Ability to control player's insomnia and phantoms 2022-01-22 17:56:19 +01:00
material Determine lava and water fluid explosion resistance by their block explosion resistance 2023-07-13 21:32:13 +01:00
pathfinder Mob Pathfinding API 2018-09-09 13:30:00 -04:00
portal Fix a bunch of vanilla bugs 2022-07-11 11:56:41 -07:00
redstone Add source block to BlockPhysicsEvent 2022-08-07 22:16:36 +02:00
saveddata/maps Limit item frame cursors on maps 2021-05-26 15:09:33 -07:00
storage Preserve overstacked loot 2021-06-21 23:21:58 -04:00
BaseCommandBlock.java.patch Don't broadcast messages to command blocks 2022-06-16 14:22:56 -07:00
BaseSpawner.java.patch Ignore impossible spawn tick 2022-02-12 23:42:48 +08:00
BlockGetter.java.patch Don't lookup fluid state when raytracing, skip air blocks 2020-08-28 12:33:47 -07:00
ChunkPos.java.patch MC Utils 2016-03-28 20:55:47 -04:00
ClipContext.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
EmptyBlockGetter.java.patch MC Utils 2016-03-28 20:55:47 -04:00
EntityGetter.java.patch check global player list where appropriate 2022-11-22 13:16:01 -08:00
GameRules.java.patch Use array for gamerule storage 2021-05-09 16:49:49 -05:00
Level.java.patch Fix block place logic 2023-04-03 18:46:49 +02:00
LevelAccessor.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
LevelReader.java.patch MC Utils 2016-03-28 20:55:47 -04:00
LevelWriter.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
NaturalSpawner.java.patch Add '/paper mobcaps' and '/paper playermobcaps' 2021-08-16 01:31:54 -05:00
PathNavigationRegion.java.patch MC Utils 2016-03-28 20:55:47 -04:00
ServerExplosion.java.patch Prevent headless pistons from being created 2020-08-14 14:44:14 -05:00
ServerLevelAccessor.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
StructureManager.java.patch Fix swamp hut cat generation deadlock 2022-03-12 06:31:13 -08:00