Commit graph

948 commits

Author SHA1 Message Date
Jonas Herzig
8a29f2ff5e Update ServerSpawnPaintingPacket 2018-07-19 10:04:41 +02:00
Jonas Herzig
a9574252e6 Remove ItemStack data, it has been merged into item ids 2018-07-18 23:19:09 +02:00
Jonas Herzig
e34c31e7a9 Add new PARTICLE MetadataType 2018-07-18 23:12:15 +02:00
Jonas Herzig
798265e509 Update particle data 2018-07-18 23:11:54 +02:00
Jonas Herzig
26f3711c7f Add new OPTIONAL_CHAT MetadataType 2018-07-18 23:04:06 +02:00
Jonas Herzig
669aa7b93f Update packet ids and mark newly added, missing packets 2018-07-18 22:23:31 +02:00
Jonas Herzig
c374deb992 Begin updating to 1.13 2018-07-18 22:22:51 +02:00
Steveice10
08f1ca0290 Require client token when authenticating with an access token. 2018-06-10 17:25:08 -07:00
Steveice10
1728e10f37 Default to no team color when receiving unknown values. Closes #376 2018-01-11 15:21:32 -08:00
Steven Smith
63e06fabad
Remove hard bitsPerEntry limit, enforce minimum of 4. 2018-01-04 22:28:14 -08:00
Steveice10
6de0593ca1 Add CustomStatistic as fallback for custom or unimplemented statistic IDs. 2017-11-26 18:05:45 -08:00
Jonas Herzig
f9c86c5aa5 Update to MC 1.12.2 2017-09-19 09:13:00 +02:00
Steveice10
ca0dec4a2d Format code. 2017-09-01 12:55:00 -07:00
Steveice10
dae57d1090 Clean up and format code. 2017-09-01 12:01:46 -07:00
Steven Smith
688e043825 Merge pull request #259 from ReplayMod/skylight-detection
Fix skylight detection in some chunk packets (threw OOMError)
2017-08-24 16:47:15 -07:00
Jonas Herzig
96fb4a7cb0 Fix out of bounds smoke effect data 2017-08-24 11:45:03 +02:00
Jonas Herzig
843fc20545 Fix skylight detection in some chunk packets (threw OOMError) 2017-08-24 11:42:12 +02:00
Jonas Herzig
1ca2a9c8ac Remove achievements (superseded by advancements) 2017-08-20 00:26:39 +02:00
Jonas Herzig
eadc9a7eb3 Add missing statistic types and fix statistics packet reading and writing 2017-08-20 00:26:39 +02:00
Jonas Herzig
9130960d64 Add missing generic statistics 2017-08-19 23:02:42 +02:00
Jonas Herzig
9d1dc4ed40 Change misleading statistic names 2017-08-19 23:02:42 +02:00
Jonas Herzig
e7ee69fb3e Update to MC 1.12.1 2017-08-04 08:55:20 -07:00
Steven Smith
c5880f0627 Add packetSending stub to SessionAdapter. 2017-06-27 13:12:02 -07:00
Steveice10
e8a86dafcb Fire event before a packet is sent, allowing the operation to be modified or cancelled. 2017-06-26 15:58:08 -07:00
Steveice10
a4a40f3407 Update PlayerState values. 2017-06-16 21:22:21 -07:00
ECC314
897b7fa29f Added 1.10/1.11 particles. 2017-06-16 09:02:55 +02:00
Jonas Herzig
8747e7abff Add missing builtin sounds 2017-06-10 13:35:19 +02:00
Jonas Herzig
12129ba6fd Add ILLUSION_ILLAGER and PARROT entity types 2017-06-10 13:06:09 +02:00
Jonas Herzig
84f80dfb91 Add generic.flyingSpeed attribute 2017-06-10 13:03:35 +02:00
Jonas Herzig
355ba800e0 Add missing entity status LIVING_BURN (36) and LIVING_DROWN (37) 2017-06-10 11:57:01 +02:00
Jonas Herzig
02d21823db Fix packet ids for client player movement packets 2017-06-10 11:56:22 +02:00
Jonas Herzig
46e3c4e51d Rename ServerAdvancementProgressPacket to ServerAdvancementTabPacket 2017-06-10 11:14:50 +02:00
Jonas Herzig
4301d73953 Fix fallthrough when writing NBT_TAG metadata 2017-06-10 10:20:15 +02:00
Jonas Herzig
9be58c55d8 Fix reading of recipes in ServerUnlockRecipesPacket 2017-06-10 10:04:57 +02:00
Jonas Herzig
f1afab396e Update to MC 1.12 2017-06-09 13:22:03 +02:00
Steveice10
f0424a2979 Add missing sound. 2017-05-29 17:48:15 -07:00
Steveice10
cdb3489fe9 Fix translating between map icon types and network values. 2017-05-26 16:01:09 -07:00
Steveice10
c12339d5a3 Map BREAK_SPLASH_POTION to value 2007. Fixes #230. 2017-05-16 15:35:48 -07:00
Steveice10
3b3bc4f73f Only overwrite existing values when registering proper sound names. 2017-04-27 18:03:07 -07:00
Steveice10
71414243f8 Update sound list. 2017-03-01 20:00:35 -08:00
Steveice10
661faf9541 Migrate away from spacehq.org 2017-03-01 16:33:38 -08:00
Steveice10
4608261e99 Migrate away from spacehq.org 2017-03-01 16:09:48 -08:00
Kevin Rossouw
cc4d9869bb Ported library to Netty 4.1.4 (Netty 5 has been discontinued) by modifying TcpSession.java and pom.xml. Fixed a bug in Server.java where isListening() would throw a NullPointerException if called before bind(). Removed unused imports of java.net.InetAddress in Session.java and TcpSession.java. Updated Maven plugin versions in pom.xml. 2017-01-25 16:47:00 +02:00
Steveice10
ce0b5ca9ec Add SHULKER_BOX to UpdatedTileType. 2017-01-21 16:54:16 -08:00
Steveice10
2cf8596668 Update EntityStatus values. 2017-01-20 15:48:51 -08:00
Steveice10
49275165b5 Add missing sound effects. 2017-01-19 20:09:51 -08:00
games647
b6d72152da
Update protocol ids for 1.11.2 2016-12-23 16:57:01 +01:00
Steveice10
5954134812 Update for OpenNBT changes. 2016-12-15 18:15:18 -08:00
Steveice10
b5bfe24517 Expose local and remote addresses of Sessions. 2016-12-15 17:05:24 -08:00
Steveice10
f846b96ab4 Generate source and javadoc jars. 2016-12-15 16:57:22 -08:00
Steveice10
f7458966c8 Add ARMOR_STAND to MobType. 2016-12-15 16:22:34 -08:00
Steveice10
5c4cebdcac Minor cleanup. 2016-12-15 16:13:24 -08:00
johni0702
839925054b Update to MC 1.11 2016-12-03 20:31:07 +01:00
Steven Smith
55859fa1ae Account for empty NameTagVisibility and CollisionRule strings. Fixes #190. 2016-09-05 19:28:41 -07:00
Steven Smith
630f7c27a4 Revise and update Achievement enum. Fixes #194. 2016-09-05 19:23:57 -07:00
Jadon Fowler
27baf233c9
Check for negative GameModes in ServerPlayerListEntryPacket
These are sometimes negative for some reason. I was only able to
reproduce this on one server, but this fixed it. The server was
sending out a GameMode of -1.
2016-08-23 20:18:41 -07:00
Jadon Fowler
333b7d247d
Change Disconnect message to the Throwable's message
Throwable#toString() returns a description of the Throwable that
includes the name of the class appended to
Throwable#getLocalizedMessage(), which can be used for debugging
purposes.
2016-08-21 18:00:17 -07:00
Steven Smith
1b5b2c37a0 Fix readVarLong. 2016-08-13 17:12:34 -07:00
Steven Smith
8b1b94cb7c Compare magic string values with equalsIgnoreCase. 2016-06-28 13:34:26 -07:00
Final Child
f1f1d992a4 Bump MC version to 1.10.2. Nothing changed. 2016-06-26 13:03:07 +09:00
Steven Smith
6a71567147 Merge pull request #182 from finalchild/master
Add BlockFace.SPECIAL. Fix #181
2016-06-20 18:11:55 -07:00
Steven Smith
a7b882a7d7 Fix #183. 2016-06-20 18:08:37 -07:00
Final Child
c46750a396 Add BlockFace.SPECIAL 2016-06-19 21:48:30 +09:00
Final Child
456fb5c084 Make ServerListener use default ServerInfoBuilder and compression threshold if the flag is not set 2016-06-12 16:36:31 +09:00
Final Child
1d87b5499e Fix sounds. Have a TODO 2016-06-09 18:19:12 +09:00
Final Child
8bd59d7138 Update to MC 1.10 2016-06-09 17:47:46 +09:00
Final Child
0e05503348 Update to MC 1.10-pre1 2016-06-06 21:56:48 +09:00
Final Child
99824e1e4c Fix #159 (Effect) 2016-05-25 16:39:02 +09:00
Final Child
03f1d7d92d Fix last commit's code style 2016-05-25 16:28:10 +09:00
Final Child
61dbf354ff Fix #163 (ServerBlockValuePacket) 2016-05-25 16:25:56 +09:00
Final Child
c36ab6b76e Fix ServerChunkDataPacket 2016-05-21 16:18:35 +09:00
Final Child
8ac2ac9a0f I think this is enough. 2016-05-15 17:30:23 +09:00
Final Child
a1571ed0cb Change decs of packet IDs to hexs 2016-05-15 16:30:51 +09:00
Final Child
bc5d6f49e4 Yep 2016-05-15 15:56:17 +09:00
Final Child
56002e2167 Removed Update Sign (clientbound) (0x46); Update Block Entity with action
9 should be used instead
2016-05-15 15:55:28 +09:00
Final Child
0817147b1a Add TODO to Column 2016-05-15 15:44:54 +09:00
Final Child
01d7ed04b3 Protocol version 110 2016-05-15 15:40:11 +09:00
yawkat
02488a3812 Fix START/STOP_RAIN mappings 2016-04-12 16:54:00 +02:00
yawkat
ebee856602 Reflective toString implementation for all packets [Adds #152] 2016-04-08 17:23:16 +02:00
Final Child
f8ea987395 Change the type of ServerJoinGamePacket's gamemode to int 2016-04-03 20:45:53 +09:00
Final Child
820da1d459 Remove SoundCategory's useless semicolon 2016-04-03 20:27:37 +09:00
Final Child
cf2282a0be Enhance attribute names 2016-04-03 20:25:25 +09:00
Final Child
c133281224 Update to MC 1.9.2 2016-04-03 20:09:47 +09:00
Steven Smith
16a120036c Make MagicValues key type more lenient. 2016-03-12 10:48:32 -08:00
Steven Smith
7dd6887fed Fix ServerEntitySetPassengersPacket. 2016-03-12 10:42:10 -08:00
MatteCarra
e447052eca Chunk light fix 2016-03-11 16:59:37 -08:00
Steven Smith
da5591b4fe Add OVERPOWERED achievement. 2016-03-11 16:59:34 -08:00
Steven Smith
4ed72deb75 Update and clean up data values. 2016-03-04 18:32:10 -08:00
Steven Smith
97c0a69294 1.9 2016-03-03 18:32:08 -08:00
Steven Smith
0adb269ae1 Fix block tests. 2015-10-03 13:22:31 -07:00
Steven Smith
480f339742 15w39c, major restructuring. 2015-09-24 20:51:43 -07:00
Steven Smith
544e47c9e7 Don't release buffer after single use. 2015-09-24 16:45:05 -07:00
Steven Smith
0d1036693c Minor fix. 2015-09-24 16:31:07 -07:00
Vladislavs Golubs
0f45de347b Tweaks for reading and writing block position
Also improved tests code
2015-09-24 16:30:47 -07:00
Vladislavs Golubs
074d2b1849 Fixed BlockChangePacket after last changes 2015-09-24 16:12:40 -07:00
Steven Smith
471d98ee4b Parse block change value into id and data, minor cleanup. 2015-09-21 20:38:44 -07:00
Steven Smith
b958e52ba5 Remove old chunk data packet constructor for unloading chunks. 2015-08-25 18:48:44 -07:00
Steven Smith
a91a407d90 15w35b 2015-08-24 20:17:03 -07:00
Steven Smith
885d03759d Report when packets are not fully read. 2015-08-24 20:15:51 -07:00
Steven Smith
03379f767d Update usages of MagicValues.key to account for throwing IllegalArgumentException instead of returning null. 2015-08-23 12:48:33 -07:00
Steven Smith
1b913851ee Add ATTACK_SPEED_MODIFIER. 2015-08-23 12:42:12 -07:00
Steven Smith
baca667a30 Update entity attributes. 2015-08-23 12:19:23 -07:00
Steven Smith
83b83bdc3e Use byte array streams for chunk I/O. 2015-08-23 11:28:09 -07:00
Steven Smith
93978378f6 Update chunk sending protocol. 2015-08-22 22:25:25 -07:00
Steven Smith
62d5509768 Add additional array I/O methods, add ByteBuffer-backed NetInput and NetOutput implementations. 2015-08-22 21:52:01 -07:00
Steven Smith
494805306f Remove prefixed byte array methods. 2015-08-22 20:25:04 -07:00
Steven Smith
ea99836709 Update entity types. 2015-08-22 16:55:29 -07:00
Steven Smith
447fb16447 Add new OP permission level entity status values. 2015-08-22 16:23:17 -07:00
Steven Smith
4d68bc26eb Bump protocol version to 61. 2015-08-22 16:06:25 -07:00
Steven Smith
c49e1569d3 15w34d. 2015-08-22 14:17:39 -07:00
Steven Smith
b7a1cdf2cc Ensure we aren't waiting for a connection when we've been disconnected by the user. 2015-08-21 21:16:20 -07:00
Steven Smith
fa806e58fe Sync future instead of using listener. 2015-08-21 21:14:17 -07:00
Steven Smith
34c2a5c291 Ensure channel is set before returning from connect(). 2015-08-21 21:05:52 -07:00
Steven Smith
310de7c490 Test. 2015-08-21 20:52:17 -07:00
Steven Smith
58cc7de810 Report DisconnectedEvents in tests. 2015-08-21 20:47:54 -07:00
Steven Smith
83a5cb405c Minor fixes and cleanup. 2015-08-21 20:47:37 -07:00
Steven Smith
9c1ac6aa9b Ensure channel is set before returning from bind(). 2015-08-21 20:08:13 -07:00
Steven Smith
8f98f3a780 Add unit test from @ensirius. 2015-08-21 19:30:33 -07:00
Steven Smith
ce140f43d6 Cleanup, add wait flag to Server.bind, fix connection errors not throwing DisconnectedEvent. 2015-08-21 19:15:36 -07:00
Steven Smith
4c06294c88 Ensure connection process has fully completed before ending wait loop. 2015-08-20 16:59:59 -07:00
Steven Smith
b89b482bd1 Update entity metadata for 15w33c changes. 2015-08-14 20:02:55 -07:00
Steven Smith
0c2b7fdce8 15w33c 2015-08-14 17:01:28 -07:00
Steven Smith
9ad441cfcc Bump protocol version by 1. 2015-08-13 21:02:17 -07:00
Steven Smith
0a2926dada Minor cleanup. 2015-08-13 19:34:48 -07:00
Steven Smith
c68659008b Report exceptions from connection thread. 2015-08-13 19:31:00 -07:00
Steven Smith
08ab590e07 15w33b 2015-08-12 21:33:50 -07:00
Steven Smith
abb2108fb3 15w32c 2015-08-11 22:58:20 -07:00
Steven Smith
4ccf753002 Update game version. 2015-07-28 20:49:40 -07:00
Steven Smith
6cc87bcbdb Fix user verification. 2015-07-22 15:27:29 -07:00
Steven Smith
aff6600deb Update for MCAuthLib changes. 2015-07-22 13:49:42 -07:00
Steven Smith
78eb55a7c3 Update for MCAuthLib changes. 2015-07-22 13:40:13 -07:00
Steven Smith
2ed6e1e1e8 Pass authentication errors to disconnect. 2015-07-22 11:07:37 -07:00
Steven Smith
d29c5f3418 Update for MCAuthLib changes. 2015-07-21 21:41:08 -07:00
Steven Smith
81024b88ff Refactor ProtocolMode to SubProtocol, ProtocolConstants to MinecraftConstants. 2015-07-21 17:40:42 -07:00
Steven Smith
eb57e0835c Update version. 2015-07-20 12:26:58 -07:00
Steven Smith
26e6ae38a5 General cleanup, fixes, and re-versioning. 2015-07-20 12:09:58 -07:00
Steven Smith
b22cd66d4f General cleanup, fixes, and re-versioning. 2015-07-20 11:13:18 -07:00
Steven Smith
83161ffa03 Update to Netty 5.0.0.Alpha2 2015-07-18 18:55:00 -07:00
Steven Smith
3b17a15d29 Make KeepAliveThread a Runnable. 2015-07-18 18:32:28 -07:00
Steven Smith
654495376e Use currentTimeMillis instead of nanoTime, delay KeepAliveThread with sleep call. 2015-07-18 18:30:20 -07:00
johni0702
99e3e6880b Fix empty text messages failing to parse 2015-07-11 12:54:00 -07:00
johni0702
2aef90aaaf Split window properties into separate enums for separate window types 2015-07-11 12:54:00 -07:00
johni0702
997d129d6d Add missing world types (customized and debug) and fixed typo (all world types should be lowercase) 2015-07-11 12:54:00 -07:00
johni0702
ddafc12a7d Add sidebar scoreboard positions for each of the 16 teams 2015-07-11 12:54:00 -07:00
Steven Smith
f176be257b Add authentication proxy support. 2015-07-11 12:53:25 -07:00
Steven Smith
aa1c3051a9 Fix TcpSession CME. 2015-05-02 14:14:05 -07:00
Steven Smith
3687891770 Further improvements to exception handling. 2015-04-17 08:47:10 -07:00
Steven Smith
3d3ebad1f4 Listen for future errors and wait using awaitUninterruptibly in TcpSession.connect. 2015-04-17 08:40:26 -07:00
Steven Smith
b9fec7dea9 Merge pull request #82 from Johni0702/armorstand-mob
Armor stands can be spawned using the ServerSpawnMobPacket
2015-04-03 15:06:22 -07:00
johni0702
1c680e23ee Armor stands can be spawned using the ServerSpawnMobPacket 2015-04-03 18:42:17 +02:00
johni0702
3295730910 Any value may be used to reset the block break animation (not just 255) 2015-04-01 17:27:02 +02:00
Steven Smith
f5d3e69907 Merge pull request #76 from Johni0702/team-flags
Handle 'FriedlyFire' byte as flags
2015-03-25 15:10:23 -07:00
johni0702
933c817d96 Add missing 1.8 EntityStatus values 2015-03-25 18:06:20 +01:00
johni0702
90ff098521 Handle 'FriedlyFire' byte as distinct friendly fire (0x1) and visibility of invisible team members (0x2) flags 2015-03-25 17:35:59 +01:00
johni0702
48c03a9324 Add equals and hashCode methods where applicable (except packets) 2015-03-16 20:54:31 +01:00
johni0702
b7f071fb91 Add objective to constructor for ServerUpdateScorePacket 2015-03-16 20:54:23 +01:00
johni0702
584b296f0b Add getter for score type 2015-03-16 20:54:15 +01:00
johni0702
c912787d39 Allow for unknown AttributeModifier UUIDs 2015-03-16 20:53:58 +01:00
johni0702
954b799f88 Add missing magic values: FALLING_DRAGON_EGG, ARMOR_STAND ,BANNER, RABBIT_sound
Fix typos in string constants for AttributeTypes
2015-03-16 20:53:48 +01:00
Steven Smith
ce97f9749e Merge pull request #70 from Johni0702/rotation-metadata
Fix Rotation throwing IOException in writeEntityMetadata
2015-01-25 16:54:07 -08:00
johni0702
43be8dd7f0 Fix Rotation case of switch in writeEntityMetadata falling through causing an IOException to be thrown 2015-01-25 19:08:01 +01:00
Steven Smith
634e89ff04 Add exception boolean to TcpSession to halt loops if an exception occurs. 2015-01-25 09:42:11 -08:00
johni0702
4cc31cd933 Fix ServerUpdateScorePacket; name of the objective should not be optional 2015-01-25 10:23:16 +01:00
johni0702
f5e61b682d Fix ServerEntityPropertiesPacket writing wrong data types; VarInt, Short should be Int, VarInt 2015-01-25 10:13:23 +01:00
Steven Smith
f4b62989a6 Fix ServerCombatPacket 2015-01-02 13:59:59 -08:00
Aesen Vismea
063c6bda71 Fix ServerEntityRemoveEffectPacket; it uses VarInt, not Int. 2014-12-13 00:26:04 -05:00
Steven Smith
a0271e0ce8 Add RABBIT to MobType, fix ServerOpenWindowPacket. 2014-12-09 19:23:03 -08:00
Steven Smith
4cf17e3dea Fix getWriteTimeout 2014-11-23 16:15:20 -08:00
Steven Smith
d973104963 Fix mistake in player list data packet. 2014-11-07 15:45:57 -08:00
Steven Smith
e180dee53a Fix stack overflow in MessageStyle. 2014-10-23 19:55:40 -07:00
Steven Smith
bb3818e62c Parent setting should be internal. 2014-10-17 20:50:59 -07:00
Steven Smith
d61f0773be Change default to check if style equals parent style rather than WHITE and no formatting. 2014-10-17 20:46:11 -07:00
Steven Smith
74ffe135a6 Account for parent styles not having default properties in isDefault. 2014-10-17 20:33:39 -07:00
Steven Smith
db8cd53297 Fix reading metadata type id. 2014-10-17 16:06:56 -07:00
Steven Smith
b7d758f6a5 Add missing code for writing display name data in ServerPlayerListEntryPacket. 2014-10-12 18:10:42 -07:00
Steven Smith
5e1581e319 Organize key constants and set ping value to zero on connection to prevent NPEs 2014-10-12 17:34:11 -07:00
Steven Smith
4afb6d8a8f PlayerListEntry properties should be part of the profile. 2014-10-12 16:56:18 -07:00
Steven Smith
202e2238fa Fix mistake from change porting. 2014-10-12 11:03:56 -07:00
Steven Smith
779f0df8a6 Remove unnecessary operations on metadata info. 2014-10-12 10:22:06 -07:00
Steven Smith
e5d5ec46cd Add methods to get block ids and data values from ShortArray3d. 2014-10-10 16:42:07 -07:00
Steven Smith
80bb3a25b0 Fix visibility in head look packet. 2014-10-10 15:53:34 -07:00
Steven Smith
65e3518aaf Timeout should be multiplied by 1000 for milliseconds. 2014-09-14 21:03:12 -07:00
Steven Smith
11ce15cb03 Ensure currently set timeout and handler is used. 2014-09-14 20:43:39 -07:00
Steven Smith
7b3146c4d4 Catch timeout exceptions throughout all of the connect method, tweak connect timeout application. 2014-09-14 20:14:14 -07:00
Steven Smith
670f5fb219 Use try-catch for connect timeout exception if waiting. 2014-09-14 19:46:05 -07:00
Steven Smith
9cbdc6a1aa More clarification to timeout disconnect messages. 2014-09-14 19:19:57 -07:00
Steven Smith
d418516fe3 Minor message update. 2014-09-14 19:15:55 -07:00
Steven Smith
8fa57eb73a Call timeout handler if connect future results in a ConnectTimeoutException. 2014-09-14 19:13:25 -07:00
Steven Smith
5546770d4b 1.8 2014-09-02 16:11:24 -07:00
Steveice10
7b26b14f31 Expand on timeout control. 2014-08-27 19:53:54 -07:00
Steveice10
249511e80f Allow adjusting timeout and performing actions when a timeout occurs. 2014-08-26 20:21:06 -07:00
Steveice10
64153f7207 1.8-pre1 2014-08-23 22:46:41 -07:00
Steveice10
a9bb583b8f Correct packet IDs. 2014-08-16 22:10:51 -07:00
Steveice10
3620abb183 Block particles now send only 1 data variable. 2014-08-15 23:50:09 -07:00
Steveice10
6d266e56d5 If the packet says we don't have skylight don't try to get it. 2014-08-15 23:42:39 -07:00
Steven Smith
17bb28caae Send LoginSetCompressionPacket instead of ServerSetCompressionPacket 2014-08-11 22:41:34 -07:00
Steven Smith
b033e6c095 Allow accessing profile and token and passing them to protocol constructors. 2014-08-11 12:30:24 -07:00
Steven Smith
24468dee6b Return unsigned bytes from NetInputStream. 2014-08-11 11:35:08 -07:00
Steven Smith
1f8abf7eea Add methods for reading/writing UUIDs as longs. 2014-08-11 11:34:36 -07:00
Steven Smith
081c1a00f1 Various protocol issue fixes part 1. 2014-08-10 23:29:27 -07:00
Steven Smith
d9e767b977 Add missing login process changes. 2014-08-10 22:51:41 -07:00
Steven Smith
04b83288f8 14w32d 2014-08-10 22:20:58 -07:00
Steven Smith
b244f17d77 14w31a 2014-08-04 11:28:33 -07:00
Steven Smith
2ce93ace27 Add VarLong support, fix compression issue. 2014-08-04 11:28:15 -07:00
Steven Smith
3963c52123 Register WITHER_SPAWN in MagicValues. 2014-07-28 09:36:01 -07:00
Steven Smith
c60893b8ab Add WITHER_SPAWN to SoundEffect enum. 2014-07-28 09:35:10 -07:00
Steven Smith
d4d8db1f0c 14w29b 2014-07-16 12:46:41 -07:00
Steven Smith
73f375ba20 Add packet compression and methods for reading bytes to an existing array. 2014-07-16 12:46:26 -07:00
Steven Smith
640e5b30fa Initialize lastPingTime to current time before starting KeepAliveThread loop. Probably fixes #41 2014-06-26 10:43:21 -07:00
Steven Smith
49651dded0 Allow PacketHeader to return -1 for packet IDs to signal that the packet should not be read yet. 2014-06-21 20:15:54 -07:00
Steven Smith
670d471a34 Update for PacketLib changes. 2014-06-21 19:50:58 -07:00
Steven Smith
6b7b65b015 Allow protocols to specify whether packet sizers or encryptors will ever be added to the connection. 2014-06-21 19:50:34 -07:00
Steven Smith
0001266658 Actually read the bytes instead of passing the same buffer to satisfy Netty. 2014-06-21 19:30:59 -07:00
Steven Smith
396b7bfab7 Add interface for customizing packet headers. 2014-06-20 14:39:10 -07:00
Steven Smith
6d29ff07f8 Update for PacketLib changes. 2014-06-20 14:21:53 -07:00
Steven Smith
861a234a09 Add MobType.GUARDIAN. 2014-06-18 12:06:18 -07:00
Steven Smith
eb23b84e11 14w25a 2014-06-18 11:59:33 -07:00
Steven Smith
96c0c4bdda Merge recent pull request changes into snapshot branch 2014-06-09 08:35:45 -07:00
Steveice10
1440d8955f Remove unneeded Face.UNKNOWN to -1 mapping 2014-05-21 16:34:14 -07:00
Steveice10
843d77b6b6 Merge changes from @MylesIsCool 2014-05-21 16:09:02 -07:00
Steveice10
1ea9b9bea9 14w17a 2014-04-24 17:01:49 -07:00
Steveice10
21c7d90a78 Catch and report exceptions from disconnect events 2014-04-04 15:39:51 -07:00
Steveice10
bfbca651ba Read ServerMapDataPacket data as unsigned bytes. 2014-03-30 16:11:21 -07:00
Steveice10
91d8f0f57c Move authentication code to MCAuthLib 2014-03-30 10:48:44 -07:00
Steveice10
fdbb8168c5 Bump OpenNBT version to 1.4 2014-03-25 20:18:25 -07:00
Steveice10
09eb9f3cfe Add endermite to MobType 2014-03-22 20:46:45 -07:00
Steveice10
1e3461659e Fix PlayerState number values 2014-03-22 19:53:18 -07:00
Steveice10
ad61ce285e Move KeepAliveThread initialization to after calling the login handler, fix ServerNotifyClientPacket, remove full column requirement in ServerMultiChunkDataPacket, properly create visibleParts list in ClientSettingsPacket. 2014-03-22 14:16:55 -07:00
Steveice10
52249597ce Only call PacketSendEvent if there are no errors in writing 2014-03-22 13:51:21 -07:00
Steveice10
5ff93b6826 Make verify users flag optional 2014-03-22 12:51:10 -07:00
Steveice10
0f11929962 14w11b 2014-03-22 12:11:55 -07:00
Steveice10
3dc42e72a8 Rename ClientEntityInteractPacket to ClientPlayerInteractEntityPacket 2014-03-22 09:41:46 -07:00
Steveice10
f5780c24a2 Rename ClientAnimationPacket to ClientSwingArmPacket 2014-03-21 23:10:44 -07:00
Steveice10
8416c30e10 Add session to server status handlers 2014-03-21 22:51:54 -07:00
Steveice10
f508352d2a Add spectator gamemode 2014-03-21 22:14:09 -07:00
Steveice10
6760893201 Minor cleanup, add Proxy support to TcpSessionFactory 2014-03-18 18:18:50 -07:00
Steveice10
22da13c001 Create skylight array when sky = true 2014-03-17 18:51:01 -07:00
Steveice10
3bff6611bd Refactored ch.spacebase to org.spacehq, reformatted code and line endings. 2014-03-01 16:47:32 -08:00
Steveice10
e19e1a44e9 Refactored ch.spacebase to org.spacehq, reformatted code and line endings. 2014-03-01 16:47:03 -08:00
Steveice10
f2a3bad452 Add @Override to toString 2014-02-22 12:45:40 -08:00
Steveice10
4abc1e4302 14w08a 2014-02-19 10:55:32 -08:00
Steveice10
0eaf5dc774 14w07a 2014-02-19 10:33:43 -08:00
Steveice10
92995ca245 Add getEntityId() to ServerEntityStatusPacket 2014-02-14 18:09:17 -08:00
Steveice10
11c69de21b 14w06b 2014-02-08 19:11:51 -08:00
Steveice10
9a12fe9596 Formatting 2014-01-30 20:29:35 -08:00
Steveice10
3f3c360e91 14w05a 2014-01-30 20:27:52 -08:00
Steveice10
d7a5ec25c6 Moved test out of source folder to example folder 2014-01-30 20:22:03 -08:00
Steveice10
67d531f598 Moved test classes out of source folder and into example folder. 2014-01-30 20:16:59 -08:00
Steveice10
ecc108b2e7 MagicValues fixes, removed the need for NetUtil.hasSky 2014-01-29 17:40:19 -08:00
Steveice10
57f377cdd1 Finish adding new MagicValues system. 2014-01-29 16:59:36 -08:00
Steveice10
5e4b0fa53e Unlike NibbleArray3d, size should not be shifted in ByteArray3d 2014-01-28 21:34:13 -08:00
Steveice10
a9d7bb8019 Add ByteArray3d for easier block access in chunks, renamed NibbleArray to NibbleArray3d 2014-01-28 06:27:47 -08:00
Steveice10
973cb8a790 Fixed ServerSpawnParticlePacket reading offsetZ twice 2014-01-27 16:08:22 -08:00
Steveice10
415903dd33 Most of work moving enums into their own files and adding MagicValues system, apply recent fixes from other branches 2014-01-26 21:52:02 -08:00
Steveice10
4f57237070 Added enum constants for skin flags 2014-01-24 20:34:36 -08:00
Steveice10
30c7b5af27 Remove auth debug messages, throw exceptions instead of printing out error messages 2014-01-24 18:38:17 -08:00
Steveice10
b4d03d2308 14w04b 2014-01-24 18:27:27 -08:00
Steveice10
416f8b0ebe 14w03b 2014-01-22 17:33:12 -08:00
Steveice10
5c81211588 Update to 14w02b 2014-01-11 21:02:29 -08:00
Steveice10
a73654861f Actually implement ServerSetExperiencePacket. 2014-01-11 20:18:38 -08:00
Steveice10
f9f730e19e Reordered ChatColor values, added ChatColor.RESET 2014-01-11 16:16:51 -08:00
Steveice10
cc85d31821 Switched from identifier strings in Message enums to name().toLowerCase(), added HoverAction.SHOW_ENTITY for the future (1.8 action) 2014-01-11 16:07:26 -08:00
Steveice10
6b95b635c7 Changed translation params to a Message array 2014-01-11 15:58:26 -08:00
Steveice10
e0e791d66e fromJsonString -> fromString 2014-01-11 15:53:45 -08:00
Steveice10
23cb077ddb Rewrote most of Message API to be easier to understand and use. 2014-01-11 15:48:12 -08:00
Steven Smith
3a58aa99e0 Update logIn and logOut references in UserAuthentication. 2014-01-11 11:45:11 -08:00
Steven Smith
625c0403dc Update usage of MinecraftProtocol constructor in Test. 2014-01-11 11:43:50 -08:00
Steven Smith
e1c98301ca Allow creating MinecraftProtocol instances with an accessToken instead of a password. 2014-01-11 11:43:03 -08:00
Steven Smith
4517e838ca Update usage of logIn to be lowercase. 2014-01-11 11:40:33 -08:00
Steven Smith
9223f8aaad Change logIn/logOut methods to be all lowercase. 2014-01-11 11:39:57 -08:00
Steven Smith
7949aef02f Add ability to set access token for logging in. 2014-01-11 10:20:58 -08:00
Steven Smith
f5f4075aea Fix reading/writing global entity spawn values. 2014-01-11 09:30:50 -08:00
Steveice10
4a75af8fa9 Use ProtocolConstants in server ping test 2014-01-07 18:58:10 -08:00
Steveice10
90a4170a56 Add option to not wait for session to connect before returning, ensure that channel has been obtained before returning. 2014-01-07 18:57:43 -08:00
Steveice10
a5d007b432 Change packet reading constructors to be private 2014-01-07 18:45:49 -08:00
Steveice10
4764d3a7ee Fix NPE when writing ServerChunkDataPacket if the chunk array is empty. Fixes further issues with #16 2014-01-07 18:33:02 -08:00
Steveice10
3d1915c196 Add convenience constructor to ServerChunkDataPacket for unloading chunks 2014-01-07 18:29:28 -08:00
Steveice10
b0958f9c0c Corrected chunk data full flag behavior to allow less than a full column of chunks to be sent. Closes #16 2014-01-07 16:52:56 -08:00
Steveice10
ee8c53c881 Unknown values in ServerBlockBreakAnimPacket = Stage.RESET 2014-01-03 17:31:51 -08:00
Steveice10
01306f1b94 Somehow this was missed; add keep alive sending 2014-01-03 16:27:20 -08:00
Steveice10
a933383832 Changed "Internal exception" disconnect message to be identifiable as the library 2014-01-03 13:08:54 -08:00
Steveice10
a1a3b749b4 Read message as text if json is null in constructor. 2014-01-03 13:08:05 -08:00
Steveice10
74a9a442be Add Stage.RESET to ServerBlockBreakAnimPacket 2014-01-03 11:50:53 -08:00
Steveice10
30e62ec9e2 ServerAnimationPacket should have a varint entity id 2014-01-03 10:35:35 -08:00
Steveice10
471a15bf8d Added Generic value to ServerBlockValuePacket to fix cases where a server might send the wrong block id 2014-01-03 10:10:46 -08:00
Steveice10
0ba777f18d Changed yaw/pitch in ClientPlayerMovementPacket to floats. Thanks to @hardtoe for pointing out the problems addressed in recent commits 2014-01-03 09:15:51 -08:00
Steveice10
aa5c48558c Implement INVALID Face values in ClientPlayerDigPacket for received values such as 255 2014-01-03 09:14:00 -08:00
Steveice10
8230753d68 Correct reading/writing of ClientAnimationPacket. 2014-01-03 09:10:20 -08:00
Steveice10
5bf933881c Correct reading/writing of ClientEntityActionPacket. Closes #12 2014-01-03 09:06:54 -08:00
Steveice10
cb39f01614 Added DefaultAttribute constructors to Attribute 2014-01-01 09:15:08 -08:00
Steveice10
df043e6271 Improve toString methods in auth package, remove AuthenticationService 2014-01-01 09:12:13 -08:00
Steveice10
c2e238ab8c Moved request methods from AuthenticationService to URLUtils 2014-01-01 09:04:50 -08:00
Steveice10
77a7610f32 Bumped version up to 1.7.4 and improved Message API 2014-01-01 08:43:57 -08:00
Steveice10
e90d9d8031 Added support for translate messages 2013-12-14 17:22:18 -08:00
Steveice10
eec5807cfa Remove debug message 2013-12-14 17:03:25 -08:00
Steveice10
91d16ae3be Change packet header to have length int, add splitter to split packets by length, add encryption support, misc changes in preparation for MCProtocolLib rewrite 2013-12-14 16:41:25 -08:00
Steveice10
4088aacd0a Rewrite of library for 1.7.2. Javadocs coming soon 2013-12-14 16:40:30 -08:00
Steveice10
e5fc2cef87 Initial commit 2013-11-29 14:34:06 -08:00
Steveice10
7112e67607 Pre-1.7 misc. fixes (Waiting for 1.7.2 MCP update) 2013-11-01 17:43:53 -07:00
Desmond Connor
b88f30079f Added Visitor Pattern 2013-09-15 12:29:39 +01:00
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