package com.atsuishio.superbwarfare.init; import com.atsuishio.superbwarfare.ModUtils; import net.minecraft.world.effect.MobEffectInstance; import net.minecraft.world.item.alchemy.Potion; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; public class ModPotion { public static final DeferredRegister POTIONS = DeferredRegister.create(ForgeRegistries.POTIONS, ModUtils.MODID); public static final RegistryObject SHOCK= POTIONS.register("superbwarfare_shock", () -> new Potion(new MobEffectInstance(ModMobEffects.SHOCK.get(), 100, 0))); public static final RegistryObject STRONG_SHOCK = POTIONS.register("superbwarfare_strong_shock", () -> new Potion(new MobEffectInstance(ModMobEffects.SHOCK.get(), 100, 1))); public static final RegistryObject LONG_SHOCK = POTIONS.register("superbwarfare_long_shock", () -> new Potion(new MobEffectInstance(ModMobEffects.SHOCK.get(), 400, 0))); }