SendItemAsync() 공개 메소드

public SendItemAsync ( BigEndianStream stream, int version ) : System.Threading.Tasks.Task
stream Pdelvo.Minecraft.Network.BigEndianStream
version int
리턴 System.Threading.Tasks.Task
예제 #1
0
 public static Task WritePacketAsync(this BigEndianStream stream, Packet packet, int version)
 {
     if (packet == null)
         throw new ArgumentNullException("packet");
     return packet.SendItemAsync(stream, version);
 }
예제 #2
0
 public static async Task SendPacketAsync(Packet packet, BigEndianStream stream,
                                          int version, int requiredVersion, int lastSupportedVersion,
                                          bool throwOnRequired,
                                          bool throwOnLast)
 {
     bool supported = CheckPacket(packet, version, requiredVersion, lastSupportedVersion, throwOnRequired,
                                  throwOnLast);
     if (!supported)
         return;
     await packet.SendItemAsync(stream, version);
 }