Enchantment.id

Gets the enchantment's id. SEL currently uses Minecraft's id to uniquely identify an enchantment.

class Enchantment
pure nothrow @property @safe @nogc
ubyte
id
()

Examples

auto e = Enchantment.fromString("sharpness", 5);
assert(e.id == e.minecraft.id);

Meta