Package-level declarations

Types

Link copied to clipboard
interface LegacyPacket

A packet that is directly sent to the server over ViaVersion.

Link copied to clipboard

https://github.com/ViaVersion/ViaFabricPlus/blob/ecd5d188187f2ebaaad8ded0ffe53538911f7898/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/MixinMinecraftClient.java#L124-L130

Link copied to clipboard
data class PickFromInventoryPacket(val slot: Int) : LegacyPacket
Link copied to clipboard

https://github.com/ViaVersion/ViaFabricPlus/blob/56c4959000e68d77fd415b89af7a95478d825079/src/main/java/com/viaversion/viafabricplus/injection/mixin/features/movement/sprinting_and_sneaking/MixinClientPlayerEntity.java#L251-L264

Properties

Link copied to clipboard
val packetRegistry: EnumMap<PacketFlow, MutableSet<Identifier>>

A registry for packet types, allowing registration of packet identifiers for both clientbound and serverbound packets. This is used to keep track of which packets are registered for each side of the network.

Link copied to clipboard
val ServerboundMovePlayerPacket.position: Vec3

Functions

Link copied to clipboard
fun Packet<*>?.isC2SContainerPacket(): Boolean
Link copied to clipboard
fun Packet<*>?.isLocalPlayerDamage(): Boolean
Link copied to clipboard
fun Packet<*>?.isLocalPlayerVelocity(considerExplosion: Boolean = true): Boolean
Link copied to clipboard
fun ClientboundSetEntityMotionPacket.isMovementYFallDamage(): Boolean
Link copied to clipboard
inline fun ClientCommonPacketListenerImpl.sendPacket(packet: LegacyPacket, onSuccess: () -> Unit = {}, onFailure: () -> Unit = {})

Sends the packet.