From d5552aadfa65d3c4bce4e56fca9910db37447edc Mon Sep 17 00:00:00 2001 From: Tenneb22 <126985099+Tenneb22@users.noreply.github.com> Date: Wed, 10 Jul 2024 19:47:47 +0200 Subject: [PATCH 1/4] Add Hotswapping with a JDK Adds the method of using the DCVEM or JetBrains JDK to Hotswap classes and methods. --- develop/getting-started/launching-the-game.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/develop/getting-started/launching-the-game.md b/develop/getting-started/launching-the-game.md index 404d33b5d..b67094274 100644 --- a/develop/getting-started/launching-the-game.md +++ b/develop/getting-started/launching-the-game.md @@ -3,6 +3,7 @@ title: Launching the Game description: Learn how to utilize the various launch profiles to start and debug your mods in a live game environment. authors: - IMB11 + - Tenneb22 --- # Launching the Game {#launching-the-game} @@ -36,6 +37,13 @@ You're still quite limited though: - You can't change method parameters - You can't add or remove fields +However, with the use of a special JDK, [DCVEM](https://dcevm.github.io/) (till Java 11), you are able to circumvent most of the limitations, even adding and removing classes and methods. This should allow for most changes without restarting the game. + +For Java 11+ use the [JetBrains Runtime](https://github.com/JetBrains/JetBrainsRuntime) instead and add in your run configuration the following to the VM Arguments option: +```:no-line-numbers +-XX:+AllowEnhancedClassRedefinition +``` + ## Hotswapping Mixins {#hotswapping-mixins} If you're using Mixins, you can hotswap your Mixin classes without restarting the game. This is useful for quickly testing changes to your Mixins. From 394bac8e334fd9203d7e032f0f04ca9811194bbb Mon Sep 17 00:00:00 2001 From: Tenneb22 <126985099+Tenneb22@users.noreply.github.com> Date: Wed, 10 Jul 2024 20:12:58 +0200 Subject: [PATCH 2/4] Add Hotswapping with a JDK Add the method of using the DCVEM or JetBrain Runtime JDK for hotswapping classes and methods in german. --- .../de_de/develop/getting-started/launching-the-game.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/translated/de_de/develop/getting-started/launching-the-game.md b/translated/de_de/develop/getting-started/launching-the-game.md index b1ee52497..27c349b31 100644 --- a/translated/de_de/develop/getting-started/launching-the-game.md +++ b/translated/de_de/develop/getting-started/launching-the-game.md @@ -3,6 +3,7 @@ title: Starten des Spiels description: Lerne, wie du die verschiedenen Startprofile verwendest, um deine Mods in einer Live-Spielumgebung zu starten und zu debuggen. authors: - IMB11 + - Tenneb22 --- # Starten des Spiels @@ -36,6 +37,13 @@ Du bist aber immer noch ziemlich eingeschränkt: - Du kannst die Methodenparameter nicht ändern - Du kannst keine Attribute hinzufügen oder entfernen +Mit der Nutzung des [DCVEM](https://dcevm.github.io/) JDK (Bis Java 11) hingegen, kannst du die meisten Einschränkungen umgehen, wie das Erstellen und Löschen von Klassen und Methoden. Dadurch sollten die meisten Änderungen möglich sein, ohne das Spiel neuzustarten. + +Nutze für Java 11+ stattdessen die [JetBrains Runtime](https://github.com/JetBrains/JetBrainsRuntime) und füge in deine Minecraft Start Konfigurationen Folgendes zu den VM Argumenten hinzu: +```:no-line-numbers +-XX:+AllowEnhancedClassRedefinition +``` + ## Hotswapping von Mixins Wenn du Mixins verwendest, kannst du deine Mixin-Klassen per Hotswap austauschen, ohne das Spiel neu zu starten. Dies ist nützlich, um Änderungen an deinen Mixins schnell zu testen. From a9307d5e3093b290532c5d6d462b2e394c6c924a Mon Sep 17 00:00:00 2001 From: Tenneb22 <126985099+Tenneb22@users.noreply.github.com> Date: Thu, 11 Jul 2024 14:44:23 +0200 Subject: [PATCH 3/4] Fixed lint issues and updated documentation --- develop/getting-started/launching-the-game.md | 5 +++-- .../de_de/develop/getting-started/launching-the-game.md | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/develop/getting-started/launching-the-game.md b/develop/getting-started/launching-the-game.md index b67094274..7cdfecc32 100644 --- a/develop/getting-started/launching-the-game.md +++ b/develop/getting-started/launching-the-game.md @@ -37,9 +37,10 @@ You're still quite limited though: - You can't change method parameters - You can't add or remove fields -However, with the use of a special JDK, [DCVEM](https://dcevm.github.io/) (till Java 11), you are able to circumvent most of the limitations, even adding and removing classes and methods. This should allow for most changes without restarting the game. +However, with the use the [JetBrains Runtime](https://github.com/JetBrains/JetBrainsRuntime), you are able to circumvent most of the limitations, even adding and removing classes and methods. This should allow for most changes without restarting the game. + +Also, add in your Minecraft run configuration the following to the VM Arguments option: -For Java 11+ use the [JetBrains Runtime](https://github.com/JetBrains/JetBrainsRuntime) instead and add in your run configuration the following to the VM Arguments option: ```:no-line-numbers -XX:+AllowEnhancedClassRedefinition ``` diff --git a/translated/de_de/develop/getting-started/launching-the-game.md b/translated/de_de/develop/getting-started/launching-the-game.md index 27c349b31..2745569bc 100644 --- a/translated/de_de/develop/getting-started/launching-the-game.md +++ b/translated/de_de/develop/getting-started/launching-the-game.md @@ -37,9 +37,10 @@ Du bist aber immer noch ziemlich eingeschränkt: - Du kannst die Methodenparameter nicht ändern - Du kannst keine Attribute hinzufügen oder entfernen -Mit der Nutzung des [DCVEM](https://dcevm.github.io/) JDK (Bis Java 11) hingegen, kannst du die meisten Einschränkungen umgehen, wie das Erstellen und Löschen von Klassen und Methoden. Dadurch sollten die meisten Änderungen möglich sein, ohne das Spiel neuzustarten. +Mit der Nutzung der [JetBrains Runtime](https://github.com/JetBrains/JetBrainsRuntime) hingegen, kannst du die meisten Einschränkungen umgehen, wie das Erstellen und Löschen von Klassen und Methoden. Dadurch sollten die meisten Änderungen möglich sein, ohne das Spiel neu zu starten. + +Füge außerdem in deine Minecraft Start Konfigurationen Folgendes zu den VM Argumenten hinzu: -Nutze für Java 11+ stattdessen die [JetBrains Runtime](https://github.com/JetBrains/JetBrainsRuntime) und füge in deine Minecraft Start Konfigurationen Folgendes zu den VM Argumenten hinzu: ```:no-line-numbers -XX:+AllowEnhancedClassRedefinition ``` From a77e4d838593e48fbd379ff96e84bcc8ba457c73 Mon Sep 17 00:00:00 2001 From: Tenneb22 <126985099+Tenneb22@users.noreply.github.com> Date: Thu, 11 Jul 2024 15:13:04 +0200 Subject: [PATCH 4/4] Updated grammar Co-authored-by: Miroma <136986257+its-miroma@users.noreply.github.com> --- develop/getting-started/launching-the-game.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/develop/getting-started/launching-the-game.md b/develop/getting-started/launching-the-game.md index 7cdfecc32..5d80c35d5 100644 --- a/develop/getting-started/launching-the-game.md +++ b/develop/getting-started/launching-the-game.md @@ -37,9 +37,9 @@ You're still quite limited though: - You can't change method parameters - You can't add or remove fields -However, with the use the [JetBrains Runtime](https://github.com/JetBrains/JetBrainsRuntime), you are able to circumvent most of the limitations, even adding and removing classes and methods. This should allow for most changes without restarting the game. +However, by using the [JetBrains Runtime](https://github.com/JetBrains/JetBrainsRuntime), you are able to circumvent most of the limitations, and even add or remove classes and methods. This should allow most changes to take effect without restarting the game. -Also, add in your Minecraft run configuration the following to the VM Arguments option: +Don't forget to add the following to the VM Arguments option in your Minecraft run configuration: ```:no-line-numbers -XX:+AllowEnhancedClassRedefinition