mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Add OnTimeUpdate() and OnRespawn() to ChatBot API
This commit is contained in:
parent
2034729f74
commit
ccc364df34
2 changed files with 14 additions and 0 deletions
|
|
@ -1522,6 +1522,7 @@ namespace MinecraftClient
|
|||
}
|
||||
|
||||
ClearInventories();
|
||||
DispatchBotEvent(bot => bot.OnRespawn());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -1978,6 +1979,7 @@ namespace MinecraftClient
|
|||
lastAge = WorldAge;
|
||||
lastTime = DateTime.Now;
|
||||
}
|
||||
DispatchBotEvent(bot => bot.OnTimeUpdate(WorldAge, TimeOfDay));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue