diff options
author | Jason Penilla <[email protected]> | 2024-04-25 19:09:21 -0700 |
---|---|---|
committer | Jason Penilla <[email protected]> | 2024-04-25 19:09:21 -0700 |
commit | d2ef0622c92f55e3fe5567e1db2f8b847af25544 (patch) | |
tree | 2fea539a1e2b79aa0e8260b1846b533c9e04877a /paper-api-generator | |
parent | 31ad90b0181d25184e9e6cf1b0b2f4740386b1df (diff) | |
download | Paper-d2ef0622c92f55e3fe5567e1db2f8b847af25544.tar.gz Paper-d2ef0622c92f55e3fe5567e1db2f8b847af25544.zip |
generator fix
Diffstat (limited to 'paper-api-generator')
5 files changed, 9 insertions, 9 deletions
diff --git a/paper-api-generator/generated/io/papermc/paper/registry/keys/BiomeKeys.java b/paper-api-generator/generated/io/papermc/paper/registry/keys/BiomeKeys.java index 2d2d06e2a8..fc62be44d6 100644 --- a/paper-api-generator/generated/io/papermc/paper/registry/keys/BiomeKeys.java +++ b/paper-api-generator/generated/io/papermc/paper/registry/keys/BiomeKeys.java @@ -250,7 +250,7 @@ public final class BiomeKeys { * @apiNote This field is version-dependant and may be removed in future Minecraft versions */ @ApiStatus.Experimental - @MinecraftExperimental("update 1.21") + @MinecraftExperimental(MinecraftExperimental.Requires.UPDATE_1_21) public static final TypedKey<Biome> MANGROVE_SWAMP = create(key("mangrove_swamp")); /** @@ -406,7 +406,7 @@ public final class BiomeKeys { * @apiNote This field is version-dependant and may be removed in future Minecraft versions */ @ApiStatus.Experimental - @MinecraftExperimental("update 1.21") + @MinecraftExperimental(MinecraftExperimental.Requires.UPDATE_1_21) public static final TypedKey<Biome> SWAMP = create(key("swamp")); /** diff --git a/paper-api-generator/generated/io/papermc/paper/registry/keys/StructureKeys.java b/paper-api-generator/generated/io/papermc/paper/registry/keys/StructureKeys.java index 91ae4dc2ff..8b679c044e 100644 --- a/paper-api-generator/generated/io/papermc/paper/registry/keys/StructureKeys.java +++ b/paper-api-generator/generated/io/papermc/paper/registry/keys/StructureKeys.java @@ -229,7 +229,7 @@ public final class StructureKeys { * @apiNote This field is version-dependant and may be removed in future Minecraft versions */ @ApiStatus.Experimental - @MinecraftExperimental("update 1.21") + @MinecraftExperimental(MinecraftExperimental.Requires.UPDATE_1_21) public static final TypedKey<Structure> TRIAL_CHAMBERS = create(key("trial_chambers")); /** diff --git a/paper-api-generator/generated/io/papermc/paper/registry/keys/TrimPatternKeys.java b/paper-api-generator/generated/io/papermc/paper/registry/keys/TrimPatternKeys.java index 35c4acb498..72d23426af 100644 --- a/paper-api-generator/generated/io/papermc/paper/registry/keys/TrimPatternKeys.java +++ b/paper-api-generator/generated/io/papermc/paper/registry/keys/TrimPatternKeys.java @@ -33,7 +33,7 @@ public final class TrimPatternKeys { * @apiNote This field is version-dependant and may be removed in future Minecraft versions */ @ApiStatus.Experimental - @MinecraftExperimental("update 1.21") + @MinecraftExperimental(MinecraftExperimental.Requires.UPDATE_1_21) public static final TypedKey<TrimPattern> BOLT = create(key("bolt")); /** @@ -63,7 +63,7 @@ public final class TrimPatternKeys { * @apiNote This field is version-dependant and may be removed in future Minecraft versions */ @ApiStatus.Experimental - @MinecraftExperimental("update 1.21") + @MinecraftExperimental(MinecraftExperimental.Requires.UPDATE_1_21) public static final TypedKey<TrimPattern> FLOW = create(key("flow")); /** diff --git a/paper-api-generator/src/main/java/io/papermc/generator/types/GeneratedKeyType.java b/paper-api-generator/src/main/java/io/papermc/generator/types/GeneratedKeyType.java index 2c1a72d715..b5ad821c1c 100644 --- a/paper-api-generator/src/main/java/io/papermc/generator/types/GeneratedKeyType.java +++ b/paper-api-generator/src/main/java/io/papermc/generator/types/GeneratedKeyType.java @@ -130,15 +130,15 @@ public class GeneratedKeyType<T, A> extends SimpleGenerator { .initializer("$N(key($S))", createMethod.build(), keyPath) .addJavadoc(Javadocs.getVersionDependentField("{@code $L}"), key.location().toString()); if (experimental.contains(key)) { - fieldBuilder.addAnnotations(experimentalAnnotations("update 1.21")); + fieldBuilder.addAnnotations(experimentalAnnotations("MinecraftExperimental.Requires.UPDATE_1_21")); } else { allExperimental = false; } typeBuilder.addField(fieldBuilder.build()); } if (allExperimental) { - typeBuilder.addAnnotations(experimentalAnnotations("update 1.21")); - createMethod.addAnnotations(experimentalAnnotations("update 1.21")); + typeBuilder.addAnnotations(experimentalAnnotations("MinecraftExperimental.Requires.UPDATE_1_21")); + createMethod.addAnnotations(experimentalAnnotations("MinecraftExperimental.Requires.UPDATE_1_21")); } return typeBuilder.addMethod(createMethod.build()).build(); } diff --git a/paper-api-generator/src/main/java/io/papermc/generator/utils/Annotations.java b/paper-api-generator/src/main/java/io/papermc/generator/utils/Annotations.java index 0d897ecfb4..5c82a94e7a 100644 --- a/paper-api-generator/src/main/java/io/papermc/generator/utils/Annotations.java +++ b/paper-api-generator/src/main/java/io/papermc/generator/utils/Annotations.java @@ -16,7 +16,7 @@ public final class Annotations { return List.of( AnnotationSpec.builder(ApiStatus.Experimental.class).build(), AnnotationSpec.builder(MinecraftExperimental.class) - .addMember("value", "$S", version) + .addMember("value", "$L", version) .build() ); } |