Skip to content

Interface IMinecraftPacketTransformationsRegistry

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

public interface IMinecraftPacketTransformationsRegistry

Extension Methods

MinecraftPacketTransformationsExtensions.RegisterTransformations<T>(IMinecraftPacketTransformationsRegistry, ProtocolVersion, params IEnumerable<MinecraftPacketTransformationMapping>)

Properties

IsEmpty

bool IsEmpty { get; }

Property Value

bool

PacketTypes

IEnumerable<Type> PacketTypes { get; }

Property Value

IEnumerable<Type>

Methods

Add(IReadOnlyDictionary<IEnumerable<MinecraftPacketTransformationMapping>, Type>, ProtocolVersion)

IMinecraftPacketTransformationsRegistry Add(IReadOnlyDictionary<IEnumerable<MinecraftPacketTransformationMapping>, Type> mappings, ProtocolVersion protocolVersion)

Parameters

mappings IReadOnlyDictionary<IEnumerable<MinecraftPacketTransformationMapping>, Type>

protocolVersion ProtocolVersion

Returns

IMinecraftPacketTransformationsRegistry

Clear()

void Clear()

Clear(Direction)

void Clear(Direction direction)

Parameters

direction Direction

Contains<T>(TransformationType)

bool Contains<T>(TransformationType type) where T : IMinecraftPacket

Parameters

type TransformationType

Returns

bool

Type Parameters

T

Contains(IMinecraftMessage, TransformationType)

bool Contains(IMinecraftMessage message, TransformationType type)

Parameters

message IMinecraftMessage

type TransformationType

Returns

bool

Contains(Type, TransformationType)

bool Contains(Type packetType, TransformationType transformationType)

Parameters

packetType Type

transformationType TransformationType

Returns

bool

Replace(IReadOnlyDictionary<IEnumerable<MinecraftPacketTransformationMapping>, Type>, ProtocolVersion)

IMinecraftPacketTransformationsRegistry Replace(IReadOnlyDictionary<IEnumerable<MinecraftPacketTransformationMapping>, Type> mappings, ProtocolVersion protocolVersion)

Parameters

mappings IReadOnlyDictionary<IEnumerable<MinecraftPacketTransformationMapping>, Type>

protocolVersion ProtocolVersion

Returns

IMinecraftPacketTransformationsRegistry

TryGetFor(Type, TransformationType, out MinecraftPacketTransformation[])

bool TryGetFor(Type packetType, TransformationType type, out MinecraftPacketTransformation[] transformation)

Parameters

packetType Type

type TransformationType

transformation MinecraftPacketTransformation[]

Returns

bool