FallthroughTask.java
net.minecraft.commands.execution.tasks.FallthroughTask
信息
- 全限定名:net.minecraft.commands.execution.tasks.FallthroughTask
- 类型:public class
- 包:net.minecraft.commands.execution.tasks
- 源码路径:src/main/java/net/minecraft/commands/execution/tasks/FallthroughTask.java
- 起始行号:L8
- 实现:EntryAction
- 职责:
TODO
字段/常量
INSTANCE- 类型:
FallthroughTask<?extends ExecutionCommandSource<?>> - 修饰符:
private static final - 源码定位:
L9 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
public static <T extends ExecutionCommandSource<T>> EntryAction<T> instance() @ L11
- 方法名:instance
- 源码定位:L11
- 返回类型:<T extends ExecutionCommandSource
> EntryAction - 修饰符:public static
参数:
- 无
说明:
TODO
public void execute(ExecutionContext<T> context, Frame frame) @ L15
- 方法名:execute
- 源码定位:L15
- 返回类型:void
- 修饰符:public
参数:
- context: ExecutionContext
- frame: Frame
说明:
TODO
代码
public class FallthroughTask<T extends ExecutionCommandSource<T>> implements EntryAction<T> {
private static final FallthroughTask<? extends ExecutionCommandSource<?>> INSTANCE = (FallthroughTask<? extends ExecutionCommandSource<?>>)(new FallthroughTask<>());
public static <T extends ExecutionCommandSource<T>> EntryAction<T> instance() {
return (EntryAction<T>)INSTANCE;
}
@Override
public void execute(ExecutionContext<T> context, Frame frame) {
frame.returnFailure();
frame.discard();
}
}引用的其他类
-
- 引用位置:
字段/返回值
- 引用位置:
-
- 引用位置:
实现/返回值
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
参数
- 引用位置: