Class GsonDataComponentValueConverterProvider
java.lang.Object
net.kyori.adventure.text.serializer.gson.impl.GsonDataComponentValueConverterProvider
- All Implemented Interfaces:
DataComponentValueConverterRegistry.Provider
@AutoService(DataComponentValueConverterRegistry.Provider.class)
@Internal
public final class GsonDataComponentValueConverterProvider
extends Object
implements DataComponentValueConverterRegistry.Provider
A provider for Gson's implementations of data component value converters.
This is public SPI, not API.
- Since:
- 4.17.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn conversions available from this provider.id()An identifier for this provider.
-
Constructor Details
-
GsonDataComponentValueConverterProvider
public GsonDataComponentValueConverterProvider()
-
-
Method Details
-
id
Description copied from interface:DataComponentValueConverterRegistry.ProviderAn identifier for this provider.- Specified by:
idin interfaceDataComponentValueConverterRegistry.Provider- Returns:
- the provider id
-
conversions
Description copied from interface:DataComponentValueConverterRegistry.ProviderReturn conversions available from this provider.Conversions may only be queried once at application initialization, so changes to the result of this method may not have any effect.
- Specified by:
conversionsin interfaceDataComponentValueConverterRegistry.Provider- Returns:
- the conversions available
-