mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-04 17:59:35 +01:00
Improved the API slightly.
This commit is contained in:
parent
e5beca4ea5
commit
ffbaed283a
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user