You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -65,28 +60,30 @@ public static String cbClass(String clazz) {
65
60
Class.forName(cbClass("entity.CraftBee"));
66
61
```
67
62
68
-
Minecraft's code is obfuscated. This means that the names of classes and methods are changed to make them harder to
69
-
understand. Paper deobfuscates these identifiers for development; however, to provide compatibility with legacy plugins,
70
-
Paper is re-obfuscated at runtime. You can use a library like [reflection-remapper](https://github.com/jpenilla/reflection-remapper) to automatically remap the
71
-
reflection references. This will allow you to use the de-obfuscated, Mojang-mapped, names in your code. This is recommended as
72
-
it makes the code easier to understand.
63
+
:::
73
64
74
-
### Mojang-Mapped Servers
65
+
Minecraft's code is obfuscated. This means that the names of classes and methods are changed to make them harder to
66
+
understand. Paper deobfuscates these identifiers for development and since 1.20.5, also for runtime.
75
67
76
-
:::note[Mojang-mapped runtime as of 1.20.5]
68
+
:::caution[1.20.4 and older]
77
69
78
-
As of 1.20.5, Paper ships with a Mojang-mapped runtime instead of reobfuscating the server to Spigot mappings.
79
-
For more information, see the [plugin remapping](/paper/dev/project-setup#plugin-remapping) section and [userdev](/paper/dev/userdev#1205-and-beyond) documentation covering these changes.
70
+
Previously, to provide compatibility with legacy plugins, Paper was reobfuscated at runtime.
71
+
You could use a library like [reflection-remapper](https://github.com/jpenilla/reflection-remapper) to automatically remap the
72
+
reflection references. This allowed you to use the deobfuscated, Mojang-mapped names in your code. This was recommended as
73
+
it made the code easier to understand.
80
74
81
75
:::
82
76
83
-
Running a Mojang-Mapped (moj-map) server is an excellent way to streamline your processes because you can develop using
84
-
the same mappings that will be present at runtime. This eliminates the need for remapping in your compilation. If you
85
-
are creating custom plugins for your server, we highly recommend running a moj-map server. It simplifies debugging and
86
-
allows you to hotswap plugins.
77
+
### Mojang-mapped servers
78
+
79
+
Running a Mojang-mapped (moj-map) server is an excellent way to streamline your processes because you can develop using
80
+
the same mappings that will be present at runtime. This eliminates the need for remapping in your compilation, which in
81
+
turn simplifies debugging and allows you to hotswap plugins.
87
82
88
-
In the future, the Paper server will no longer undergo remapping. By adopting Mojang mappings now, you can ensure that
89
-
your plugin won't require internal remapping when we make the switch.
83
+
As of 1.20.5, Paper ships with a Mojang-mapped runtime by default instead of reobfuscating the server to Spigot mappings.
84
+
By adopting Mojang mappings, you ensure that your plugin won't require internal remapping at runtime.
85
+
For more information, see the [plugin remapping](/paper/dev/project-setup#plugin-remapping) section
86
+
and [userdev](/paper/dev/userdev#1205-and-beyond) documentation covering these changes.
0 commit comments