2025-11-24 22:52:51 +03:00

15 lines
346 B
Java

/*
* 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> enchantment, int level) {
public int weight() {
return this.enchantment().value().getWeight();
}
}