Finish and create passing unit tests for the integrity of all packet classes.
This commit is contained in:
@@ -13,6 +13,7 @@ public class DefinedPacketEncoder extends MessageToByteEncoder<DefinedPacket>
|
||||
@Override
|
||||
protected void encode(ChannelHandlerContext ctx, DefinedPacket msg, ByteBuf out) throws Exception
|
||||
{
|
||||
out.writeBytes( msg.getPacket() );
|
||||
out.writeByte( msg.getId() );
|
||||
msg.write( out );
|
||||
}
|
||||
}
|
||||
|
13
proxy/src/main/java/net/md_5/bungee/netty/PacketHandler.java
Normal file
13
proxy/src/main/java/net/md_5/bungee/netty/PacketHandler.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package net.md_5.bungee.netty;
|
||||
|
||||
public abstract class PacketHandler extends net.md_5.bungee.protocol.packet.PacketHandler
|
||||
{
|
||||
|
||||
public void connected(ChannelWrapper channel) throws Exception
|
||||
{
|
||||
}
|
||||
|
||||
public void disconnected(ChannelWrapper channel) throws Exception
|
||||
{
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user