mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Brand Information tells the server what client is being used to connect to the server, possible values are the following: - none (do not tell anything) - vanilla (tells that you are using MC vanilla) - mcc (tell that you are using MCC + version) This will usually not do anything unless plugins developers use this information for developing some MCC interoperability eg more chat interactions instead of using GUIs. This could also be used to block third party clients, that's why brand information can be disabled or changed to vanilla.
55 lines
1.7 KiB
C#
55 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using MinecraftClient.Crypto;
|
|
|
|
namespace MinecraftClient.Protocol
|
|
{
|
|
/// <summary>
|
|
/// Interface for the Minecraft protocol handler.
|
|
/// A protocol handler is used to communicate with the Minecraft server.
|
|
/// This interface allows to abstract from the underlying minecraft version in other parts of the program.
|
|
/// The protocol handler will take care of parsing and building the appropriate network packets.
|
|
/// </summary>
|
|
|
|
public interface IMinecraftCom : IDisposable, IAutoComplete
|
|
{
|
|
/// <summary>
|
|
/// Start the login procedure once connected to the server
|
|
/// </summary>
|
|
/// <returns>True if login was successful</returns>
|
|
|
|
bool Login();
|
|
|
|
/// <summary>
|
|
/// Disconnect from the server
|
|
/// </summary>
|
|
/// <param name="message">Reason</param>
|
|
|
|
void Disconnect();
|
|
|
|
/// <summary>
|
|
/// Send a chat message or command to the server
|
|
/// </summary>
|
|
/// <param name="message">Text to send</param>
|
|
/// <returns>True if successfully sent</returns>
|
|
|
|
bool SendChatMessage(string message);
|
|
|
|
/// <summary>
|
|
/// Allow to respawn after death
|
|
/// </summary>
|
|
/// <returns>True if packet successfully sent</returns>
|
|
|
|
bool SendRespawnPacket();
|
|
|
|
/// <summary>
|
|
/// Tell the server what client is being used to connect to the server
|
|
/// </summary>
|
|
/// <param name="brandInfo">Client string describing the client</param>
|
|
/// <returns>True if brand info was successfully sent</returns>
|
|
|
|
bool SendBrandInfo(string brandInfo);
|
|
}
|
|
}
|