High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies
Go to file
Aikar 5ef5f3b67b
Optimize Server World Map
Minecraft moved worlds to a hashmap in 1.13.1.
This creates inconsistent order for iteration of the map.

This patch restores World management to be back as an Array.

.values() will allow us to iterate as it was pre 1.13.1 by
ArrayList, giving consistent ordering and effecient iteration performance.

KeySet and EntrySet iteration is proxied to the List iterator,
and should retain manipulation behavior but nothing should be doing that.

Getting a World by dimension ID is now back a constant time operation.

Hopefully no other plugins try to mess with this map, as we are only handling
known NMS used methods, but we can add more if naughty plugins are found later.

Multiverse was tested with this and no breakage.
2018-09-18 01:34:44 -04:00
.github/ISSUE_TEMPLATE [CI-SKIP] Add newlines in templates for readability 2018-05-22 16:37:23 -05:00
licenses [CI-SKIP] Clarify project licensing 2018-03-06 20:41:03 -05:00
removed [CI-SKIP] Move removed patches back down a level 2018-09-01 15:39:16 -04:00
scripts Concurrency and Performance Improvements to DataFixers 2018-09-15 13:22:14 -04:00
Spigot-API-Patches Implement furnace cook speed multiplier API. (#1437) 2018-09-17 18:53:27 -04:00
Spigot-Server-Patches Optimize Server World Map 2018-09-18 01:34:44 -04:00
work [Auto] Updated Upstream (Bukkit/CraftBukkit) 2018-09-17 03:06:34 -04:00
.editorconfig [CI-SKIP] add .editorconfig for base code style settings 2018-08-07 01:14:22 -04:00
.gitignore Switch to using ForgeFlower for Paper Only mc-dev imports 2018-08-31 23:47:57 -04:00
.gitmodules Cleanup and restructure the project 2016-04-01 23:15:41 -05:00
.travis.yml Move mc decompile source to its own folder 2017-08-12 18:56:59 -05:00
CONTRIBUTING.md [CI-SKIP] Add note on 1.12.2 status to CONTRIBUTING.md 2018-09-11 18:11:28 -04:00
LICENSE.md Fix view distance API (#1419) 2018-09-09 14:38:27 -04:00
paper Updated Upstream (Bukkit/CraftBukkit) 2018-08-31 23:53:54 -04:00
pom.xml Update URLs 2018-05-19 01:29:05 -05:00
README.md [CI-SKIP] Use papermc.io domain and add info for plugin devs 2018-09-11 19:50:07 -04:00

Paper Build Status

High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies.

Support and Project Discussion:

How To (Server Admins)

Paperclip is a jar file that you can download and run just like a normal jar file.

Download a copy of paperclip.jar from our build server, here.

Run the Paperclip jar directly from your server. Just like old times

How To (Plugin Developers)

  • See our API patches here
  • See upcoming, pending, and recently added API here
  • Paper API javadocs here: papermc.io/javadocs
  • Maven Repo (for paper-api): https://papermc.io/repo/repository/maven-public
  • Latest API version: 1.13.1-R0.1-SNAPSHOT

How To (Compiling Jar From Source)

To compile Paper, you need JDK 8, maven, and an internet connection.

Clone this repo, run ./paper jar from bash, get files.

How To (Pull Request)

See Contributing

Special Thanks To:

YourKit-Logo

YourKit, makers of the outstanding java profiler, support open source projects of all kinds with their full featured Java and .NET application profilers. We thank them for granting Paper an OSS license so that we can make our software the best it can be.