Improved the API slightly.
Dieser Commit ist enthalten in:
Ursprung
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);
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren