예제 #1
0
 public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction)
 {
     stream.WriteInt32(ChunkX);
     stream.WriteInt32(ChunkZ);
     stream.WriteInt16(RecordCount);
     stream.WriteInt32(RecordCount * 4);
     stream.WriteInt32Array(Data);
     return mode;
 }
예제 #2
0
 public void WritePacket(MinecraftStream stream)
 {
     stream.WriteUInt8(Id);
     stream.WriteInt32(ChunkX);
     stream.WriteInt32(ChunkZ);
     stream.WriteInt16(RecordCount);
     stream.WriteInt32(RecordCount * 4);
     stream.WriteInt32Array(Data);
 }
예제 #3
0
 public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction)
 {
     stream.WriteUInt8((byte)EntityIds.Length);
     stream.WriteInt32Array(EntityIds);
     return mode;
 }
예제 #4
0
 public void WritePacket(MinecraftStream stream)
 {
     stream.WriteUInt8(Id);
     stream.WriteUInt8((byte)EntityIds.Length);
     stream.WriteInt32Array(EntityIds);
 }