FallthroughTask .java

net.minecraft.commands.execution.tasks.FallthroughTask (class): members: instance, execute, INSTANCE. imports: EntryAction, Frame, ExecutionContext.

net.minecraft.commands.execution.tasksclass21 linescommonextends ExecutionCommandSource<T>>781 B

Implements

API Surface (2)

<T extends ExecutionCommandSource<T>> EntryAction<T> instance()
void execute(final ExecutionContext<T> context, final Frame frame)

Fields & Constants (1)

INSTANCE

Code Graph: Dependencies (4)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

FallthroughTask.java21 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.commands.execution.tasks;
2
3
import net.minecraft.commands.ExecutionCommandSource;
4
import net.minecraft.commands.execution.EntryAction;
5
import net.minecraft.commands.execution.ExecutionContext;
6
import net.minecraft.commands.execution.Frame;
7
8
public class FallthroughTask<T extends ExecutionCommandSource<T>> implements EntryAction<T> {
9
	private static final FallthroughTask<? extends ExecutionCommandSource<?>> INSTANCE = (FallthroughTask<? extends ExecutionCommandSource<?>>)(new FallthroughTask<>());
10
11
	public static <T extends ExecutionCommandSource<T>> EntryAction<T> instance() {
12
		return (EntryAction<T>)INSTANCE;
13
	}
14
15
	@Override
16
	public void execute(final ExecutionContext<T> context, final Frame frame) {
17
		frame.returnFailure();
18
		frame.discard();
19
	}
20
}
21

Decompiled Minecraft 26.3 source of FallthroughTask (net/minecraft/commands/execution/tasks/FallthroughTask.java) with Mojang official mappings, stored verbatim on the site.