mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Added ShiftRightClick (#2582)
* Added ShiftRightClick * Added ShiftRightClick * Added ShiftRightClick * Added ShiftRightClick * Added ShiftRightClick * Added ShiftRightClick * Added ShiftRightClick * Added ShiftRightClick * Updated Protocol18.cs ShiftRightClick Description for ReinforceZwei's Suggestion * Just Deleted Added ShiftRightClick's Description Line * Just Deleted Added ShiftRightClick's Description Lines * Made Change With Informaiton ReinforceZwei Given to Me About Switch-Case and Shorten the Code. * Re Added Lines That Got Deleted By Mistake * Add translation key for shift right-click --------- Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
This commit is contained in:
parent
37bcad37e0
commit
968f864f34
7 changed files with 5938 additions and 3896 deletions
|
|
@ -16,6 +16,7 @@ namespace MinecraftClient.CommandHandler.ArgumentType
|
|||
WindowActionType.RightClick,
|
||||
WindowActionType.MiddleClick,
|
||||
WindowActionType.ShiftClick,
|
||||
WindowActionType.ShiftRightClick,
|
||||
};
|
||||
|
||||
public override WindowActionType Parse(IStringReader reader)
|
||||
|
|
@ -33,6 +34,7 @@ namespace MinecraftClient.CommandHandler.ArgumentType
|
|||
"middleclick" => WindowActionType.MiddleClick,
|
||||
"shift" => WindowActionType.ShiftClick,
|
||||
"shiftclick" => WindowActionType.ShiftClick,
|
||||
"shiftrightclick" => WindowActionType.ShiftRightClick,
|
||||
_ => throw CommandSyntaxException.BuiltInExceptions.LiteralIncorrect().CreateWithContext(reader, inputStr)
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue