CommandSource.java
net.minecraft.commands.CommandSource
信息
- 全限定名:net.minecraft.commands.CommandSource
- 类型:public interface
- 包:net.minecraft.commands
- 源码路径:src/main/java/net/minecraft/commands/CommandSource.java
- 起始行号:L5
- 职责:
TODO
字段/常量
NULL- 类型:
CommandSource - 修饰符:
public public public public - 源码定位:
L6 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
void sendSystemMessage(Component message) @ L27
- 方法名:sendSystemMessage
- 源码定位:L27
- 返回类型:void
- 修饰符:package-private
参数:
- message: Component
说明:
TODO
boolean acceptsSuccess() @ L29
- 方法名:acceptsSuccess
- 源码定位:L29
- 返回类型:boolean
- 修饰符:package-private
参数:
- 无
说明:
TODO
boolean acceptsFailure() @ L31
- 方法名:acceptsFailure
- 源码定位:L31
- 返回类型:boolean
- 修饰符:package-private
参数:
- 无
说明:
TODO
boolean shouldInformAdmins() @ L33
- 方法名:shouldInformAdmins
- 源码定位:L33
- 返回类型:boolean
- 修饰符:package-private
参数:
- 无
说明:
TODO
default boolean alwaysAccepts() @ L35
- 方法名:alwaysAccepts
- 源码定位:L35
- 返回类型:boolean
- 修饰符:default
参数:
- 无
说明:
TODO
代码
public interface CommandSource {
CommandSource NULL = new CommandSource() {
@Override
public void sendSystemMessage(Component message) {
}
@Override
public boolean acceptsSuccess() {
return false;
}
@Override
public boolean acceptsFailure() {
return false;
}
@Override
public boolean shouldInformAdmins() {
return false;
}
};
void sendSystemMessage(Component message);
boolean acceptsSuccess();
boolean acceptsFailure();
boolean shouldInformAdmins();
default boolean alwaysAccepts() {
return false;
}
}引用的其他类
- Component
- 引用位置:
参数
- 引用位置: