mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-05-17 22:18:44 +02:00
31 lines
1,023 B
Java
31 lines
1,023 B
Java
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 java.util.Collections;
|
|
|
|
public class EnchantibilityCompat implements ICompat {
|
|
@Override
|
|
public void setup() {
|
|
DeferredWorkQueue.runLater(() -> {
|
|
EnchantabilityApi.registerEnchantEffect(EnchantibilityAuraMending.RES, ModEnchantments.AURA_MENDING, EnchantibilityAuraMending::new);
|
|
EnchantabilityApi.registerEffectComponent(EnchantibilityAuraMending.RES, TickEvent.PlayerTickEvent.class, EnchantibilityAuraMending::onPlayerTick, e -> Collections.singletonList(e.player));
|
|
});
|
|
}
|
|
|
|
@Override
|
|
public void setupClient() {
|
|
|
|
}
|
|
|
|
@Override
|
|
public void addItemTags(ItemTagProvider provider) {
|
|
|
|
}
|
|
}
|