mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
feat(autofishing): add velocity and sound bite detection
This commit is contained in:
parent
d5358d3d1a
commit
c9b0913c1a
8 changed files with 380 additions and 17 deletions
|
|
@ -295,6 +295,16 @@ namespace MinecraftClient.Protocol
|
|||
/// <param name="onGround">TRUE if on ground</param>
|
||||
void OnEntityTeleport(int entityID, Double x, Double y, Double z, bool onGround);
|
||||
|
||||
/// <summary>
|
||||
/// Called when an entity velocity update packet is received.
|
||||
/// Velocity values are in blocks per tick.
|
||||
/// </summary>
|
||||
/// <param name="entityID">Entity ID</param>
|
||||
/// <param name="velocityX">Velocity X</param>
|
||||
/// <param name="velocityY">Velocity Y</param>
|
||||
/// <param name="velocityZ">Velocity Z</param>
|
||||
void OnEntityVelocity(int entityID, double velocityX, double velocityY, double velocityZ);
|
||||
|
||||
/// <summary>
|
||||
/// Called when additional properties have been received for an entity
|
||||
/// </summary>
|
||||
|
|
@ -371,6 +381,17 @@ namespace MinecraftClient.Protocol
|
|||
/// <param name="affectedBlocks">Amount of affected blocks</param>
|
||||
void OnExplosion(Location location, float strength, int affectedBlocks);
|
||||
|
||||
/// <summary>
|
||||
/// Called when a sound packet is received.
|
||||
/// </summary>
|
||||
/// <param name="soundName">Sound key if available, otherwise null</param>
|
||||
/// <param name="location">Sound location for world sounds, or null if unavailable</param>
|
||||
/// <param name="category">Sound category id</param>
|
||||
/// <param name="volume">Sound volume</param>
|
||||
/// <param name="pitch">Sound pitch</param>
|
||||
/// <param name="entityID">Source entity id for entity-sound packets, if any</param>
|
||||
void OnSoundEffect(string? soundName, Location? location, int category, float volume, float pitch, int? entityID);
|
||||
|
||||
/// <summary>
|
||||
/// Called when a player's game mode has changed
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue