更新内容
1. 修正優化方法
This commit is contained in:
parent
b54cd4acea
commit
4247cf2c76
|
|
@ -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.
|
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||||
mod_license=MIT
|
mod_license=MIT
|
||||||
# The mod version. See https://semver.org/
|
# 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.
|
# 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.
|
# This should match the base package used for the mod sources.
|
||||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
|
|
|
||||||
|
|
@ -427,6 +427,86 @@ public class LangKeyValue implements ILangKeyValue {
|
||||||
.isDefault(isDefault)
|
.isDefault(isDefault)
|
||||||
.build();
|
.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
|
@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.
|
* Gets supplier.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user