Improved the API slightly.

This commit is contained in:
Kristian S. Stangeland 2012-09-18 00:01:02 +02:00
parent e5beca4ea5
commit ffbaed283a
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ public interface ProtocolManager {
* @param argumentTypes - type of each argument to pass to Minecraft.
* @return The packet constructor.
*/
public PacketConstructor createPacketConstructor(int id, Class<?>[] argumentTypes);
public PacketConstructor createPacketConstructor(int id, Class<?>... argumentTypes);
/**
* Retrieves a immutable set containing the ID of the sent server packets that will be observed by listeners.

View File

@ -326,7 +326,7 @@ public final class PacketFilterManager implements ProtocolManager {
}
@Override
public PacketConstructor createPacketConstructor(int id, Class<?>[] argumentTypes) {
public PacketConstructor createPacketConstructor(int id, Class<?>... argumentTypes) {
return PacketConstructor.DEFAUALT.withPacket(id, argumentTypes);
}