Skip to content

Commit 8a4bb5e

Browse files
committed
Deprecate the "Examinable-ness" of AsyncTabCompleteEvent.Completion
1 parent ac7b24c commit 8a4bb5e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

paper-api/src/main/java/com/destroystokyo/paper/event/server/AsyncTabCompleteEvent.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ private static List<Completion> fromStrings(final List<String> suggestions) {
240240

241241
/**
242242
* A rich tab completion, consisting of a string suggestion, and a nullable {@link Component} tooltip.
243+
*
244+
* <p><b>Warning:</b> In a future update, this class will no longer implement Examinable.</p>
243245
*/
244246
public interface Completion extends Examinable {
245247

@@ -258,6 +260,7 @@ public interface Completion extends Examinable {
258260
@Nullable Component tooltip();
259261

260262
@Override
263+
@Deprecated(forRemoval = true, since = "1.21.10")
261264
default Stream<? extends ExaminableProperty> examinableProperties() {
262265
return Stream.of(ExaminableProperty.of("suggestion", this.suggestion()), ExaminableProperty.of("tooltip", this.tooltip()));
263266
}

0 commit comments

Comments
 (0)