Auxiliary class for Direction, preparation for autodetection of the broken side of the block

This commit is contained in:
Roman Danilov 2024-03-05 20:30:58 +05:00
parent fde50c1728
commit 91ef890bb6
4 changed files with 43 additions and 3 deletions

View file

@ -22,6 +22,7 @@ namespace MinecraftClient.Commands
);
dispatcher.Register(l => l.Literal(CmdName)
// TODO Get blockFace direction from arguments
.Executes(r => DigLookAt(r.Source))
.Then(l => l.Argument("Duration", Arguments.Double())
.Executes(r => DigLookAt(r.Source, Arguments.GetDouble(r, "Duration"))))