2021-07-07 17:33:43 +02:00
|
|
|
package com.simibubi.create;
|
|
|
|
|
2021-07-08 00:03:58 +02:00
|
|
|
import com.simibubi.create.content.curiosities.armor.CapacityEnchantment;
|
2021-07-07 17:33:43 +02:00
|
|
|
import com.simibubi.create.content.curiosities.weapons.PotatoRecoveryEnchantment;
|
|
|
|
import com.simibubi.create.foundation.data.CreateRegistrate;
|
|
|
|
import com.tterrag.registrate.util.entry.RegistryEntry;
|
|
|
|
|
2021-11-02 00:08:20 +01:00
|
|
|
import net.minecraft.world.item.enchantment.Enchantment.Rarity;
|
|
|
|
import net.minecraft.world.item.enchantment.EnchantmentCategory;
|
|
|
|
import net.minecraft.world.entity.EquipmentSlot;
|
2021-07-07 17:33:43 +02:00
|
|
|
|
|
|
|
public class AllEnchantments {
|
|
|
|
|
|
|
|
private static final CreateRegistrate REGISTRATE = Create.registrate();
|
|
|
|
|
|
|
|
public static final RegistryEntry<PotatoRecoveryEnchantment> POTATO_RECOVERY = REGISTRATE.object("potato_recovery")
|
2021-11-02 00:08:20 +01:00
|
|
|
.enchantment(EnchantmentCategory.BOW, PotatoRecoveryEnchantment::new)
|
|
|
|
.addSlots(EquipmentSlot.MAINHAND, EquipmentSlot.OFFHAND)
|
2021-07-07 17:33:43 +02:00
|
|
|
.lang("Potato Recovery")
|
|
|
|
.rarity(Rarity.UNCOMMON)
|
|
|
|
.register();
|
2021-07-08 00:03:58 +02:00
|
|
|
|
|
|
|
public static final RegistryEntry<CapacityEnchantment> CAPACITY = REGISTRATE.object("capacity")
|
2021-11-02 00:08:20 +01:00
|
|
|
.enchantment(EnchantmentCategory.ARMOR_CHEST, CapacityEnchantment::new)
|
|
|
|
.addSlots(EquipmentSlot.CHEST)
|
2021-07-08 00:03:58 +02:00
|
|
|
.lang("Capacity")
|
|
|
|
.rarity(Rarity.COMMON)
|
|
|
|
.register();
|
2021-07-07 17:33:43 +02:00
|
|
|
|
|
|
|
public static void register() {}
|
|
|
|
|
|
|
|
}
|