Skip to content

Class MinecraftPacketTransformationMapping

Namespace: Void.Minecraft.Network.Registries.Transformations.Mappings
Assembly: Void.Minecraft.dll

Associates a packet transformation with its source and destination protocol versions.

public record MinecraftPacketTransformationMapping : IEquatable<MinecraftPacketTransformationMapping>

Inheritance

objectMinecraftPacketTransformationMapping

Implements

IEquatable<MinecraftPacketTransformationMapping>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

MinecraftPacketTransformationMapping(ProtocolVersion, ProtocolVersion, MinecraftPacketTransformation)

Associates a packet transformation with its source and destination protocol versions.

public MinecraftPacketTransformationMapping(ProtocolVersion From, ProtocolVersion To, MinecraftPacketTransformation Transformation)

Parameters

From ProtocolVersion

The version whose packet layout is consumed.

To ProtocolVersion

The version whose packet layout is produced.

Transformation MinecraftPacketTransformation

The field transformation to apply.

Properties

From

The version whose packet layout is consumed.

public ProtocolVersion From { get; init; }

Property Value

ProtocolVersion

To

The version whose packet layout is produced.

public ProtocolVersion To { get; init; }

Property Value

ProtocolVersion

Transformation

The field transformation to apply.

public MinecraftPacketTransformation Transformation { get; init; }

Property Value

MinecraftPacketTransformation