Commit graph

1215 commits

Author SHA1 Message Date
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
Steven Smith
3c01b4dcf6 Merge pull request #74 from Johni0702/1.8
Several small additions/fixes
2015-03-16 14:30:56 -07: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
Steven Smith
2c4414966c Merge pull request #69 from Johni0702/properties-packet
ServerEntityPropertiesPacket & ServerUpdateScorePacket fixes
2015-01-25 09:05:24 -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
Steven Smith
61360596bc Minor improvement to Test example. 2015-01-02 11:00:59 -08:00
Steven Smith
c3cc758dec Merge pull request #65 from AesenV/patch-1
Fix ServerEntityRemoveEffectPacket
2014-12-13 10:45:09 -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