Package org.quiltmc.qkl.wrapper.qsl.networking
Types
Link copied to clipboard
typealias EntityTrackingCallback = (trackedEntity: Entity, player: ServerPlayerEntity) -> Unit
Content copied to clipboard
Link copied to clipboard
typealias GenericLoginCallback = ServerLoginNetworkHandler.(server: MinecraftServer) -> Unit
Content copied to clipboard
Link copied to clipboard
typealias GenericPlayCallback = ServerPlayNetworkHandler.(server: MinecraftServer) -> Unit
Content copied to clipboard
Link copied to clipboard
typealias LoginQueryStartCallback = ServerLoginNetworkHandler.(server: MinecraftServer, packetSender: PacketSender, synchronizer: ServerLoginNetworking.LoginSynchronizer) -> Unit
Content copied to clipboard
Link copied to clipboard
typealias S2CPlayChannelCallback = ServerPlayNetworkHandler.(packetSender: PacketSender, server: MinecraftServer, channels: List<Identifier>) -> Unit
Content copied to clipboard
Link copied to clipboard
typealias S2CPlayReadyCallback = ServerPlayNetworkHandler.(packetSender: PacketSender, server: MinecraftServer) -> Unit
Content copied to clipboard
Functions
Link copied to clipboard
fun ServerWorld.getPlayersNear(pos: Vec3d, radius: Double): Collection<ServerPlayerEntity>
Content copied to clipboard
fun ServerWorld.getPlayersNear(pos: Vec3i, radius: Double): Collection<ServerPlayerEntity>
Content copied to clipboard
Link copied to clipboard
fun ServerWorld.getPlayersTrackingChunk(pos: ChunkPos): Collection<ServerPlayerEntity>
Content copied to clipboard
Returns the players who are currently "tracking" the chunk, i.e. who have the chunk loaded.
Link copied to clipboard
fun EventRegistration.onEntityTrackingStart(callback: EntityTrackingCallback)
Content copied to clipboard
Invoked when a player on the server starts tracking an entity. This usually happens when the entity gets close enough to the player to be seen.
Link copied to clipboard
fun EventRegistration.onEntityTrackingStop(callback: EntityTrackingCallback)
Content copied to clipboard
Invoked when a player on the server stops tracking an entity. By the time this event runs, the player has already been told to destroy the entity instance, but the entity is still on the server.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun EventRegistration.onLoginQueryStart(callback: LoginQueryStartCallback)
Content copied to clipboard
Link copied to clipboard
fun EventRegistration.onPlayChannelRegister(callback: S2CPlayChannelCallback)
Content copied to clipboard
Link copied to clipboard
fun EventRegistration.onPlayChannelUnregister(callback: S2CPlayChannelCallback)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard