getByName

public static Enchantment getByName(String name)

Gets the Enchantment at the specified name

Return

Resulting Enchantment, or null if not found

Parameters

name

Name to fetch