/* * Decompiled with CFR 0.152. */ package net.minecraft.world.item.enchantment; import net.minecraft.core.Holder; import net.minecraft.world.item.enchantment.Enchantment; public record EnchantmentInstance(Holder enchantment, int level) { public int weight() { return this.enchantment().value().getWeight(); } }