EffectiveMinecraftUtils

Misc Minecraft helpers.

Functions

Link copied to clipboard
fun getNamespace(instance: JavaPlugin): String

The plugin's asset namespace: its name lowercased with any character outside [a-z0-9._-] replaced by _. Used for the generated resource pack's asset paths and item-model ids, so it is safe to use in a org.bukkit.NamespacedKey / item_model reference (e.g. to auto-attach an item model to a stack).

Link copied to clipboard
fun getSoundKey(sound: Sound): String

The sound event key of sound as a namespaced string, e.g. "minecraft:block.wood.place".

Link copied to clipboard
fun sendMessageToActionBar(player: Player, message: Component)