Commit 6ea1d058eb36936b5b77ffa80a346ef275477bce
1 parent
9399ebbe
deprecating event in PreJoinGameListener
Showing
1 changed file
with
5 additions
and
0 deletions
java/common/com/mumfrey/liteloader/PreJoinGameListener.java
@@ -16,6 +16,11 @@ public interface PreJoinGameListener extends LiteMod | @@ -16,6 +16,11 @@ public interface PreJoinGameListener extends LiteMod | ||
16 | * | 16 | * |
17 | * @param netHandler Net handler | 17 | * @param netHandler Net handler |
18 | * @param joinGamePacket Join game packet | 18 | * @param joinGamePacket Join game packet |
19 | + * | ||
20 | + * @return true to cancel the event | ||
21 | + * @deprecated this event's return code is not compatible with other events expressing the same pattern, | ||
22 | + * it will be replaced in the next release with a method whose return value is boolean to NOT cancel | ||
19 | */ | 23 | */ |
24 | + @Deprecated | ||
20 | public abstract boolean onPreJoinGame(INetHandler netHandler, S01PacketJoinGame joinGamePacket); | 25 | public abstract boolean onPreJoinGame(INetHandler netHandler, S01PacketJoinGame joinGamePacket); |
21 | } | 26 | } |