Compare commits

...

5 Commits

Author SHA1 Message Date
Auxilor
c89edd05f5 Updated to 6.73.2 2024-07-29 18:46:53 +01:00
Auxilor
ce2a53e689 Fixed FancyHolograms integration 2024-07-29 18:46:47 +01:00
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
5 changed files with 23 additions and 4 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

@@ -9,7 +9,8 @@ import java.util.UUID
import kotlin.jvm.optionals.getOrNull
class HologramFancyHolograms : HologramIntegration {
private val manager = FancyHologramsPlugin.get().hologramManager
private val manager
get() = FancyHologramsPlugin.get().hologramManager
override fun createHologram(location: Location, contents: List<String>): Hologram {
val id = UUID.randomUUID().toString()
@@ -19,7 +20,7 @@ class HologramFancyHolograms : HologramIntegration {
data.isPersistent = false
val holo = manager.create(data)
FancyHologramsPlugin.get().hologramManager.addHologram(holo)
manager.addHologram(holo)
return HologramImplFancyHolograms(id)
}

View File

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