Add AutoEat

#923
This commit is contained in:
ReinforceZwei 2020-04-08 00:28:03 +08:00 committed by ORelio
parent 70e5ae85d7
commit 2e1e79bcef
10 changed files with 128 additions and 11 deletions

View file

@ -850,5 +850,15 @@ namespace MinecraftClient
Container container = Handler.GetPlayerInventory();
return new Container(container.ID, container.Type, container.Title, container.Items);
}
/// <summary>
/// Check if player is eating or not
/// </summary>
/// <remarks>Some bot like AutoAttack need this. We don't want to attack while eating</remarks>
/// <returns>True if is eating</returns>
protected bool GetIsEating()
{
return Handler.GetIsEating();
}
}
}