| Package | Description |
|---|---|
| us.myles.ViaVersion.api.protocol |
| Modifier and Type | Method and Description |
|---|---|
@Nullable PacketRemapper |
Protocol.ProtocolPacket.getRemapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
Protocol.registerIncoming(S2 packetType,
@Nullable PacketRemapper packetRemapper)
Registers an incoming protocol and automatically maps it to the server's id.
|
void |
Protocol.registerIncoming(S2 packetType,
S1 mappedPacketType,
@Nullable PacketRemapper packetRemapper)
Registers an incoming protocol.
|
void |
Protocol.registerIncoming(State state,
int oldPacketID,
int newPacketID,
PacketRemapper packetRemapper)
Register an incoming packet, with id transformation and remapper.
|
void |
Protocol.registerIncoming(State state,
int oldPacketID,
int newPacketID,
PacketRemapper packetRemapper,
boolean override) |
void |
Protocol.registerOutgoing(C1 packetType,
C2 mappedPacketType,
@Nullable PacketRemapper packetRemapper)
Registers an outgoing protocol.
|
void |
Protocol.registerOutgoing(C1 packetType,
@Nullable PacketRemapper packetRemapper)
Registers an outgoing protocol and automatically maps it to the new id.
|
void |
Protocol.registerOutgoing(State state,
int oldPacketID,
int newPacketID,
PacketRemapper packetRemapper)
Register an outgoing packet, with id transformation and remapper.
|
void |
Protocol.registerOutgoing(State state,
int oldPacketID,
int newPacketID,
PacketRemapper packetRemapper,
boolean override) |
| Constructor and Description |
|---|
ProtocolPacket(State state,
int oldID,
int newID,
@Nullable PacketRemapper remapper) |
Copyright © 2016–2021. All rights reserved.