mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Spectator-Teleport Implementation (#1825)
This commit is contained in:
parent
4ba09754de
commit
76a10c0cd8
6 changed files with 88 additions and 0 deletions
|
|
@ -1338,6 +1338,24 @@ namespace MinecraftClient
|
|||
{
|
||||
return Handler.SelectTrade(selectedSlot);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Teleport to player in spectator mode
|
||||
/// </summary>
|
||||
/// <param name="entity">player to teleport to</param>
|
||||
protected bool SpectatorTeleport(Entity entity)
|
||||
{
|
||||
return Handler.Spectate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Teleport to player/entity in spectator mode
|
||||
/// </summary>
|
||||
/// <param name="uuid">uuid of entity to teleport to</param>
|
||||
protected bool SpectatorTeleport(Guid UUID)
|
||||
{
|
||||
return Handler.SpectateByUUID(UUID);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Update command block
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue