mirror of
https://github.com/YouHaveTrouble/Enchantio.git
synced 2026-05-11 21:56:55 +00:00
30 lines
988 B
Java
30 lines
988 B
Java
package me.youhavetrouble.enchantio.enchants;
|
|
|
|
import io.papermc.paper.registry.data.EnchantmentRegistryEntry;
|
|
import io.papermc.paper.registry.keys.tags.ItemTypeTagKeys;
|
|
import net.kyori.adventure.key.Key;
|
|
import net.kyori.adventure.text.Component;
|
|
import org.bukkit.inventory.EquipmentSlotGroup;
|
|
import java.util.Set;
|
|
|
|
public class SoulboundEnchant extends EnchantioEnchant {
|
|
|
|
public static final Key KEY = Key.key("enchantio:soulbound");
|
|
|
|
public SoulboundEnchant() {
|
|
super(
|
|
KEY,
|
|
Component.translatable("enchantio.enchant.soulbound","Soulbound"),
|
|
1,
|
|
1,
|
|
10,
|
|
EnchantmentRegistryEntry.EnchantmentCost.of(1, 1),
|
|
EnchantmentRegistryEntry.EnchantmentCost.of(3, 1),
|
|
ItemTypeTagKeys.ENCHANTABLE_ARMOR,
|
|
ItemTypeTagKeys.ENCHANTABLE_ARMOR,
|
|
Set.of(EquipmentSlotGroup.ANY)
|
|
);
|
|
registerEnchant(this);
|
|
}
|
|
}
|