diff --git a/MinecraftClient/ChatBot.cs b/MinecraftClient/ChatBot.cs index a90a9600..77e5196e 100644 --- a/MinecraftClient/ChatBot.cs +++ b/MinecraftClient/ChatBot.cs @@ -676,9 +676,23 @@ namespace MinecraftClient Handler.UseItemOnHand(); } /// + /// start Sneaking + /// + protected bool Sneak() + { + return SendAction(Protocol.ActionType.StartSneaking); + } + /// + /// Sends UnSneak + /// + protected bool UnSneak() + { + return SendAction(Protocol.ActionType.StopSneaking); + } + /// /// Send Entity Action /// - protected bool SendAction(Protocol.ActionType action) + private bool SendAction(Protocol.ActionType action) { return Handler.sendEntityAction(action); }