This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
2014-12-27 12:34:55 -07:00

13 lines
390 B
C#

using System;
namespace TrueCraft.API.Networking
{
public interface IPacketReader
{
int ProtocolVersion { get; }
void RegisterPacketType<T>(bool clientbound = true, bool serverbound = true) where T : IPacket;
IPacket ReadPacket(IMinecraftStream stream, bool serverbound = true);
void WritePacket(IMinecraftStream stream, IPacket packet);
}
}