Spaces:
Build error
Build error
File size: 662 Bytes
d46f4a3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
package net.minecraft.commands.arguments;
import com.mojang.brigadier.context.CommandContext;
import net.minecraft.commands.CommandSourceStack;
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> p_234345_, String p_234346_) {
return p_234345_.getArgument(p_234346_, Mirror.class);
}
} |