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; }
public void WritePacket(MinecraftStream stream) { stream.WriteUInt8(Id); stream.WriteInt32(ChunkX); stream.WriteInt32(ChunkZ); stream.WriteInt16(RecordCount); stream.WriteInt32(RecordCount * 4); stream.WriteInt32Array(Data); }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteUInt8((byte)EntityIds.Length); stream.WriteInt32Array(EntityIds); return mode; }
public void WritePacket(MinecraftStream stream) { stream.WriteUInt8(Id); stream.WriteUInt8((byte)EntityIds.Length); stream.WriteInt32Array(EntityIds); }