Commit graph

1448 commits

Author SHA1 Message Date
Steveice10
36b8747461 Fix writing field in PacketBlockAction. Thanks to Cr0s for the heads up with problems fixed in this commit and the previous one. 2013-08-18 10:17:49 -07:00
Steveice10
f65f0f59e5 Fixed some packets, added forge dimension field compatibility to PacketLogin (set PacketLogin.FORGE = true) 2013-08-18 10:14:14 -07:00
Steveice10
3f0ad4b462 Fix writing length in PacketMapChunk 2013-08-06 08:18:58 -07:00
Steveice10
9f7e7302a5 Ignore reading in closing socket 2013-07-25 18:58:45 -07:00
Steveice10
e2f325a3f1 Added particle name constants 2013-07-25 11:16:20 -07:00
Steveice10
eed5957621 Added missing spawn particle packet 2013-07-25 11:10:31 -07:00
Steveice10
332d179a15 Initial names for operations based on source code analyzation. 2013-07-15 12:45:03 -07:00
Steveice10
fa3ced180a Rename EntityProperty related classes and almost complete namings (remaining: entity attribute operation ids) 2013-07-15 12:31:45 -07:00
Steveice10
4f5986cd41 Added more complete support for PacketEntityProperties, still need to name 1.6.2 addition 2013-07-15 12:06:03 -07:00
Steveice10
f21d07e4e1 Fixed StandardInput.readBytes 2013-07-11 20:46:41 -07:00
Steveice10
f709c115df Replaced protocol enum with packet registry abstract class. Allows for easier implementation of multiple protocols, both internally and externally. 2013-07-10 10:06:18 -07:00
Steveice10
daffd83b24 Changed Y values in PacketPlayerDigging and PacketUseBed to unsigned bytes 2013-07-10 10:00:22 -07:00
Steveice10
0d63243fb7 Don't send packet if the connection isn't connected. Also, set connected to false in CloseThread for good measure 2013-07-09 18:31:30 -07:00
Steveice10
8c9a593204 Clear packet queue on disconnect. Also, make sure writing/reading are set to false on error 2013-07-09 17:44:35 -07:00
Steveice10
c049d00fdf Tweaked disconnect methods 2013-07-09 17:41:22 -07:00
Steveice10
be83d60f7c Refactored PacketServerPing a bit 2013-07-09 12:18:51 -07:00
Steveice10
a50085a595 Updated to 1.6.2 protocol (PacketEntityProperties not fully complete) 2013-07-09 08:50:11 -07:00
Steveice10
4da575f615 Rewrote most of connection/protocol API 2013-07-04 23:21:47 -07:00
Steveice10
d467df8f02 Updated to 1.6.1, performed cleanup and javadoc-ing 2013-07-04 21:32:15 -07:00
Steveice10
fe0896efe5 Ensure socket is properly closed 2013-05-20 21:33:50 -07:00
Steveice10
dd80f74776 Fixed packet reading/writing for PacketItemData 2013-05-20 15:34:16 -07:00
Steveice10
44ea6d654a Lower CPU usage of threads 2013-05-18 19:19:49 -07:00
Steveice10
35969b1c32 Added event for debugging packet sending 2013-05-18 16:27:21 -07:00
Steveice10
e74681587f Fix PacketRespawn field types 2013-05-14 19:43:29 -07:00
Steveice10
07fd400335 Added reason to DisconnectEvent 2013-05-13 16:08:08 -07:00
Steveice10
fd72886ead Merge pull request #2 from btilm305/master
Fix packet read/write info for Packet207SetScoreboardScore
2013-05-13 16:01:42 -07:00
Steveice10
2b6be50840 Added DisconnectEvent 2013-05-13 15:49:21 -07:00
btilm305
0e191e0f1c Fix packet error
Fixes "BAD PACKET ID" from being thrown whenever this.action == 1 as per [mc-dev](https://github.com/Bukkit/mc-dev/blob/master/net/minecraft/server/Packet207SetScoreboardScore.java#L32-L35).
2013-05-13 16:26:31 -04:00
Steveice10
0e9fce910a Added utility constant classes for different byte constants 2013-04-02 17:02:04 -07:00
Steveice10
ba8b47f9e3 Updated for 1.5 2013-04-02 16:16:52 -07:00
Steveice10
1cc95973c6 Call onConnect when a connection is made to a server, add documentation and utilities for responding to a server list ping. 2013-03-05 06:59:38 -08:00
Steveice10
69429e52a9 Updated to 1.4.6 2012-12-22 20:36:04 -08:00
Steveice10
c4ccc2b749 Added server slistener and fixed connecting to servers 2012-11-28 07:06:38 -08:00
Steveice10
f506a7eb5f Fixed writing ItemStack as metadata 2012-11-27 18:36:00 -08:00
Steveice10
4b6cd21d98 Formatting 2012-11-27 18:34:09 -08:00
Steveice10
6b3768fe57 Updated protocol version. 2012-11-21 21:47:34 -08:00
Steveice10
2a51a06742 Added pocket edition magic constant 2012-10-29 20:04:01 -07:00
Steveice10
15e7e10d94 Updated for 1.4 protocol 2012-10-29 19:51:24 -07:00
Steveice10
888ddb036d Restructuring and abstraction 2012-10-29 19:36:03 -07:00
Steveice10
33adbca643 Formatting and readme update 2012-09-08 21:48:49 -07:00
Steveice10
5e3286b98e Merge pull request #1 from rapodaca/master
Example and minor tweaks
2012-09-08 21:44:52 -07:00
Rich Apodaca
615de16960 Fix minor typos 2012-09-08 21:40:33 -07:00
Rich Apodaca
c09f3fabd7 Added ChatBot example, updated README. 2012-09-08 21:35:29 -07:00
Rich Apodaca
ac1196a5f4 Fix annotation error. Added username-only method Client#setUser. 2012-09-08 20:52:35 -07:00
Steveice10
7607ba30be Don't use multi-catch try 2012-09-02 23:18:13 -07:00
Steveice10
9680f15d09 Server keep alive 2012-09-02 23:16:15 -07:00
Steveice10
02d3442182 Added Connection.isConnected() 2012-08-12 19:27:43 -07:00
Steveice10
450095417e Initial commit 2012-08-12 18:56:36 -07:00