diff --git a/api/src/main/java/net/kyori/adventure/text/Component.java b/api/src/main/java/net/kyori/adventure/text/Component.java index 3ad538dd5..ffff4edef 100644 --- a/api/src/main/java/net/kyori/adventure/text/Component.java +++ b/api/src/main/java/net/kyori/adventure/text/Component.java @@ -1270,7 +1270,7 @@ public interface Component extends ComponentBuilderApplicable, ComponentLike, Ex * @param contextType the context type * @param renderer the renderer * @return a virtual component - * @since 4.14.0 + * @since 4.16.0 */ @Contract(value = "_, _ -> new", pure = true) static @NotNull VirtualComponent virtual(final @NotNull Class contextType, final @NotNull VirtualComponentRenderer renderer) { @@ -1287,7 +1287,7 @@ public interface Component extends ComponentBuilderApplicable, ComponentLike, Ex * @param renderer the renderer * @param style the style * @return a virtual component - * @since 4.14.0 + * @since 4.16.0 */ @Contract(value = "_, _, _ -> new", pure = true) static @NotNull VirtualComponent virtual(final @NotNull Class contextType, final @NotNull VirtualComponentRenderer renderer, final @NotNull Style style) { @@ -1304,7 +1304,7 @@ public interface Component extends ComponentBuilderApplicable, ComponentLike, Ex * @param renderer the renderer * @param style the style elements * @return a virtual component - * @since 4.14.0 + * @since 4.16.0 */ @Contract(value = "_, _, _ -> new", pure = true) static @NotNull VirtualComponent virtual(final @NotNull Class contextType, final @NotNull VirtualComponentRenderer renderer, final @NotNull StyleBuilderApplicable... style) { @@ -1321,7 +1321,7 @@ public interface Component extends ComponentBuilderApplicable, ComponentLike, Ex * @param renderer the renderer * @param style the style elements * @return a virtual component - * @since 4.14.0 + * @since 4.16.0 */ @Contract(value = "_, _, _ -> new", pure = true) static @NotNull VirtualComponent virtual(final @NotNull Class contextType, final @NotNull VirtualComponentRenderer renderer, final @NotNull Iterable style) { diff --git a/api/src/main/java/net/kyori/adventure/text/VirtualComponent.java b/api/src/main/java/net/kyori/adventure/text/VirtualComponent.java index 3f52b67b7..9448c23f7 100644 --- a/api/src/main/java/net/kyori/adventure/text/VirtualComponent.java +++ b/api/src/main/java/net/kyori/adventure/text/VirtualComponent.java @@ -30,14 +30,14 @@ * *

This component type is transient, and not guaranteed to survive during any sort of transformations or serialization.

* - * @since 4.14.0 + * @since 4.16.0 */ public interface VirtualComponent extends TextComponent { /** * Gets the renderer context type. * * @return the renderer context type - * @since 4.14.0 + * @since 4.16.0 */ @NotNull Class contextType(); @@ -45,7 +45,7 @@ public interface VirtualComponent extends TextComponent { * Gets the renderer. * * @return the renderer - * @since 4.14.0 + * @since 4.16.0 */ @NotNull VirtualComponentRenderer renderer(); } diff --git a/api/src/main/java/net/kyori/adventure/text/VirtualComponentRenderer.java b/api/src/main/java/net/kyori/adventure/text/VirtualComponentRenderer.java index 2d0adb106..38651ede9 100644 --- a/api/src/main/java/net/kyori/adventure/text/VirtualComponentRenderer.java +++ b/api/src/main/java/net/kyori/adventure/text/VirtualComponentRenderer.java @@ -30,7 +30,7 @@ * A holder for a value. * * @param the context type - * @since 4.14.0 + * @since 4.16.0 */ public interface VirtualComponentRenderer { /** @@ -38,7 +38,7 @@ public interface VirtualComponentRenderer { * * @param context the context * @return the rendered value - * @since 4.14.0 + * @since 4.16.0 */ @UnknownNullability ComponentLike apply(final @NotNull C context); @@ -48,7 +48,7 @@ public interface VirtualComponentRenderer { *

By default, this will be an empty string.

* * @return the fallback string - * @since 4.14.0 + * @since 4.16.0 */ default @NotNull String fallbackString() { return "";