public static final class AbstractProtocol.ProtocolPacket
extends java.lang.Object
Constructor and Description |
---|
ProtocolPacket(State state,
int oldId,
int newId,
@Nullable PacketRemapper remapper)
Deprecated.
|
ProtocolPacket(State state,
PacketType unmappedPacketType,
@Nullable PacketType mappedPacketType,
@Nullable PacketRemapper remapper) |
Modifier and Type | Method and Description |
---|---|
@Nullable PacketType |
getMappedPacketType()
Returns the mapped packet type, or null if mapped over ids or mapped to no packet type.
|
int |
getNewId()
Deprecated.
|
int |
getOldId()
Deprecated.
|
@Nullable PacketRemapper |
getRemapper() |
State |
getState() |
@Nullable PacketType |
getUnmappedPacketType()
Returns the unmapped packet type, or null if mapped over ids.
|
boolean |
isMappedOverTypes() |
@Deprecated public ProtocolPacket(State state, int oldId, int newId, @Nullable PacketRemapper remapper)
public ProtocolPacket(State state, PacketType unmappedPacketType, @Nullable PacketType mappedPacketType, @Nullable PacketRemapper remapper)
public State getState()
@Deprecated public int getOldId()
@Deprecated public int getNewId()
public @Nullable PacketType getUnmappedPacketType()
getOldId()
(think of unmapped vs. old in 1.17→1.16).public @Nullable PacketType getMappedPacketType()
getNewId()
(think of mapped vs. new in 1.17→1.16).public boolean isMappedOverTypes()
public @Nullable PacketRemapper getRemapper()