Archiviert
13
0

Improved the API slightly.

Dieser Commit ist enthalten in:
Kristian S. Stangeland 2012-09-18 00:01:02 +02:00
Ursprung e5beca4ea5
Commit ffbaed283a
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -131,7 +131,7 @@ public interface ProtocolManager {
* @param argumentTypes - type of each argument to pass to Minecraft. * @param argumentTypes - type of each argument to pass to Minecraft.
* @return The packet constructor. * @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. * Retrieves a immutable set containing the ID of the sent server packets that will be observed by listeners.

Datei anzeigen

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