C# Class Pdelvo.Minecraft.Protocol.NetworkExtensions

显示文件 Open project: pdelvo/Pdelvo.Minecraft

Public Methods

Method Description
ReadMetaData ( this stream, int version ) : MetadataInfo

Reads the meta data.

Write ( this stream, EntityInformation data ) : void

Writes the specified stream.

Write ( this stream, ItemStack data ) : void

Writes the specified stream.

Write ( this stream, MetadataInfo data ) : void

Writes the specified stream.

WritePacket ( this stream, Packet packet, int version ) : void

Writes the packet.

WritePacketAsync ( this stream, Packet packet, int version ) : System.Threading.Tasks.Task

Method Details

ReadMetaData() public static method

Reads the meta data.
public static ReadMetaData ( this stream, int version ) : MetadataInfo
stream this The stream.
version int The version.
return Pdelvo.Minecraft.Protocol.Packets.MetadataInfo

Write() public static method

Writes the specified stream.
public static Write ( this stream, EntityInformation data ) : void
stream this The stream.
data Pdelvo.Minecraft.Protocol.Packets.EntityInformation The data.
return void

Write() public static method

Writes the specified stream.
public static Write ( this stream, ItemStack data ) : void
stream this The stream.
data Pdelvo.Minecraft.Protocol.Packets.ItemStack The data.
return void

Write() public static method

Writes the specified stream.
public static Write ( this stream, MetadataInfo data ) : void
stream this The stream.
data Pdelvo.Minecraft.Protocol.Packets.MetadataInfo The data.
return void

WritePacket() public static method

Writes the packet.
public static WritePacket ( this stream, Packet packet, int version ) : void
stream this The stream.
packet Pdelvo.Minecraft.Protocol.Packets.Packet The packet.
version int The version.
return void

WritePacketAsync() public static method

public static WritePacketAsync ( this stream, Packet packet, int version ) : System.Threading.Tasks.Task
stream this
packet Pdelvo.Minecraft.Protocol.Packets.Packet
version int
return System.Threading.Tasks.Task