CustomModifierExecutor .java

net.minecraft.commands.execution.CustomModifierExecutor (interface, 20 lines): members: ModifierAdapter, apply. strings: "This function should not run".

net.minecraft.commands.executioninterface20 linescommon770 B

API Surface (0)

No public/protected methods detected (fields or constants only).

String literals (1)

"This function should not run"

Code Graph: Dependencies (2)

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

Full Source

CustomModifierExecutor.java20 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.commands.execution;
2
3
import com.mojang.brigadier.RedirectModifier;
4
import com.mojang.brigadier.context.CommandContext;
5
import com.mojang.brigadier.context.ContextChain;
6
import com.mojang.brigadier.exceptions.CommandSyntaxException;
7
import java.util.Collection;
8
import java.util.List;
9
10
public interface CustomModifierExecutor<T> {
11
	void apply(T originalSource, List<T> currentSources, ContextChain<T> currentStep, ChainModifiers modifiers, ExecutionControl<T> output);
12
13
	interface ModifierAdapter<T> extends CustomModifierExecutor<T>, RedirectModifier<T> {
14
		@Override
15
		default Collection<T> apply(final CommandContext<T> context) throws CommandSyntaxException {
16
			throw new UnsupportedOperationException("This function should not run");
17
		}
18
	}
19
}
20

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