Class MinecraftPacketTransformationsExtensions
Namespace: Void.Minecraft.Network.Registries.Transformations.Extensions
Assembly: Void.Minecraft.dll
Extension methods for registering
public static class MinecraftPacketTransformationsExtensionsInheritance
object ← MinecraftPacketTransformationsExtensions
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
RegisterTransformations<T>(IMinecraftPacketTransformationsRegistry, ProtocolVersion, params IEnumerable<MinecraftPacketTransformationMapping>)
Adds one or more transformation mapping sequences for a packet type.
public static void RegisterTransformations<T>(this IMinecraftPacketTransformationsRegistry registry, ProtocolVersion protocolVersion, params IEnumerable<MinecraftPacketTransformationMapping> mappings) where T : IMinecraftPacketParameters
registry IMinecraftPacketTransformationsRegistry
The registry to update.
protocolVersion ProtocolVersion
The current protocol version used to filter mappings.
mappings IEnumerable<MinecraftPacketTransformationMapping>
A sequence containing the transformation mappings for T.
Type Parameters
T
The packet type whose pipelines are registered.
Exceptions
T already has a registered transformation pipeline.