Enchantment Util
Functions
Link copied to clipboard
public final static Integer getEnchantmentLevel(ItemStack $self, RegistryKey<Enchantment> enchantment, DynamicRegistryManager registryManager)
Gets an enchantment level on an item
Link copied to clipboard
public final static Boolean isEnchantedWith(ItemStack $self, RegistryKey<Enchantment> enchantment, DynamicRegistryManager registryManager)
Checks is an item is enchanted with enchantment