mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Add CreativeDelete in ChatBot API (#1590)
This commit is contained in:
parent
64123a26a5
commit
ecb69bbdfd
1 changed files with 12 additions and 0 deletions
|
|
@ -1181,6 +1181,18 @@ namespace MinecraftClient
|
|||
return Handler.DoCreativeGive(slot, itemType, count, nbt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Use Creative Mode to delete items from the regular/survival Player Inventory
|
||||
/// </summary>
|
||||
/// <remarks>(obviously) requires to be in creative mode</remarks>
|
||||
/// </summary>
|
||||
/// <param name="slot">Inventory slot to clear</param>
|
||||
/// <returns>TRUE if item cleared successfully</returns>
|
||||
protected bool CreativeDelete(int slot)
|
||||
{
|
||||
return CreativeGive(slot, ItemType.Null, 0, null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Plays animation (Player arm swing)
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue