Enchantment.fromBedrock

Creates an enchantment using its Minecraft's id.

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

Examples

assert(Enchantment.fromBedrock(9, 2).name == "sharpness");

Meta