mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-10 06:16:31 +01:00
131c9a5479
- Deprecate CreateRegistrate#lazy, add CreateRegistrate#create, and call registerEventListeners manually - Remove Create#registrate and use Create.REGISTRATE instead - Move tag datagen code and methods to TagGen - Pass event busses directly to Curios#init - Update logging to use SLF4J - Update Flywheel to 0.6.8-95 - Increment version to 0.5.0.g
31 lines
1.1 KiB
Java
31 lines
1.1 KiB
Java
package com.simibubi.create;
|
|
|
|
import static com.simibubi.create.Create.REGISTRATE;
|
|
|
|
import com.simibubi.create.content.curiosities.armor.CapacityEnchantment;
|
|
import com.simibubi.create.content.curiosities.weapons.PotatoRecoveryEnchantment;
|
|
import com.tterrag.registrate.util.entry.RegistryEntry;
|
|
|
|
import net.minecraft.world.entity.EquipmentSlot;
|
|
import net.minecraft.world.item.enchantment.Enchantment.Rarity;
|
|
import net.minecraft.world.item.enchantment.EnchantmentCategory;
|
|
|
|
public class AllEnchantments {
|
|
|
|
public static final RegistryEntry<PotatoRecoveryEnchantment> POTATO_RECOVERY = REGISTRATE.object("potato_recovery")
|
|
.enchantment(EnchantmentCategory.BOW, PotatoRecoveryEnchantment::new)
|
|
.addSlots(EquipmentSlot.MAINHAND, EquipmentSlot.OFFHAND)
|
|
.lang("Potato Recovery")
|
|
.rarity(Rarity.UNCOMMON)
|
|
.register();
|
|
|
|
public static final RegistryEntry<CapacityEnchantment> CAPACITY = REGISTRATE.object("capacity")
|
|
.enchantment(EnchantmentCategory.ARMOR_CHEST, CapacityEnchantment::new)
|
|
.addSlots(EquipmentSlot.CHEST)
|
|
.lang("Capacity")
|
|
.rarity(Rarity.COMMON)
|
|
.register();
|
|
|
|
public static void register() {}
|
|
|
|
}
|