Interface IMinecraftPacketIdRegistry
Namespace: Void.Minecraft.Network.Registries.PacketId
Assembly: Void.Minecraft.dll
public interface IMinecraftPacketIdRegistryExtension Methods
Properties
IsEmpty
bool IsEmpty { get; }Property Value
PacketTypes
IEnumerable<Type> PacketTypes { get; }Property Value
Methods
AddPackets(IReadOnlyDictionary<MinecraftPacketIdMapping[], Type>, ProtocolVersion)
IMinecraftPacketIdRegistry AddPackets(IReadOnlyDictionary<MinecraftPacketIdMapping[], Type> mappings, ProtocolVersion protocolVersion)Parameters
mappings IReadOnlyDictionary<MinecraftPacketIdMapping[], Type>
protocolVersion ProtocolVersion
Returns
Clear()
void Clear()Clear(Direction)
void Clear(Direction direction)Parameters
direction Direction
Contains<T>()
bool Contains<T>() where T : IMinecraftPacketReturns
Type Parameters
T
Contains(INetworkMessage)
bool Contains(INetworkMessage message)Parameters
message INetworkMessage
Returns
Contains(Type)
bool Contains(Type type)Parameters
type Type
Returns
ReplacePackets(IReadOnlyDictionary<MinecraftPacketIdMapping[], Type>, ProtocolVersion)
IMinecraftPacketIdRegistry ReplacePackets(IReadOnlyDictionary<MinecraftPacketIdMapping[], Type> mappings, ProtocolVersion protocolVersion)Parameters
mappings IReadOnlyDictionary<MinecraftPacketIdMapping[], Type>
protocolVersion ProtocolVersion
Returns
TryCreateDecoder(int, out MinecraftPacketDecoder<IMinecraftPacket>)
bool TryCreateDecoder(int id, out MinecraftPacketDecoder<IMinecraftPacket> packet)Parameters
id int
packet MinecraftPacketDecoder<IMinecraftPacket>
Returns
TryCreateDecoder(int, out Type, out MinecraftPacketDecoder<IMinecraftPacket>)
bool TryCreateDecoder(int id, out Type packetType, out MinecraftPacketDecoder<IMinecraftPacket> packet)Parameters
id int
packetType Type
packet MinecraftPacketDecoder<IMinecraftPacket>
Returns
TryGetPacketId(IMinecraftPacket, out int)
bool TryGetPacketId(IMinecraftPacket packet, out int id)Parameters
packet IMinecraftPacket
id int
Returns
TryGetType(int, out Type)
bool TryGetType(int id, out Type packetType)Parameters
id int
packetType Type