NaturesAura/src/main/java/de/ellpeck/naturesaura/compat/enchantibility/EnchantibilityCompat.java

33 lines
1.1 KiB
Java
Raw Normal View History

2020-02-01 17:22:34 +01:00
package de.ellpeck.naturesaura.compat.enchantibility;
import de.ellpeck.naturesaura.compat.ICompat;
import de.ellpeck.naturesaura.data.ItemTagProvider;
2020-02-07 21:25:22 +01:00
import de.ellpeck.naturesaura.enchant.ModEnchantments;
import net.minecraftforge.event.TickEvent;
import net.minecraftforge.fml.DeferredWorkQueue;
2020-02-07 21:25:22 +01:00
import quarris.enchantability.api.EnchantabilityApi;
import quarris.enchantability.api.EnchantabilityApi.IInternals;
import java.util.Collections;
2020-02-01 17:22:34 +01:00
public class EnchantibilityCompat implements ICompat {
@Override
2020-04-26 20:40:28 +02:00
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));
});
2020-02-01 17:22:34 +01:00
}
@Override
2020-04-26 20:40:28 +02:00
public void setupClient() {
2020-02-01 17:22:34 +01:00
}
@Override
public void addItemTags(ItemTagProvider provider) {
}
}