Skip to content

Commit f070081

Browse files
Remove Experimental from TypedKey (#12134)
1 parent b386a8f commit f070081

29 files changed

+43
-74
lines changed

paper-api-generator/src/main/java/io/papermc/generator/types/GeneratedKeyType.java

-3
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ private MethodSpec.Builder createMethod(final TypeName returnType) {
101101
.addCode("return $T.create($T.$L, $N);", TypedKey.class, RegistryKey.class, requireNonNull(REGISTRY_KEY_FIELD_NAMES.get(this.apiRegistryKey), "Missing field for " + this.apiRegistryKey), keyParam)
102102
.returns(returnType);
103103
if (this.publicCreateKeyMethod) {
104-
create.addAnnotation(EXPERIMENTAL_API_ANNOTATION); // TODO remove once not experimental
105104
create.addJavadoc(CREATE_JAVADOC, this.apiType, this.registryKey.location().toString());
106105
}
107106
return create;
@@ -157,8 +156,6 @@ protected TypeSpec getTypeSpec() {
157156
if (allExperimental) {
158157
typeBuilder.addAnnotations(experimentalAnnotations(null)); // Update for Experimental API
159158
createMethod.addAnnotations(experimentalAnnotations(null)); // Update for Experimental API
160-
} else {
161-
typeBuilder.addAnnotation(EXPERIMENTAL_API_ANNOTATION); // TODO experimental API
162159
}
163160
return typeBuilder.addMethod(createMethod.build()).build();
164161
}

paper-api/src/generated/java/io/papermc/paper/registry/keys/AttributeKeys.java

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.attribute.Attribute;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class AttributeKeys {
3028
/**
3129
* {@code minecraft:armor}

paper-api/src/generated/java/io/papermc/paper/registry/keys/BannerPatternKeys.java

-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.block.banner.PatternType;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class BannerPatternKeys {
3028
/**
3129
* {@code minecraft:base}
@@ -337,7 +335,6 @@ private BannerPatternKeys() {
337335
* @param key the value's key in the registry
338336
* @return a new typed key
339337
*/
340-
@ApiStatus.Experimental
341338
public static TypedKey<PatternType> create(final Key key) {
342339
return TypedKey.create(RegistryKey.BANNER_PATTERN, key);
343340
}

paper-api/src/generated/java/io/papermc/paper/registry/keys/BiomeKeys.java

-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.block.Biome;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class BiomeKeys {
3028
/**
3129
* {@code minecraft:badlands}
@@ -491,7 +489,6 @@ private BiomeKeys() {
491489
* @param key the value's key in the registry
492490
* @return a new typed key
493491
*/
494-
@ApiStatus.Experimental
495492
public static TypedKey<Biome> create(final Key key) {
496493
return TypedKey.create(RegistryKey.BIOME, key);
497494
}

paper-api/src/generated/java/io/papermc/paper/registry/keys/BlockTypeKeys.java

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.block.BlockType;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class BlockTypeKeys {
3028
/**
3129
* {@code minecraft:acacia_button}

paper-api/src/generated/java/io/papermc/paper/registry/keys/CatVariantKeys.java

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.entity.Cat;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class CatVariantKeys {
3028
/**
3129
* {@code minecraft:all_black}

paper-api/src/generated/java/io/papermc/paper/registry/keys/DamageTypeKeys.java

-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.damage.DamageType;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class DamageTypeKeys {
3028
/**
3129
* {@code minecraft:arrow}
@@ -379,7 +377,6 @@ private DamageTypeKeys() {
379377
* @param key the value's key in the registry
380378
* @return a new typed key
381379
*/
382-
@ApiStatus.Experimental
383380
public static TypedKey<DamageType> create(final Key key) {
384381
return TypedKey.create(RegistryKey.DAMAGE_TYPE, key);
385382
}

paper-api/src/generated/java/io/papermc/paper/registry/keys/EnchantmentKeys.java

-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.enchantments.Enchantment;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class EnchantmentKeys {
3028
/**
3129
* {@code minecraft:aqua_affinity}
@@ -330,7 +328,6 @@ private EnchantmentKeys() {
330328
* @param key the value's key in the registry
331329
* @return a new typed key
332330
*/
333-
@ApiStatus.Experimental
334331
public static TypedKey<Enchantment> create(final Key key) {
335332
return TypedKey.create(RegistryKey.ENCHANTMENT, key);
336333
}

paper-api/src/generated/java/io/papermc/paper/registry/keys/FluidKeys.java

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.Fluid;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class FluidKeys {
3028
/**
3129
* {@code minecraft:empty}

paper-api/src/generated/java/io/papermc/paper/registry/keys/FrogVariantKeys.java

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.entity.Frog;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class FrogVariantKeys {
3028
/**
3129
* {@code minecraft:cold}

paper-api/src/generated/java/io/papermc/paper/registry/keys/GameEventKeys.java

-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.GameEvent;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class GameEventKeys {
3028
/**
3129
* {@code minecraft:block_activate}
@@ -456,7 +454,6 @@ private GameEventKeys() {
456454
* @param key the value's key in the registry
457455
* @return a new typed key
458456
*/
459-
@ApiStatus.Experimental
460457
public static TypedKey<GameEvent> create(final Key key) {
461458
return TypedKey.create(RegistryKey.GAME_EVENT, key);
462459
}

paper-api/src/generated/java/io/papermc/paper/registry/keys/InstrumentKeys.java

-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.MusicInstrument;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class InstrumentKeys {
3028
/**
3129
* {@code minecraft:admire_goat_horn}
@@ -92,7 +90,6 @@ private InstrumentKeys() {
9290
* @param key the value's key in the registry
9391
* @return a new typed key
9492
*/
95-
@ApiStatus.Experimental
9693
public static TypedKey<MusicInstrument> create(final Key key) {
9794
return TypedKey.create(RegistryKey.INSTRUMENT, key);
9895
}

paper-api/src/generated/java/io/papermc/paper/registry/keys/ItemTypeKeys.java

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.inventory.ItemType;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class ItemTypeKeys {
3028
/**
3129
* {@code minecraft:acacia_boat}

paper-api/src/generated/java/io/papermc/paper/registry/keys/JukeboxSongKeys.java

-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.JukeboxSong;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class JukeboxSongKeys {
3028
/**
3129
* {@code minecraft:11}
@@ -169,7 +167,6 @@ private JukeboxSongKeys() {
169167
* @param key the value's key in the registry
170168
* @return a new typed key
171169
*/
172-
@ApiStatus.Experimental
173170
public static TypedKey<JukeboxSong> create(final Key key) {
174171
return TypedKey.create(RegistryKey.JUKEBOX_SONG, key);
175172
}

paper-api/src/generated/java/io/papermc/paper/registry/keys/MapDecorationTypeKeys.java

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.map.MapCursor;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class MapDecorationTypeKeys {
3028
/**
3129
* {@code minecraft:banner_black}

paper-api/src/generated/java/io/papermc/paper/registry/keys/MenuTypeKeys.java

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.inventory.MenuType;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class MenuTypeKeys {
3028
/**
3129
* {@code minecraft:anvil}

paper-api/src/generated/java/io/papermc/paper/registry/keys/MobEffectKeys.java

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.potion.PotionEffectType;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class MobEffectKeys {
3028
/**
3129
* {@code minecraft:absorption}

paper-api/src/generated/java/io/papermc/paper/registry/keys/PaintingVariantKeys.java

-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.Art;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class PaintingVariantKeys {
3028
/**
3129
* {@code minecraft:alban}
@@ -386,7 +384,6 @@ private PaintingVariantKeys() {
386384
* @param key the value's key in the registry
387385
* @return a new typed key
388386
*/
389-
@ApiStatus.Experimental
390387
public static TypedKey<Art> create(final Key key) {
391388
return TypedKey.create(RegistryKey.PAINTING_VARIANT, key);
392389
}

paper-api/src/generated/java/io/papermc/paper/registry/keys/SoundEventKeys.java

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.Sound;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class SoundEventKeys {
3028
/**
3129
* {@code minecraft:ambient.basalt_deltas.additions}

paper-api/src/generated/java/io/papermc/paper/registry/keys/StructureKeys.java

-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.papermc.paper.registry.TypedKey;
88
import net.kyori.adventure.key.Key;
99
import org.bukkit.generator.structure.Structure;
10-
import org.jetbrains.annotations.ApiStatus;
1110
import org.jspecify.annotations.NullMarked;
1211

1312
/**
@@ -25,7 +24,6 @@
2524
})
2625
@GeneratedFrom("1.21.4")
2726
@NullMarked
28-
@ApiStatus.Experimental
2927
public final class StructureKeys {
3028
/**
3129
* {@code minecraft:ancient_city}
@@ -274,7 +272,6 @@ private StructureKeys() {
274272
* @param key the value's key in the registry
275273
* @return a new typed key
276274
*/
277-
@ApiStatus.Experimental
278275
public static TypedKey<Structure> create(final Key key) {
279276
return TypedKey.create(RegistryKey.STRUCTURE, key);
280277
}

0 commit comments

Comments
 (0)