C# Class Pdelvo.Minecraft.Protocol.Helper.ProtocolHelper

Show file Open project: pdelvo/Pdelvo.Minecraft

Public Methods

Method Description
BuildMotDPacket ( byte protocolVersion, string versionString, string message, int usedSlots, int maxSlots ) : Packet

Builds the mot D packet in minecraft version pre 12w42b

BuildMotDPacket ( string message, int usedSlots, int maxSlots ) : Packet

Builds the mot D packet.

BuildMotDString ( byte protocolVersion, string versionString, string message, int usedSlots, int maxSlots ) : string

Builds the mot D string in minecraft version pre 12w42b

BuildMotDString ( string message, int usedSlots, int maxSlots ) : string

Builds the mot D string in minecraft version pre 12w42b

GetMinecraftVersionName ( int version ) : string

Gets the name of the minecraft version.

RegisterPackets ( PacketEndPoint endPoint, PacketUsage packetUsage ) : void

Method Details

BuildMotDPacket() public static method

Builds the mot D packet in minecraft version pre 12w42b
public static BuildMotDPacket ( byte protocolVersion, string versionString, string message, int usedSlots, int maxSlots ) : Packet
protocolVersion byte
versionString string
message string The message.
usedSlots int The used slots.
maxSlots int The max slots.
return Pdelvo.Minecraft.Protocol.Packets.Packet

BuildMotDPacket() public static method

Builds the mot D packet.
public static BuildMotDPacket ( string message, int usedSlots, int maxSlots ) : Packet
message string The message.
usedSlots int The used slots.
maxSlots int The max slots.
return Pdelvo.Minecraft.Protocol.Packets.Packet

BuildMotDString() public static method

Builds the mot D string in minecraft version pre 12w42b
public static BuildMotDString ( byte protocolVersion, string versionString, string message, int usedSlots, int maxSlots ) : string
protocolVersion byte
versionString string
message string The message.
usedSlots int The used slots.
maxSlots int The max slots.
return string

BuildMotDString() public static method

Builds the mot D string in minecraft version pre 12w42b
public static BuildMotDString ( string message, int usedSlots, int maxSlots ) : string
message string The message.
usedSlots int The used slots.
maxSlots int The max slots.
return string

GetMinecraftVersionName() public static method

Gets the name of the minecraft version.
public static GetMinecraftVersionName ( int version ) : string
version int The version.
return string

RegisterPackets() public static method

public static RegisterPackets ( PacketEndPoint endPoint, PacketUsage packetUsage ) : void
endPoint PacketEndPoint
packetUsage PacketUsage
return void