Uses of Class
lu.kbra.p4j.socket.server.ServerClient
Packages that use ServerClient
Package
Description
-
Uses of ServerClient in lu.kbra.p4j.events
Methods in lu.kbra.p4j.events that return ServerClient -
Uses of ServerClient in lu.kbra.p4j.packets
Methods in lu.kbra.p4j.packets with parameters of type ServerClientModifier and TypeMethodDescriptionvoidHeartbeatPacket.serverRead(ServerClient sclient, Void obj) HeartbeatPacket.serverWrite(ServerClient client) -
Uses of ServerClient in lu.kbra.p4j.packets.c2s
Methods in lu.kbra.p4j.packets.c2s with parameters of type ServerClient -
Uses of ServerClient in lu.kbra.p4j.packets.s2c
Methods in lu.kbra.p4j.packets.s2c with parameters of type ServerClient -
Uses of ServerClient in lu.kbra.p4j.socket.server
Methods in lu.kbra.p4j.socket.server that return ServerClientMethods in lu.kbra.p4j.socket.server that return types with arguments of type ServerClientModifier and TypeMethodDescriptionClientManager.all()ClientManager.getAllClients()P4JServer.getConnectedClients()Methods in lu.kbra.p4j.socket.server with parameters of type ServerClientModifier and TypeMethodDescriptionprotected voidClientManager.registerClient(ServerClient serverClient) Registers a newServerClientinstance.voidClientManager.remove(ServerClient serverClient) Unregister aServerClientMethod parameters in lu.kbra.p4j.socket.server with type arguments of type ServerClientModifier and TypeMethodDescriptionvoidP4JServer.broadcast(Function<ServerClient, S2CPacket<?>> packetSupplier) Sends the packet provided by the supplier to all the connected clients.voidP4JServer.broadcastIf(Function<ServerClient, S2CPacket<?>> packetSupplier, Predicate<ServerClient> condition) Iterates over all the connected clients and sends the packet provided by the supplier, if the predicate's condition is met.voidP4JServer.broadcastIf(Function<ServerClient, S2CPacket<?>> packetSupplier, Predicate<ServerClient> condition) Iterates over all the connected clients and sends the packet provided by the supplier, if the predicate's condition is met.voidP4JServer.broadcastIf(List<S2CPacket<?>> packets, Predicate<ServerClient> condition) Iterates over all the connected clients and sends the specified packet(s) if the predicate's condition is met.voidP4JServer.broadcastIf(S2CPacket<?> packet, Predicate<ServerClient> condition) Iterates over all the connected clients and sends the specified packet if the predicate's condition is met.Constructor parameters in lu.kbra.p4j.socket.server with type arguments of type ServerClientModifierConstructorDescriptionClientManager(P4JServer server, Function<SocketChannel, ServerClient> clientCreationCallback) Creates a customClientManagerbound to server instance.
This ClientManager uses the given consumer to create newServerClientinstances.