Compare commits

...

3 Commits

Author SHA1 Message Date
Auxilor
6658824f9a Updated to 6.73.1 2024-07-24 15:24:59 +01:00
Auxilor
956d4fa10c Enchantment arg parser is now case insensitive 2024-07-24 15:24:49 +01:00
Auxilor
6a7a825376 Added extra apis to VanillaItemTag 2024-07-21 12:57:55 +01:00
4 changed files with 20 additions and 2 deletions

View File

@@ -639,6 +639,15 @@ public final class Items {
TAGS.put(tag.getIdentifier(), tag);
}
/**
* Get all tags.
*
* @return All tags.
*/
public static Collection<ItemTag> getTags() {
return TAGS.values();
}
private Items() {
throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
}

View File

@@ -31,6 +31,15 @@ public final class VanillaItemTag implements ItemTag {
this.tag = tag;
}
/**
* Get the tag.
*
* @return The tag.
*/
public Tag<Material> getTag() {
return tag;
}
@Override
@NotNull
public String getIdentifier() {

View File

@@ -16,7 +16,7 @@ object ArgParserEnchantment : LookupArgParser {
for (arg in args) {
val argSplit = arg.split(":")
val enchant = Enchantment.getByKey(NamespacedKey.minecraft(argSplit[0])) ?: continue
val enchant = Enchantment.getByKey(NamespacedKey.minecraft(argSplit[0].lowercase())) ?: continue
val level = argSplit.getOrNull(1)?.toIntOrNull() ?: enchant.maxLevel
enchants[enchant] = level

View File

@@ -1,2 +1,2 @@
version = 6.73.0
version = 6.73.1
kotlin.incremental.useClasspathSnapshot=false