Enchantment.fromJava

Creates an enchantment using its Minecraft: Java Edition's id.

class Enchantment
static @safe
fromJava
(
ubyte id
,
ubyte level
)

Examples

assert(Enchantment.fromJava(9, 1).name == "frost walker");

Meta