package de.ellpeck.naturesaura.compat.enchantibility; import de.ellpeck.naturesaura.compat.ICompat; import de.ellpeck.naturesaura.data.ItemTagProvider; import de.ellpeck.naturesaura.enchant.ModEnchantments; import net.minecraftforge.event.TickEvent; import net.minecraftforge.fml.DeferredWorkQueue; import quarris.enchantability.api.EnchantabilityApi; import quarris.enchantability.api.EnchantabilityApi.IInternals; import java.util.Collections; public class EnchantibilityCompat implements ICompat { @Override public void setup() { DeferredWorkQueue.runLater(() -> { IInternals api = EnchantabilityApi.getInstance(); api.registerEnchantEffect(EnchantibilityAuraMending.RES, ModEnchantments.AURA_MENDING, EnchantibilityAuraMending::new); api.registerEffectComponent(EnchantibilityAuraMending.RES, TickEvent.PlayerTickEvent.class, EnchantibilityAuraMending::onPlayerTick, e -> Collections.singletonList(e.player)); }); } @Override public void setupClient() { } @Override public void addItemTags(ItemTagProvider provider) { } }