/* * Decompiled with CFR 0.152. */ package net.minecraft.world.item.alchemy; import net.minecraft.core.Holder; import net.minecraft.core.Registry; import net.minecraft.core.registries.BuiltInRegistries; import net.minecraft.resources.Identifier; import net.minecraft.world.effect.MobEffectInstance; import net.minecraft.world.effect.MobEffects; import net.minecraft.world.item.alchemy.Potion; public class Potions { public static final Holder WATER = Potions.register("water", new Potion("water", new MobEffectInstance[0])); public static final Holder MUNDANE = Potions.register("mundane", new Potion("mundane", new MobEffectInstance[0])); public static final Holder THICK = Potions.register("thick", new Potion("thick", new MobEffectInstance[0])); public static final Holder AWKWARD = Potions.register("awkward", new Potion("awkward", new MobEffectInstance[0])); public static final Holder NIGHT_VISION = Potions.register("night_vision", new Potion("night_vision", new MobEffectInstance(MobEffects.NIGHT_VISION, 3600))); public static final Holder LONG_NIGHT_VISION = Potions.register("long_night_vision", new Potion("night_vision", new MobEffectInstance(MobEffects.NIGHT_VISION, 9600))); public static final Holder INVISIBILITY = Potions.register("invisibility", new Potion("invisibility", new MobEffectInstance(MobEffects.INVISIBILITY, 3600))); public static final Holder LONG_INVISIBILITY = Potions.register("long_invisibility", new Potion("invisibility", new MobEffectInstance(MobEffects.INVISIBILITY, 9600))); public static final Holder LEAPING = Potions.register("leaping", new Potion("leaping", new MobEffectInstance(MobEffects.JUMP_BOOST, 3600))); public static final Holder LONG_LEAPING = Potions.register("long_leaping", new Potion("leaping", new MobEffectInstance(MobEffects.JUMP_BOOST, 9600))); public static final Holder STRONG_LEAPING = Potions.register("strong_leaping", new Potion("leaping", new MobEffectInstance(MobEffects.JUMP_BOOST, 1800, 1))); public static final Holder FIRE_RESISTANCE = Potions.register("fire_resistance", new Potion("fire_resistance", new MobEffectInstance(MobEffects.FIRE_RESISTANCE, 3600))); public static final Holder LONG_FIRE_RESISTANCE = Potions.register("long_fire_resistance", new Potion("fire_resistance", new MobEffectInstance(MobEffects.FIRE_RESISTANCE, 9600))); public static final Holder SWIFTNESS = Potions.register("swiftness", new Potion("swiftness", new MobEffectInstance(MobEffects.SPEED, 3600))); public static final Holder LONG_SWIFTNESS = Potions.register("long_swiftness", new Potion("swiftness", new MobEffectInstance(MobEffects.SPEED, 9600))); public static final Holder STRONG_SWIFTNESS = Potions.register("strong_swiftness", new Potion("swiftness", new MobEffectInstance(MobEffects.SPEED, 1800, 1))); public static final Holder SLOWNESS = Potions.register("slowness", new Potion("slowness", new MobEffectInstance(MobEffects.SLOWNESS, 1800))); public static final Holder LONG_SLOWNESS = Potions.register("long_slowness", new Potion("slowness", new MobEffectInstance(MobEffects.SLOWNESS, 4800))); public static final Holder STRONG_SLOWNESS = Potions.register("strong_slowness", new Potion("slowness", new MobEffectInstance(MobEffects.SLOWNESS, 400, 3))); public static final Holder TURTLE_MASTER = Potions.register("turtle_master", new Potion("turtle_master", new MobEffectInstance(MobEffects.SLOWNESS, 400, 3), new MobEffectInstance(MobEffects.RESISTANCE, 400, 2))); public static final Holder LONG_TURTLE_MASTER = Potions.register("long_turtle_master", new Potion("turtle_master", new MobEffectInstance(MobEffects.SLOWNESS, 800, 3), new MobEffectInstance(MobEffects.RESISTANCE, 800, 2))); public static final Holder STRONG_TURTLE_MASTER = Potions.register("strong_turtle_master", new Potion("turtle_master", new MobEffectInstance(MobEffects.SLOWNESS, 400, 5), new MobEffectInstance(MobEffects.RESISTANCE, 400, 3))); public static final Holder WATER_BREATHING = Potions.register("water_breathing", new Potion("water_breathing", new MobEffectInstance(MobEffects.WATER_BREATHING, 3600))); public static final Holder LONG_WATER_BREATHING = Potions.register("long_water_breathing", new Potion("water_breathing", new MobEffectInstance(MobEffects.WATER_BREATHING, 9600))); public static final Holder HEALING = Potions.register("healing", new Potion("healing", new MobEffectInstance(MobEffects.INSTANT_HEALTH, 1))); public static final Holder STRONG_HEALING = Potions.register("strong_healing", new Potion("healing", new MobEffectInstance(MobEffects.INSTANT_HEALTH, 1, 1))); public static final Holder HARMING = Potions.register("harming", new Potion("harming", new MobEffectInstance(MobEffects.INSTANT_DAMAGE, 1))); public static final Holder STRONG_HARMING = Potions.register("strong_harming", new Potion("harming", new MobEffectInstance(MobEffects.INSTANT_DAMAGE, 1, 1))); public static final Holder POISON = Potions.register("poison", new Potion("poison", new MobEffectInstance(MobEffects.POISON, 900))); public static final Holder LONG_POISON = Potions.register("long_poison", new Potion("poison", new MobEffectInstance(MobEffects.POISON, 1800))); public static final Holder STRONG_POISON = Potions.register("strong_poison", new Potion("poison", new MobEffectInstance(MobEffects.POISON, 432, 1))); public static final Holder REGENERATION = Potions.register("regeneration", new Potion("regeneration", new MobEffectInstance(MobEffects.REGENERATION, 900))); public static final Holder LONG_REGENERATION = Potions.register("long_regeneration", new Potion("regeneration", new MobEffectInstance(MobEffects.REGENERATION, 1800))); public static final Holder STRONG_REGENERATION = Potions.register("strong_regeneration", new Potion("regeneration", new MobEffectInstance(MobEffects.REGENERATION, 450, 1))); public static final Holder STRENGTH = Potions.register("strength", new Potion("strength", new MobEffectInstance(MobEffects.STRENGTH, 3600))); public static final Holder LONG_STRENGTH = Potions.register("long_strength", new Potion("strength", new MobEffectInstance(MobEffects.STRENGTH, 9600))); public static final Holder STRONG_STRENGTH = Potions.register("strong_strength", new Potion("strength", new MobEffectInstance(MobEffects.STRENGTH, 1800, 1))); public static final Holder WEAKNESS = Potions.register("weakness", new Potion("weakness", new MobEffectInstance(MobEffects.WEAKNESS, 1800))); public static final Holder LONG_WEAKNESS = Potions.register("long_weakness", new Potion("weakness", new MobEffectInstance(MobEffects.WEAKNESS, 4800))); public static final Holder LUCK = Potions.register("luck", new Potion("luck", new MobEffectInstance(MobEffects.LUCK, 6000))); public static final Holder SLOW_FALLING = Potions.register("slow_falling", new Potion("slow_falling", new MobEffectInstance(MobEffects.SLOW_FALLING, 1800))); public static final Holder LONG_SLOW_FALLING = Potions.register("long_slow_falling", new Potion("slow_falling", new MobEffectInstance(MobEffects.SLOW_FALLING, 4800))); public static final Holder WIND_CHARGED = Potions.register("wind_charged", new Potion("wind_charged", new MobEffectInstance(MobEffects.WIND_CHARGED, 3600))); public static final Holder WEAVING = Potions.register("weaving", new Potion("weaving", new MobEffectInstance(MobEffects.WEAVING, 3600))); public static final Holder OOZING = Potions.register("oozing", new Potion("oozing", new MobEffectInstance(MobEffects.OOZING, 3600))); public static final Holder INFESTED = Potions.register("infested", new Potion("infested", new MobEffectInstance(MobEffects.INFESTED, 3600))); private static Holder register(String name, Potion potion) { return Registry.registerForHolder(BuiltInRegistries.POTION, Identifier.withDefaultNamespace(name), potion); } public static Holder bootstrap(Registry registry) { return WATER; } }