Uses of Interface
lu.kbra.p4j.packets.s2c.S2CPacket
Packages that use S2CPacket
-
Uses of S2CPacket in lu.kbra.p4j.packets
Classes in lu.kbra.p4j.packets that implement S2CPacket -
Uses of S2CPacket in lu.kbra.p4j.socket.server
Methods in lu.kbra.p4j.socket.server with parameters of type S2CPacketModifier and TypeMethodDescriptionvoidSends the packet to all the connected clients.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.booleanWrites a packet from the server to the client.Method parameters in lu.kbra.p4j.socket.server with type arguments of type S2CPacketModifier and TypeMethodDescriptionvoidP4JServer.broadcast(Function<ServerClient, S2CPacket<?>> packetSupplier) Sends the packet provided by the supplier to all the connected clients.voidSends the packets 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(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.