Class TypeDecoderRegistry<D extends Decoder<?,?>>
java.lang.Object
de.craftsblock.craftsnet.api.codec.registry.TypeCodecRegistry<D,DecoderPair<?>>
de.craftsblock.craftsnet.api.codec.registry.TypeDecoderRegistry<D>
- Type Parameters:
D- the type of decoder being managed
public final class TypeDecoderRegistry<D extends Decoder<?,?>>
extends TypeCodecRegistry<D,DecoderPair<?>>
A concrete implementation of
TypeCodecRegistry for managing Decoder instances.
This registry binds decoders to their respective target types using DecoderPairs and
enables type-safe registration, lookup, and unregistration.
- Since:
- 3.5.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.craftsblock.craftsnet.api.codec.registry.TypeCodecRegistry
getAllKnownTypes, getCodec, getCodecPairs, getCodecs, hasCodec, isRegistered, register, unregister
-
Constructor Details
-
TypeDecoderRegistry
public TypeDecoderRegistry()Constructs a newTypeDecoderRegistryinstance.The constructor uses reflection to determine the generic type of the decoder pair class used in this registry.
-