mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +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
|
|
@ -153,6 +153,13 @@ namespace MinecraftClient
|
|||
/// <param name="tps">New estimated server TPS (between 0 and 20)</param>
|
||||
public virtual void OnServerTpsUpdate(Double tps) { }
|
||||
|
||||
/// <summary>
|
||||
/// Called when a time changed
|
||||
/// </summary>
|
||||
/// <param name="WorldAge">World age</param>
|
||||
/// <param name="TimeOfDay">Time</param>
|
||||
public virtual void OnTimeUpdate(long WorldAge, long TimeOfDay) { }
|
||||
|
||||
/// <summary>
|
||||
/// Called when an entity moved nearby
|
||||
/// </summary>
|
||||
|
|
@ -312,6 +319,11 @@ namespace MinecraftClient
|
|||
/// <param name="uuid">UUID of the player</param>
|
||||
/// <param name="name">Name of the player</param>
|
||||
public virtual void OnPlayerLeave(Guid uuid, string name) { }
|
||||
|
||||
/// <summary>
|
||||
/// Called when the player respawns
|
||||
/// </summary>
|
||||
public virtual void OnRespawn() { }
|
||||
|
||||
/* =================================================================== */
|
||||
/* ToolBox - Methods below might be useful while creating your bot. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue