Interface GsonComponentSerializer.Builder
- 
- All Superinterfaces:
- AbstractBuilder<GsonComponentSerializer>,- Buildable.Builder<GsonComponentSerializer>,- JSONComponentSerializer.Builder
 - Enclosing interface:
- GsonComponentSerializer
 
 public static interface GsonComponentSerializer.Builder extends AbstractBuilder<GsonComponentSerializer>, Buildable.Builder<GsonComponentSerializer>, JSONComponentSerializer.Builder A builder forGsonComponentSerializer.- Since:
- 4.0.0
 
- 
- 
Method Summary
 
- 
- 
- 
Method Detail- 
options@NotNull @NotNull GsonComponentSerializer.Builder options(@NotNull @NotNull net.kyori.option.OptionState flags) - Specified by:
- optionsin interface- JSONComponentSerializer.Builder
 
 - 
editOptions@NotNull @NotNull GsonComponentSerializer.Builder editOptions(@NotNull @NotNull java.util.function.Consumer<net.kyori.option.OptionState.Builder> optionEditor) - Specified by:
- editOptionsin interface- JSONComponentSerializer.Builder
 
 - 
downsampleColors@NotNull default @NotNull GsonComponentSerializer.Builder downsampleColors() Sets that the serializer should downsample hex colors to named colors.- Specified by:
- downsampleColorsin interface- JSONComponentSerializer.Builder
- Returns:
- this builder
- Since:
- 4.0.0
 
 - 
legacyHoverEventSerializer@Deprecated @NotNull default @NotNull GsonComponentSerializer.Builder legacyHoverEventSerializer(@Nullable @Nullable LegacyHoverEventSerializer serializer) Deprecated.for removal since 4.14.0, uselegacyHoverEventSerializer(net.kyori.adventure.text.serializer.json.LegacyHoverEventSerializer)insteadSets a serializer that will be used to interpret legacy hover eventvaluepayloads. If the serializer isnull, then onlyHoverEvent.Action.SHOW_TEXTlegacy hover events can be deserialized.- Parameters:
- serializer- serializer
- Returns:
- this builder
- Since:
- 4.0.0
 
 - 
legacyHoverEventSerializer@NotNull @NotNull GsonComponentSerializer.Builder legacyHoverEventSerializer(@Nullable LegacyHoverEventSerializer serializer) - Specified by:
- legacyHoverEventSerializerin interface- JSONComponentSerializer.Builder
 
 - 
emitLegacyHoverEvent@Deprecated @NotNull default @NotNull GsonComponentSerializer.Builder emitLegacyHoverEvent() Deprecated.- Specified by:
- emitLegacyHoverEventin interface- JSONComponentSerializer.Builder
- Since:
- 4.0.0
 
 - 
build@NotNull @NotNull GsonComponentSerializer build() Builds the serializer.- Specified by:
- buildin interface- AbstractBuilder<GsonComponentSerializer>
- Specified by:
- buildin interface- Buildable.Builder<GsonComponentSerializer>
- Specified by:
- buildin interface- JSONComponentSerializer.Builder
- Returns:
- the built serializer
 
 
- 
 
-