package com.momosoftworks.coldsweat.core.init;

import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.world.item.alchemy.Potion;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import com.momosoftworks.coldsweat.ColdSweat;
import net.minecraftforge.registries.RegistryObject;

public class PotionInit
{
    public static final DeferredRegister<Potion> POTIONS = DeferredRegister.create(ForgeRegistries.POTIONS, ColdSweat.MOD_ID);

    public static final RegistryObject<Potion> ICE_RESISTANCE = POTIONS.register("ice_resistance", () ->
            new Potion(new MobEffectInstance(EffectInit.ICE_RESISTANCE.get(), 3600)));
    public static final RegistryObject<Potion> LONG_ICE_RESISTANCE = POTIONS.register("long_ice_resistance", () ->
            new Potion("ice_resistance", new MobEffectInstance(EffectInit.ICE_RESISTANCE.get(), 7200)));
}
