29 lines
857 B
Java
29 lines
857 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* com.mojang.brigadier.context.CommandContext
|
|
*/
|
|
package net.minecraft.commands.arguments;
|
|
|
|
import com.mojang.brigadier.context.CommandContext;
|
|
import net.minecraft.commands.CommandSourceStack;
|
|
import net.minecraft.commands.arguments.StringRepresentableArgument;
|
|
import net.minecraft.world.level.block.Mirror;
|
|
|
|
public class TemplateMirrorArgument
|
|
extends StringRepresentableArgument<Mirror> {
|
|
private TemplateMirrorArgument() {
|
|
super(Mirror.CODEC, Mirror::values);
|
|
}
|
|
|
|
public static StringRepresentableArgument<Mirror> templateMirror() {
|
|
return new TemplateMirrorArgument();
|
|
}
|
|
|
|
public static Mirror getMirror(CommandContext<CommandSourceStack> context, String name) {
|
|
return (Mirror)context.getArgument(name, Mirror.class);
|
|
}
|
|
}
|
|
|