DelayedException.java
net.minecraft.util.parsing.packrat.DelayedException
信息
- 全限定名:net.minecraft.util.parsing.packrat.DelayedException
- 类型:public interface
- 包:net.minecraft.util.parsing.packrat
- 源码路径:src/main/java/net/minecraft/util/parsing/packrat/DelayedException.java
- 起始行号:L8
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
T create(String contents, int position) @ L9
- 方法名:create
- 源码定位:L9
- 返回类型:T
- 修饰符:package-private
参数:
- contents: String
- position: int
说明:
TODO
static DelayedException<CommandSyntaxException> create(SimpleCommandExceptionType type) @ L11
- 方法名:create
- 源码定位:L11
- 返回类型:DelayedException
- 修饰符:static
参数:
- type: SimpleCommandExceptionType
说明:
TODO
static DelayedException<CommandSyntaxException> create(DynamicCommandExceptionType type, String argument) @ L15
- 方法名:create
- 源码定位:L15
- 返回类型:DelayedException
- 修饰符:static
参数:
- type: DynamicCommandExceptionType
- argument: String
说明:
TODO
代码
public interface DelayedException<T extends Exception> {
T create(String contents, int position);
static DelayedException<CommandSyntaxException> create(SimpleCommandExceptionType type) {
return (contents, position) -> type.createWithContext(StringReaderTerms.createReader(contents, position));
}
static DelayedException<CommandSyntaxException> create(DynamicCommandExceptionType type, String argument) {
return (contents, position) -> type.createWithContext(StringReaderTerms.createReader(contents, position), argument);
}
}引用的其他类
- StringReaderTerms
- 引用位置:
方法调用 - 关联成员:
StringReaderTerms.createReader()
- 引用位置: