public class Protocol1_16_2To1_16_1 extends Protocol<ClientboundPackets1_16,ClientboundPackets1_16_2,ServerboundPackets1_16,ServerboundPackets1_16_2>
Protocol.Packet, Protocol.ProtocolPacket| Modifier and Type | Field and Description | 
|---|---|
static MappingData | 
MAPPINGS  | 
newClientboundPacketEnum, newServerboundPacketEnum, oldClientboundPacketEnum, oldServerboundPacketEnum| Constructor and Description | 
|---|
Protocol1_16_2To1_16_1()  | 
| Modifier and Type | Method and Description | 
|---|---|
MappingData | 
getMappingData()  | 
void | 
init(UserConnection userConnection)
Initialise a user for this protocol setting up objects. 
 | 
protected void | 
onMappingDataLoaded()
Called after  
Protocol.loadMappingData() is called; load extra mapping data for the protocol. | 
protected void | 
registerPackets()
Register the packets for this protocol. 
 | 
cancelIncoming, cancelIncoming, cancelIncoming, cancelOutgoing, cancelOutgoing, cancelOutgoing, filterPacket, get, hasMappingDataToLoad, hasRegisteredIncoming, hasRegisteredOutgoing, isFiltered, loadMappingData, put, register, registerIncoming, registerIncoming, registerIncoming, registerIncoming, registerIncoming, registerIncomingChannelIdChanges, registerOutgoing, registerOutgoing, registerOutgoing, registerOutgoing, registerOutgoing, registerOutgoing, registerOutgoingChannelIdChanges, toString, transformpublic static final MappingData MAPPINGS
protected void registerPackets()
Protocolprotected void onMappingDataLoaded()
ProtocolProtocol.loadMappingData() is called; load extra mapping data for the protocol.
 To be overridden if needed.
public void init(UserConnection userConnection)
ProtocolUserConnection
 To be overridden if needed.
init in class Protocol<ClientboundPackets1_16,ClientboundPackets1_16_2,ServerboundPackets1_16,ServerboundPackets1_16_2>userConnection - The user to initialisepublic MappingData getMappingData()
Copyright © 2016–2021. All rights reserved.