Scumbags Forge and Spout.

This commit is contained in:
md_5 2013-02-03 20:53:58 +11:00
parent fbacafb752
commit a2ebb92d56
3 changed files with 20 additions and 0 deletions

View File

@ -39,4 +39,10 @@ public class Packet1Login extends DefinedPacket
this.unused = readByte(); this.unused = readByte();
this.maxPlayers = readByte(); this.maxPlayers = readByte();
} }
@Override
public void handle(PacketHandler handler) throws Exception
{
handler.handle(this);
}
} }

View File

@ -26,4 +26,10 @@ public class PacketFAPluginMessage extends DefinedPacket
this.tag = readUTF(); this.tag = readUTF();
this.data = readArray(); this.data = readArray();
} }
@Override
public void handle(PacketHandler handler) throws Exception
{
handler.handle(this);
}
} }

View File

@ -8,6 +8,10 @@ public abstract class PacketHandler
throw new UnsupportedOperationException("No handler defined for packet " + packet.getClass()); throw new UnsupportedOperationException("No handler defined for packet " + packet.getClass());
} }
public void handle(Packet1Login login) throws Exception
{
}
public void handle(Packet2Handshake handshake) throws Exception public void handle(Packet2Handshake handshake) throws Exception
{ {
} }
@ -16,6 +20,10 @@ public abstract class PacketHandler
{ {
} }
public void handle(PacketFAPluginMessage pluginMessage) throws Exception
{
}
public void handle(PacketFCEncryptionResponse encryptResponse) throws Exception public void handle(PacketFCEncryptionResponse encryptResponse) throws Exception
{ {
} }