TemplateMirrorArgument .java

net.minecraft.commands.arguments.TemplateMirrorArgument (class): members: templateMirror, getMirror. imports: Mirror, CommandContext, CommandSourceStack.

net.minecraft.commands.argumentsclass20 linescommonextends StringRepresentableArgument<Mirror>625 B

API Surface (2)

StringRepresentableArgument<Mirror> templateMirror()
Mirror getMirror(final CommandContext<CommandSourceStack> context, final String name)

Code Graph: Dependencies (3)

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

Full Source

TemplateMirrorArgument.java20 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.commands.arguments;
2
3
import com.mojang.brigadier.context.CommandContext;
4
import net.minecraft.commands.CommandSourceStack;
5
import net.minecraft.world.level.block.Mirror;
6
7
public class TemplateMirrorArgument extends StringRepresentableArgument<Mirror> {
8
	private TemplateMirrorArgument() {
9
		super(Mirror.CODEC, Mirror::values);
10
	}
11
12
	public static StringRepresentableArgument<Mirror> templateMirror() {
13
		return new TemplateMirrorArgument();
14
	}
15
16
	public static Mirror getMirror(final CommandContext<CommandSourceStack> context, final String name) {
17
		return context.getArgument(name, Mirror.class);
18
	}
19
}
20

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