Skip to content

Commit 461ff87

Browse files
committed
Update compatible versions and add some annotations
1 parent 6828682 commit 461ff87

File tree

1 file changed

+4
-2
lines changed
  • commandapi-platforms/commandapi-bukkit/commandapi-bukkit-nms/commandapi-bukkit-1.21.2/src/main/java/dev/jorel/commandapi/nms

1 file changed

+4
-2
lines changed

commandapi-platforms/commandapi-bukkit/commandapi-bukkit-nms/commandapi-bukkit-1.21.2/src/main/java/dev/jorel/commandapi/nms/NMS_1_21_R2.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
/**
202202
* NMS implementation for Minecraft 1.21.2
203203
*/
204-
@NMSMeta(compatibleWith = { "1.21", "1.21.1" })
204+
@NMSMeta(compatibleWith = { "1.21.2" })
205205
@RequireField(in = SimpleHelpMap.class, name = "helpTopics", ofType = Map.class)
206206
@RequireField(in = EntitySelector.class, name = "usesSelector", ofType = boolean.class)
207207
// @RequireField(in = ItemInput.class, name = "tag", ofType = CompoundTag.class)
@@ -307,7 +307,7 @@ public final Map<String, HelpTopic> getHelpMap() {
307307

308308
@Override
309309
public String[] compatibleVersions() {
310-
return new String[] { "1.21", "1.21.1" };
310+
return new String[] { "1.21.2" };
311311
};
312312

313313
@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
404404
return new CustomHelpTopic(commandName, shortDescription, fullDescription, permission);
405405
}
406406

407+
@Differs(from = "1.21.1", by = "Uses ResourceKeyArgument instead of ResourceLocationArgument")
407408
@Override
408409
public Advancement getAdvancement(CommandContext<CommandSourceStack> cmdCtx, String key)
409410
throws CommandSyntaxException {
@@ -764,6 +765,7 @@ public Object getPotionEffect(CommandContext<CommandSourceStack> cmdCtx, String
764765
};
765766
}
766767

768+
@Differs(from = "1.21.1", by = "Uses ResourceKeyArgument instead of ResourceLocationArgument")
767769
@Override
768770
public final Recipe getRecipe(CommandContext<CommandSourceStack> cmdCtx, String key) throws CommandSyntaxException {
769771
RecipeHolder<?> recipe = ResourceKeyArgument.getRecipe(cmdCtx, key);

0 commit comments

Comments
 (0)