public class Registry<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
static Registry<com.github.steveice10.packetlib.packet.Packet> |
JAVA |
| Constructor and Description |
|---|
Registry() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends com.github.steveice10.packetlib.packet.Packet> |
add(Class<T> clazz,
BiConsumer<T,GeyserSession> translator) |
<P extends T> |
translate(Class<P> clazz,
P p,
GeyserSession s) |
public static final Registry<com.github.steveice10.packetlib.packet.Packet> JAVA
public static <T extends com.github.steveice10.packetlib.packet.Packet> void add(Class<T> clazz, BiConsumer<T,GeyserSession> translator)
public <P extends T> void translate(Class<P> clazz, P p, GeyserSession s)
Copyright © 2019 GeyserMC. All rights reserved.