Skip to content

Commit

Permalink
Update compatible versions and add some annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
DerEchtePilz committed Oct 22, 2024
1 parent 6828682 commit 461ff87
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
/**
* NMS implementation for Minecraft 1.21.2
*/
@NMSMeta(compatibleWith = { "1.21", "1.21.1" })
@NMSMeta(compatibleWith = { "1.21.2" })
@RequireField(in = SimpleHelpMap.class, name = "helpTopics", ofType = Map.class)
@RequireField(in = EntitySelector.class, name = "usesSelector", ofType = boolean.class)
// @RequireField(in = ItemInput.class, name = "tag", ofType = CompoundTag.class)
Expand Down Expand Up @@ -307,7 +307,7 @@ public final Map<String, HelpTopic> getHelpMap() {

@Override
public String[] compatibleVersions() {
return new String[] { "1.21", "1.21.1" };
return new String[] { "1.21.2" };
};

@Differs(from = "1.20.6", by = "ItemInput constructor uses a data components patch, instead of a data components map")
Expand Down Expand Up @@ -404,6 +404,7 @@ public final HelpTopic generateHelpTopic(String commandName, String shortDescrip
return new CustomHelpTopic(commandName, shortDescription, fullDescription, permission);
}

@Differs(from = "1.21.1", by = "Uses ResourceKeyArgument instead of ResourceLocationArgument")
@Override
public Advancement getAdvancement(CommandContext<CommandSourceStack> cmdCtx, String key)
throws CommandSyntaxException {
Expand Down Expand Up @@ -764,6 +765,7 @@ public Object getPotionEffect(CommandContext<CommandSourceStack> cmdCtx, String
};
}

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

0 comments on commit 461ff87

Please sign in to comment.