From 5d4961a615804ad06c7b6827ca2dde37c9dbcead Mon Sep 17 00:00:00 2001 From: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> Date: Thu, 21 Sep 2023 09:18:08 -0700 Subject: [PATCH 1/2] Update more javadoc --- .../java/com/simibubi/create/foundation/data/LangMerger.java | 3 ++- .../java/com/simibubi/create/foundation/data/LangPartial.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/foundation/data/LangMerger.java b/src/main/java/com/simibubi/create/foundation/data/LangMerger.java index 080148a36..e3dac1c99 100644 --- a/src/main/java/com/simibubi/create/foundation/data/LangMerger.java +++ b/src/main/java/com/simibubi/create/foundation/data/LangMerger.java @@ -17,6 +17,7 @@ import com.google.gson.JsonObject; import com.simibubi.create.Create; import com.simibubi.create.foundation.ponder.PonderScene; import com.tterrag.registrate.AbstractRegistrate; +import com.tterrag.registrate.providers.ProviderType; import net.minecraft.data.DataGenerator; import net.minecraft.data.DataProvider; @@ -24,7 +25,7 @@ import net.minecraft.data.HashCache; import net.minecraft.util.GsonHelper; /** - * @deprecated Use {@link AbstractRegistrate#addRawLang} instead. + * @deprecated Use {@link AbstractRegistrate#addRawLang} or {@link AbstractRegistrate#addDataGenerator} with {@link ProviderType#LANG} instead. */ @Deprecated(forRemoval = true) public class LangMerger implements DataProvider { diff --git a/src/main/java/com/simibubi/create/foundation/data/LangPartial.java b/src/main/java/com/simibubi/create/foundation/data/LangPartial.java index 461c46bfc..303e0f6d7 100644 --- a/src/main/java/com/simibubi/create/foundation/data/LangPartial.java +++ b/src/main/java/com/simibubi/create/foundation/data/LangPartial.java @@ -3,9 +3,10 @@ package com.simibubi.create.foundation.data; import com.google.gson.JsonElement; import com.simibubi.create.foundation.utility.FilesHelper; import com.tterrag.registrate.AbstractRegistrate; +import com.tterrag.registrate.providers.ProviderType; /** - * @deprecated Use {@link AbstractRegistrate#addRawLang} or, if absolutely necessary, {@link CreateRegistrate#addLangPostprocessor} instead. + * @deprecated Use {@link AbstractRegistrate#addRawLang} or {@link AbstractRegistrate#addDataGenerator} with {@link ProviderType#LANG} instead. */ @Deprecated(forRemoval = true) public interface LangPartial { From 8be9b2dd0c5a13ddcfe6cb4adf23b8e0bd9ae778 Mon Sep 17 00:00:00 2001 From: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> Date: Thu, 21 Sep 2023 09:23:20 -0700 Subject: [PATCH 2/2] Update even more javadoc --- .../java/com/simibubi/create/foundation/data/LangEntry.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/foundation/data/LangEntry.java b/src/main/java/com/simibubi/create/foundation/data/LangEntry.java index 1654ded94..83b2cb4c0 100644 --- a/src/main/java/com/simibubi/create/foundation/data/LangEntry.java +++ b/src/main/java/com/simibubi/create/foundation/data/LangEntry.java @@ -1,9 +1,10 @@ package com.simibubi.create.foundation.data; import com.tterrag.registrate.AbstractRegistrate; +import com.tterrag.registrate.providers.ProviderType; /** - * @deprecated Use {@link AbstractRegistrate#addRawLang} instead. + * @deprecated Use {@link AbstractRegistrate#addRawLang} or {@link AbstractRegistrate#addDataGenerator} with {@link ProviderType#LANG} instead. */ public class LangEntry { static final String ENTRY_FORMAT = "\t\"%s\": %s,\n";