mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-25 02:18:50 +00:00
doc: 调整Javadoc文档
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
05c1a2b4f1
commit
aa6577db3b
@ -42,6 +42,8 @@ public class P {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param <FC>
|
||||||
|
* 配置源类型
|
||||||
* @return 获得插件配置文件
|
* @return 获得插件配置文件
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@ -78,6 +80,8 @@ public class P {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param <PI>
|
||||||
|
* 插件源类型
|
||||||
* @return 获得插件
|
* @return 获得插件
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
@ -270,6 +270,7 @@ public class CommandManager implements TabExecutor {
|
|||||||
*
|
*
|
||||||
* @param clazzs
|
* @param clazzs
|
||||||
* 子命令处理类
|
* 子命令处理类
|
||||||
|
* @return {@link CommandManager}
|
||||||
*/
|
*/
|
||||||
public CommandManager register(Executor... clazzs) {
|
public CommandManager register(Executor... clazzs) {
|
||||||
for (Executor clazz : clazzs) {
|
for (Executor clazz : clazzs) {
|
||||||
@ -343,6 +344,7 @@ public class CommandManager implements TabExecutor {
|
|||||||
*
|
*
|
||||||
* @param commandErrorHanlder
|
* @param commandErrorHanlder
|
||||||
* 命令错误处理器
|
* 命令错误处理器
|
||||||
|
* @return {@link CommandManager}
|
||||||
*/
|
*/
|
||||||
public CommandManager setCommandErrorHanlder(ErrorHanlder commandErrorHanlder) {
|
public CommandManager setCommandErrorHanlder(ErrorHanlder commandErrorHanlder) {
|
||||||
this.commandErrorHanlder = commandErrorHanlder;
|
this.commandErrorHanlder = commandErrorHanlder;
|
||||||
@ -354,6 +356,7 @@ public class CommandManager implements TabExecutor {
|
|||||||
*
|
*
|
||||||
* @param helpGenerator
|
* @param helpGenerator
|
||||||
* 帮助生成器
|
* 帮助生成器
|
||||||
|
* @return {@link CommandManager}
|
||||||
*/
|
*/
|
||||||
public CommandManager setHelpGenerator(HelpGenerator helpGenerator) {
|
public CommandManager setHelpGenerator(HelpGenerator helpGenerator) {
|
||||||
help.setHelpGenerator(helpGenerator);
|
help.setHelpGenerator(helpGenerator);
|
||||||
@ -365,6 +368,7 @@ public class CommandManager implements TabExecutor {
|
|||||||
*
|
*
|
||||||
* @param helpParse
|
* @param helpParse
|
||||||
* 帮助解析器
|
* 帮助解析器
|
||||||
|
* @return {@link CommandManager}
|
||||||
*/
|
*/
|
||||||
public CommandManager setHelpParse(HelpParse helpParse) {
|
public CommandManager setHelpParse(HelpParse helpParse) {
|
||||||
if (help.getHelpGenerator() instanceof CommandHelp.DefaultHelpGenerator) {
|
if (help.getHelpGenerator() instanceof CommandHelp.DefaultHelpGenerator) {
|
||||||
|
@ -67,16 +67,18 @@ public class LogKit implements Runnable {
|
|||||||
* 日志
|
* 日志
|
||||||
*/
|
*/
|
||||||
public void console(final String s) {
|
public void console(final String s) {
|
||||||
sender(Bukkit.getConsoleSender(), s);
|
send(Bukkit.getConsoleSender(), s);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 添加日志
|
* 添加日志
|
||||||
*
|
*
|
||||||
|
* @param sender
|
||||||
|
* 接受者
|
||||||
* @param s
|
* @param s
|
||||||
* 日志
|
* 日志
|
||||||
*/
|
*/
|
||||||
public void sender(final CommandSender sender, final String s) {
|
public void send(final CommandSender sender, final String s) {
|
||||||
Log.toSender(sender, s);
|
Log.toSender(sender, s);
|
||||||
log(ChatColor.stripColor(s));
|
log(ChatColor.stripColor(s));
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* A wrapper for an {@link Object} or {@link Class} upon which reflective calls can be made.
|
* A wrapper for an {@link Object} or {@link Class} upon which reflective calls can be made.
|
||||||
* <p>
|
* <p>
|
||||||
* An example of using <code>Reflect</code> is <code>
|
* An example of using <code>Reflect</code> is
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* // Static import all reflection methods to decrease verbosity
|
* // Static import all reflection methods to decrease verbosity
|
||||||
@ -21,6 +21,7 @@ import java.util.Map;
|
|||||||
* // Invoke methods using the call() method:
|
* // Invoke methods using the call() method:
|
||||||
* .call("toString")
|
* .call("toString")
|
||||||
* // Retrieve the wrapped object
|
* // Retrieve the wrapped object
|
||||||
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author Lukas Eder
|
* @author Lukas Eder
|
||||||
*/
|
*/
|
||||||
@ -274,6 +275,8 @@ public class Reflect {
|
|||||||
/**
|
/**
|
||||||
* Create a proxy for the wrapped object allowing to typesafely invoke methods on it using a custom interface
|
* Create a proxy for the wrapped object allowing to typesafely invoke methods on it using a custom interface
|
||||||
*
|
*
|
||||||
|
* @param <P>
|
||||||
|
* 代理类型
|
||||||
* @param proxyType
|
* @param proxyType
|
||||||
* The interface type that is implemented by the proxy
|
* The interface type that is implemented by the proxy
|
||||||
* @return A proxy for the wrapped object
|
* @return A proxy for the wrapped object
|
||||||
@ -558,6 +561,8 @@ public class Reflect {
|
|||||||
* <p>
|
* <p>
|
||||||
* If you want to "navigate" to a wrapped version of the field, use {@link #field(String)} instead.
|
* If you want to "navigate" to a wrapped version of the field, use {@link #field(String)} instead.
|
||||||
*
|
*
|
||||||
|
* @param <T>
|
||||||
|
* A convenience generic parameter for automatic unsafe casting
|
||||||
* @param name
|
* @param name
|
||||||
* The field name
|
* The field name
|
||||||
* @return The field value
|
* @return The field value
|
||||||
@ -615,9 +620,6 @@ public class Reflect {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return object.toString();
|
return object.toString();
|
||||||
@ -626,6 +628,7 @@ public class Reflect {
|
|||||||
/**
|
/**
|
||||||
* Get the type of the wrapped object.
|
* Get the type of the wrapped object.
|
||||||
*
|
*
|
||||||
|
* @return 类类型
|
||||||
* @see Object#getClass()
|
* @see Object#getClass()
|
||||||
*/
|
*/
|
||||||
public Class<?> type() {
|
public Class<?> type() {
|
||||||
|
@ -318,10 +318,8 @@ public class Tellraw {
|
|||||||
* <li>消息串的文本.</li>
|
* <li>消息串的文本.</li>
|
||||||
* </ol>
|
* </ol>
|
||||||
* 这个方法会丢失点击操作和悬浮操作 所以仅用于最后的手段
|
* 这个方法会丢失点击操作和悬浮操作 所以仅用于最后的手段
|
||||||
* </p>
|
|
||||||
* <p>
|
* <p>
|
||||||
* 颜色和格式可以从返回的字符串中删除 通过{@link ChatColor#stripColor(String)}.
|
* 颜色和格式可以从返回的字符串中删除 通过{@link ChatColor#stripColor(String)}.
|
||||||
* </p>
|
|
||||||
*
|
*
|
||||||
* @return 发送给老版本客户端以及控制台。
|
* @return 发送给老版本客户端以及控制台。
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user