- 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 String
asMessage(@NotNull String key)
@NotNull String
asMessage(@NotNull String key, Object... params)
ResourceBundle
asResourceBundle()
boolean
color()
@NotNull MTranslate
color(boolean isEnable)
@NotNull MFormatter
getFormatter()
BTranslate
getMapped()
Plugin
getOwner()
String
getValue(@NotNull String key)
@NotNull MTranslate
setFormatter(@NotNull MFormatter formatter)
void
setMapped(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
-
-