15 lines
346 B
Java
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();
|
|
}
|
|
}
|
|
|