- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.module.translate.WrappedTranslate
-
- 所有已实现的接口:
BTranslate,MTranslate
public class WrappedTranslate extends Object implements BTranslate
A wrapped translate- 从以下版本开始:
- 2.12
-
-
构造器概要
构造器 构造器 说明 WrappedTranslate(BTranslate mapped, Plugin owner)
-
方法概要
修饰符和类型 方法 说明 net.md_5.bungee.api.chat.BaseComponent[]asComponents(@NotNull String key)@NotNull StringasMessage(@NotNull String key)@NotNull StringasMessage(@NotNull String key, Object... params)ResourceBundleasResourceBundle()booleancolor()@NotNull MTranslatecolor(boolean isEnable)@NotNull MFormattergetFormatter()BTranslategetMapped()PlugingetOwner()StringgetValue(@NotNull String key)@NotNull MTranslatesetFormatter(@NotNull MFormatter formatter)voidsetMapped(BTranslate mapped)
-
-
-
构造器详细资料
-
WrappedTranslate
public WrappedTranslate(BTranslate mapped, Plugin owner)
-
-
方法详细资料
-
getOwner
public Plugin getOwner()
-
setMapped
public void setMapped(BTranslate mapped)
-
getMapped
public BTranslate getMapped()
-
asComponents
public net.md_5.bungee.api.chat.BaseComponent[] asComponents(@NotNull @NotNull String key)- 指定者:
asComponents在接口中BTranslate
-
getValue
public String getValue(@NotNull @NotNull String key)
- 指定者:
getValue在接口中MTranslate
-
asMessage
@NotNull public @NotNull String asMessage(@NotNull @NotNull String key)
- 指定者:
asMessage在接口中MTranslate
-
asMessage
@NotNull public @NotNull String asMessage(@NotNull @NotNull String key, Object... params)
- 指定者:
asMessage在接口中MTranslate
-
getFormatter
@NotNull public @NotNull MFormatter getFormatter()
- 指定者:
getFormatter在接口中MTranslate
-
setFormatter
@NotNull public @NotNull MTranslate setFormatter(@NotNull @NotNull MFormatter formatter)
- 指定者:
setFormatter在接口中MTranslate
-
color
public boolean color()
- 指定者:
color在接口中MTranslate
-
color
@NotNull public @NotNull MTranslate color(boolean isEnable)
- 指定者:
color在接口中MTranslate
-
asResourceBundle
public ResourceBundle asResourceBundle()
- 指定者:
asResourceBundle在接口中MTranslate
-
-