|
201 | 201 | /** |
202 | 202 | * NMS implementation for Minecraft 1.21.2 |
203 | 203 | */ |
204 | | -@NMSMeta(compatibleWith = { "1.21", "1.21.1" }) |
| 204 | +@NMSMeta(compatibleWith = { "1.21.2" }) |
205 | 205 | @RequireField(in = SimpleHelpMap.class, name = "helpTopics", ofType = Map.class) |
206 | 206 | @RequireField(in = EntitySelector.class, name = "usesSelector", ofType = boolean.class) |
207 | 207 | // @RequireField(in = ItemInput.class, name = "tag", ofType = CompoundTag.class) |
@@ -307,7 +307,7 @@ public final Map<String, HelpTopic> getHelpMap() { |
307 | 307 |
|
308 | 308 | @Override |
309 | 309 | public String[] compatibleVersions() { |
310 | | - return new String[] { "1.21", "1.21.1" }; |
| 310 | + return new String[] { "1.21.2" }; |
311 | 311 | }; |
312 | 312 |
|
313 | 313 | @Differs(from = "1.20.6", by = "ItemInput constructor uses a data components patch, instead of a data components map") |
@@ -404,6 +404,7 @@ public final HelpTopic generateHelpTopic(String commandName, String shortDescrip |
404 | 404 | return new CustomHelpTopic(commandName, shortDescription, fullDescription, permission); |
405 | 405 | } |
406 | 406 |
|
| 407 | + @Differs(from = "1.21.1", by = "Uses ResourceKeyArgument instead of ResourceLocationArgument") |
407 | 408 | @Override |
408 | 409 | public Advancement getAdvancement(CommandContext<CommandSourceStack> cmdCtx, String key) |
409 | 410 | throws CommandSyntaxException { |
@@ -764,6 +765,7 @@ public Object getPotionEffect(CommandContext<CommandSourceStack> cmdCtx, String |
764 | 765 | }; |
765 | 766 | } |
766 | 767 |
|
| 768 | + @Differs(from = "1.21.1", by = "Uses ResourceKeyArgument instead of ResourceLocationArgument") |
767 | 769 | @Override |
768 | 770 | public final Recipe getRecipe(CommandContext<CommandSourceStack> cmdCtx, String key) throws CommandSyntaxException { |
769 | 771 | RecipeHolder<?> recipe = ResourceKeyArgument.getRecipe(cmdCtx, key); |
|
0 commit comments