diff --git a/gradle.properties b/gradle.properties index 1b96208..8e51f3c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -33,7 +33,7 @@ mod_name=3944Realms 's Lib Mod # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=MIT # The mod version. See https://semver.org/ -mod_version=0.0.20 +mod_version=0.0.22 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/top/r3944realms/lib39/datagen/value/LangKeyValue.java b/src/main/java/top/r3944realms/lib39/datagen/value/LangKeyValue.java index 4ad9232..5c180ea 100644 --- a/src/main/java/top/r3944realms/lib39/datagen/value/LangKeyValue.java +++ b/src/main/java/top/r3944realms/lib39/datagen/value/LangKeyValue.java @@ -427,6 +427,86 @@ public class LangKeyValue implements ILangKeyValue { .isDefault(isDefault) .build(); } + /** + * Copy of lang key value. + * + * @param supplier the supplier + * @param modPartEnum the mod part enum + * @param other the other + * @return the lang key value + */ + public static @NotNull LangKeyValue copyOf(Supplier supplier, ModPartEnum modPartEnum, @NotNull LangKeyValue other) { + return builder() + .supplier(supplier) + .MPE(modPartEnum) + .US_EN(other.US_EN) + .SIM_CN(other.SIM_CN) + .TRA_CN(other.TRA_CN) + .LZH(other.LZH) + .build(); + } + + /** + * Copy of lang key value. + * + * @param key the key + * @param modPartEnum the mod part enum + * @param other the other + * @return the lang key value + */ + public static @NotNull LangKeyValue copyOf(String key, ModPartEnum modPartEnum, @NotNull LangKeyValue other) { + return builder() + .key(key) + .MPE(modPartEnum) + .US_EN(other.US_EN) + .SIM_CN(other.SIM_CN) + .TRA_CN(other.TRA_CN) + .LZH(other.LZH) + .build(); + } + + /** + * Copy of lang key value. + * + * @param supplier the supplier + * @param modPartEnum the mod part enum + * @param other the other + * @param isDefault the is default + * @return the lang key value + */ + public static @NotNull LangKeyValue copyOf(Supplier supplier, ModPartEnum modPartEnum, @NotNull LangKeyValue other, boolean isDefault) { + return builder() + .supplier(supplier) + .MPE(modPartEnum) + .US_EN(other.US_EN) + .SIM_CN(other.SIM_CN) + .TRA_CN(other.TRA_CN) + .LZH(other.LZH) + .isDefault(isDefault) + .build(); + } + + /** + * Copy of lang key value. + * + * @param key the key + * @param modPartEnum the mod part enum + * @param other the other + * @param isDefault the is default + * @return the lang key value + */ + public static @NotNull LangKeyValue copyOf(String key, ModPartEnum modPartEnum, @NotNull LangKeyValue other, boolean isDefault) { + return builder() + .key(key) + .MPE(modPartEnum) + .US_EN(other.US_EN) + .SIM_CN(other.SIM_CN) + .TRA_CN(other.TRA_CN) + .LZH(other.LZH) + .isDefault(isDefault) + .build(); + } + @Override @@ -449,83 +529,6 @@ public class LangKeyValue implements ILangKeyValue { }; } - /** - * Copy of lang key value. - * - * @param supplier the supplier - * @param modPartEnum the mod part enum - * @param other the other - * @return the lang key value - */ - public LangKeyValue copyOf(Supplier supplier, ModPartEnum modPartEnum, @NotNull LangKeyValue other) { - return builder() - .supplier(supplier) - .US_EN(other.US_EN) - .SIM_CN(other.SIM_CN) - .TRA_CN(other.TRA_CN) - .LZH(other.LZH) - .build(); - } - - /** - * Copy of lang key value. - * - * @param key the key - * @param modPartEnum the mod part enum - * @param other the other - * @return the lang key value - */ - public LangKeyValue copyOf(String key, ModPartEnum modPartEnum, @NotNull LangKeyValue other) { - return builder() - .key(key) - .US_EN(other.US_EN) - .SIM_CN(other.SIM_CN) - .TRA_CN(other.TRA_CN) - .LZH(other.LZH) - .build(); - } - - /** - * Copy of lang key value. - * - * @param supplier the supplier - * @param modPartEnum the mod part enum - * @param other the other - * @param isDefault the is default - * @return the lang key value - */ - public LangKeyValue copyOf(Supplier supplier, ModPartEnum modPartEnum, @NotNull LangKeyValue other, boolean isDefault) { - return builder() - .supplier(supplier) - .US_EN(other.US_EN) - .SIM_CN(other.SIM_CN) - .TRA_CN(other.TRA_CN) - .LZH(other.LZH) - .isDefault(isDefault) - .build(); - } - - /** - * Copy of lang key value. - * - * @param key the key - * @param modPartEnum the mod part enum - * @param other the other - * @param isDefault the is default - * @return the lang key value - */ - public LangKeyValue copyOf(String key, ModPartEnum modPartEnum, @NotNull LangKeyValue other, boolean isDefault) { - return builder() - .key(key) - .US_EN(other.US_EN) - .SIM_CN(other.SIM_CN) - .TRA_CN(other.TRA_CN) - .LZH(other.LZH) - .isDefault(isDefault) - .build(); - } - - /** * Gets supplier. *