LegacyPacket

interface LegacyPacket

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

This class can be implemented and sent over sendPacket to imitated behavior from older minecraft versions.

Inheritors

Properties

Link copied to clipboard
abstract val packetType: PacketType

The type of the packet.

Link copied to clipboard
abstract val protocol: Class<out Protocol<*, *, *, *>>

Should provide the class of the protocol from the version where the packet got removed to the version where it was still present.

Functions

Link copied to clipboard
abstract fun write(packetWrapper: PacketWrapper)

Writes the actual information to the packetWrapper.