mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Adjust dig block API
Attempt to automate dig start and dig complete (#1077)
This commit is contained in:
parent
6df5076d19
commit
4cc29a6ee6
11 changed files with 113 additions and 48 deletions
|
|
@ -745,14 +745,12 @@ namespace MinecraftClient
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Dig block
|
||||
/// Attempt to dig a block at the specified location
|
||||
/// </summary>
|
||||
/// <param name="status">0 to start digging, 1 to cancel, 2 to finish ( https://wiki.vg/Protocol#Player_Digging )</param>
|
||||
/// <param name="location">Location</param>
|
||||
/// <param name="face">Block face</param>
|
||||
protected void DigBlock(int status, Location location, Direction blockFace)
|
||||
protected bool DigBlock(Location location)
|
||||
{
|
||||
Handler.DigBlock(status, location, blockFace);
|
||||
return Handler.DigBlock(location);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -977,9 +975,9 @@ namespace MinecraftClient
|
|||
/// <param name="itemType">Item type</param>
|
||||
/// <param name="count">Item count</param>
|
||||
/// <returns>TRUE if item given successfully</returns>
|
||||
protected bool CreativeGive(int slot, ItemType itemType, int count, Dictionary<string, object> NBT = null)
|
||||
protected bool CreativeGive(int slot, ItemType itemType, int count, Dictionary<string, object> nbt = null)
|
||||
{
|
||||
return Handler.DoCreativeGive(slot, itemType, count, NBT);
|
||||
return Handler.DoCreativeGive(slot, itemType, count, nbt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue