Package org.geysermc.geyser.registry
Class PacketTranslatorRegistry<T>
java.lang.Object
org.geysermc.geyser.registry.Registry<M>
org.geysermc.geyser.registry.AbstractMappedRegistry<Class<? extends T>,PacketTranslator<? extends T>,IdentityHashMap<Class<? extends T>,PacketTranslator<? extends T>>>
org.geysermc.geyser.registry.PacketTranslatorRegistry<T>
public class PacketTranslatorRegistry<T>
extends AbstractMappedRegistry<Class<? extends T>,PacketTranslator<? extends T>,IdentityHashMap<Class<? extends T>,PacketTranslator<? extends T>>>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> PacketTranslatorRegistry<T>
create()
<P extends T>
booleantranslate(Class<? extends P> clazz, P packet, GeyserSession session)
Methods inherited from class org.geysermc.geyser.registry.AbstractMappedRegistry
get, getOrDefault, map, register
-
Constructor Details
-
PacketTranslatorRegistry
protected PacketTranslatorRegistry()
-
-
Method Details
-
translate
-
create
-