public class Registry<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
static Registry<com.nukkitx.protocol.bedrock.BedrockPacket> |
BEDROCK |
static Registry<com.github.steveice10.packetlib.packet.Packet> |
JAVA |
| Constructor and Description |
|---|
Registry() |
| Modifier and Type | Method and Description |
|---|---|
static void |
registerBedrock(Class<? extends com.nukkitx.protocol.bedrock.BedrockPacket> targetPacket,
PacketTranslator<? extends com.nukkitx.protocol.bedrock.BedrockPacket> translator) |
static void |
registerJava(Class<? extends com.github.steveice10.packetlib.packet.Packet> targetPacket,
PacketTranslator<? extends com.github.steveice10.packetlib.packet.Packet> translator) |
<P extends T> |
translate(Class<? extends P> clazz,
P packet,
GeyserSession session) |
public static final Registry<com.github.steveice10.packetlib.packet.Packet> JAVA
public static final Registry<com.nukkitx.protocol.bedrock.BedrockPacket> BEDROCK
public static void registerJava(Class<? extends com.github.steveice10.packetlib.packet.Packet> targetPacket, PacketTranslator<? extends com.github.steveice10.packetlib.packet.Packet> translator)
public static void registerBedrock(Class<? extends com.nukkitx.protocol.bedrock.BedrockPacket> targetPacket, PacketTranslator<? extends com.nukkitx.protocol.bedrock.BedrockPacket> translator)
public <P extends T> boolean translate(Class<? extends P> clazz, P packet, GeyserSession session)
Copyright © 2020 GeyserMC. All rights reserved.