private static void registerFluids(BlockRegistry blockRegistry) {
        // TODO Adjust properties
        Fluid steam = new Fluid("steam", new ResourceLocation(SteamAgeRevolution.MODID, "fluids/steam"),
                new ResourceLocation(SteamAgeRevolution.MODID, "fluids/steam_flow")).setGaseous(true)
                        .setTemperature(1000).setViscosity(200);
        if(!(FluidRegistry.isFluidRegistered(steam))) { // Soft registration
            FluidRegistry.registerFluid(steam);
            FluidRegistry.addBucketForFluid(steam);
        }
        blockRegistry.register(new BlockSARFluid("steam", FluidRegistry.getFluid("steam"), Material.LAVA));
        Fluid sulphur_dioxide = new Fluid("sulphur_dioxide",
                new ResourceLocation(SteamAgeRevolution.MODID, "fluids/sulphur_dioxide"),
                new ResourceLocation(SteamAgeRevolution.MODID, "fluids/sulphur_dioxide_flow")).setViscosity(250)
                        .setGaseous(true).setDensity(-100);
        FluidRegistry.registerFluid(sulphur_dioxide);
        FluidRegistry.addBucketForFluid(sulphur_dioxide);
        blockRegistry.register(new BlockDamagingFluid("sulphur_dioxide", FluidRegistry.getFluid("sulphur_dioxide"),
                Material.WATER, SARBlocks.damageSourceGas, 2));
        Fluid sulphuric_acid = new Fluid("sulphuric_acid",
                new ResourceLocation(SteamAgeRevolution.MODID, "fluids/sulphuric_acid"),
                new ResourceLocation(SteamAgeRevolution.MODID, "fluids/sulphuric_acid_flow")).setViscosity(500);
        FluidRegistry.registerFluid(sulphuric_acid);
        FluidRegistry.addBucketForFluid(sulphuric_acid);
        blockRegistry.register(new BlockAcidFluid("sulphuric_acid", FluidRegistry.getFluid("sulphuric_acid"),
                Material.WATER, SARBlocks.damageSourceAcid, 4));
        // TODO TE compat?
        Fluid liquid_glowstone = new Fluid("liquid_glowstone",
                new ResourceLocation(SteamAgeRevolution.MODID, "fluids/liquid_glowstone"),
                new ResourceLocation(SteamAgeRevolution.MODID, "fluids/liquid_glowstone_flow")).setViscosity(2000)
                        .setGaseous(true);
        FluidRegistry.registerFluid(liquid_glowstone);
        FluidRegistry.addBucketForFluid(liquid_glowstone);
        blockRegistry.register(new BlockLiquidGlowstone("liquid_glowstone", FluidRegistry.getFluid("liquid_glowstone"),
                Material.LAVA));
        Fluid potion = new Fluid("potion", new ResourceLocation(SteamAgeRevolution.MODID, "fluids/solution"),
                new ResourceLocation(SteamAgeRevolution.MODID, "fluids/solution_flowing")) {
            @SuppressWarnings("deprecation")
            @Override
            public String getLocalizedName(FluidStack stack) {
                return I18n.translateToLocal(
                        PotionUtils.getPotionTypeFromNBT(stack.tag).getNamePrefixed("potion.effect."));
            }
            @Override
            public int getColor(FluidStack stack) {
                return PotionUtils.getPotionColorFromEffectList(PotionUtils.getEffectsFromTag(stack.tag));
            }
        };
        FluidRegistry.registerFluid(potion);
        FluidRegistry.addBucketForFluid(potion);
        FluidRegistry
                .registerFluid(new Fluid("slime", new ResourceLocation(SteamAgeRevolution.MODID, "fluids/solution"),
                        new ResourceLocation(SteamAgeRevolution.MODID, "fluids/solution")) {
                    @Override
                    public int getColor() {
                        return Color.GREEN.getRGB();
                    }
                });
    }
private static void registerFluids(BlockRegistry blockRegistry) {
       
        Fluid steam = new Fluid("steam", new ResourceLocation(SteamAgeRevolution.MODID, "fluids/steam"),
                new ResourceLocation(SteamAgeRevolution.MODID, "fluids/steam_flow")).setGaseous(true)
                        .setTemperature(1000).setViscosity(200);
        if(!(FluidRegistry.isFluidRegistered(steam))) {
            FluidRegistry.registerFluid(steam);
            FluidRegistry.addBucketForFluid(steam);
        }
        blockRegistry.register(new BlockSARFluid("steam", FluidRegistry.getFluid("steam"), Material.LAVA));
        Fluid sulphur_dioxide = new Fluid("sulphur_dioxide",
                new ResourceLocation(SteamAgeRevolution.MODID, "fluids/sulphur_dioxide"),
                new ResourceLocation(SteamAgeRevolution.MODID, "fluids/sulphur_dioxide_flow")).setViscosity(250)
                        .setGaseous(true).setDensity(-100);
        FluidRegistry.registerFluid(sulphur_dioxide);
        FluidRegistry.addBucketForFluid(sulphur_dioxide);
        blockRegistry.register(new BlockDamagingFluid("sulphur_dioxide", FluidRegistry.getFluid("sulphur_dioxide"),
                Material.WATER, SARBlocks.damageSourceGas, 2));
        Fluid sulphuric_acid = new Fluid("sulphuric_acid",
                new ResourceLocation(SteamAgeRevolution.MODID, "fluids/sulphuric_acid"),
                new ResourceLocation(SteamAgeRevolution.MODID, "fluids/sulphuric_acid_flow")).setViscosity(500);
        FluidRegistry.registerFluid(sulphuric_acid);
        FluidRegistry.addBucketForFluid(sulphuric_acid);
        blockRegistry.register(new BlockAcidFluid("sulphuric_acid", FluidRegistry.getFluid("sulphuric_acid"),
                Material.WATER, SARBlocks.damageSourceAcid, 4));
       
        Fluid liquid_glowstone = new Fluid("liquid_glowstone",
                new ResourceLocation(SteamAgeRevolution.MODID, "fluids/liquid_glowstone"),
                new ResourceLocation(SteamAgeRevolution.MODID, "fluids/liquid_glowstone_flow")).setViscosity(2000)
                        .setGaseous(true);
        FluidRegistry.registerFluid(liquid_glowstone);
        FluidRegistry.addBucketForFluid(liquid_glowstone);
        blockRegistry.register(new BlockLiquidGlowstone("liquid_glowstone", FluidRegistry.getFluid("liquid_glowstone"),
                Material.LAVA));
        Fluid potion = new Fluid("potion", new ResourceLocation(SteamAgeRevolution.MODID, "fluids/solution"),
                new ResourceLocation(SteamAgeRevolution.MODID, "fluids/solution_flowing")) {
            @SuppressWarnings("deprecation")
            @Override
            public String getLocalizedName(FluidStack stack) {
                return I18n.translateToLocal(
                        PotionUtils.getPotionTypeFromNBT(stack.tag).getNamePrefixed("potion.effect."));
            }
            @Override
            public int getColor(FluidStack stack) {
                return PotionUtils.getPotionColorFromEffectList(PotionUtils.getEffectsFromTag(stack.tag));
            }
        };
        FluidRegistry.registerFluid(potion);
        FluidRegistry.addBucketForFluid(potion);
        FluidRegistry
                .registerFluid(new Fluid("slime", new ResourceLocation(SteamAgeRevolution.MODID, "fluids/solution"),
                        new ResourceLocation(SteamAgeRevolution.MODID, "fluids/solution")) {
                    @Override
                    public int getColor() {
                        return Color.GREEN.getRGB();
                    }
                });
    }
private static void registerfluids(blockregistry blockregistry) { fluid steam = new fluid("steam", new resourcelocation(steamagerevolution.modid, "fluids/steam"), new resourcelocation(steamagerevolution.modid, "fluids/steam_flow")).setgaseous(true) .settemperature(1000).setviscosity(200); if(!(fluidregistry.isfluidregistered(steam))) { fluidregistry.registerfluid(steam); fluidregistry.addbucketforfluid(steam); } blockregistry.register(new blocksarfluid("steam", fluidregistry.getfluid("steam"), material.lava)); fluid sulphur_dioxide = new fluid("sulphur_dioxide", new resourcelocation(steamagerevolution.modid, "fluids/sulphur_dioxide"), new resourcelocation(steamagerevolution.modid, "fluids/sulphur_dioxide_flow")).setviscosity(250) .setgaseous(true).setdensity(-100); fluidregistry.registerfluid(sulphur_dioxide); fluidregistry.addbucketforfluid(sulphur_dioxide); blockregistry.register(new blockdamagingfluid("sulphur_dioxide", fluidregistry.getfluid("sulphur_dioxide"), material.water, sarblocks.damagesourcegas, 2)); fluid sulphuric_acid = new fluid("sulphuric_acid", new resourcelocation(steamagerevolution.modid, "fluids/sulphuric_acid"), new resourcelocation(steamagerevolution.modid, "fluids/sulphuric_acid_flow")).setviscosity(500); fluidregistry.registerfluid(sulphuric_acid); fluidregistry.addbucketforfluid(sulphuric_acid); blockregistry.register(new blockacidfluid("sulphuric_acid", fluidregistry.getfluid("sulphuric_acid"), material.water, sarblocks.damagesourceacid, 4)); fluid liquid_glowstone = new fluid("liquid_glowstone", new resourcelocation(steamagerevolution.modid, "fluids/liquid_glowstone"), new resourcelocation(steamagerevolution.modid, "fluids/liquid_glowstone_flow")).setviscosity(2000) .setgaseous(true); fluidregistry.registerfluid(liquid_glowstone); fluidregistry.addbucketforfluid(liquid_glowstone); blockregistry.register(new blockliquidglowstone("liquid_glowstone", fluidregistry.getfluid("liquid_glowstone"), material.lava)); fluid potion = new fluid("potion", new resourcelocation(steamagerevolution.modid, "fluids/solution"), new resourcelocation(steamagerevolution.modid, "fluids/solution_flowing")) { @suppresswarnings("deprecation") @override public string getlocalizedname(fluidstack stack) { return i18n.translatetolocal( potionutils.getpotiontypefromnbt(stack.tag).getnameprefixed("potion.effect.")); } @override public int getcolor(fluidstack stack) { return potionutils.getpotioncolorfromeffectlist(potionutils.geteffectsfromtag(stack.tag)); } }; fluidregistry.registerfluid(potion); fluidregistry.addbucketforfluid(potion); fluidregistry .registerfluid(new fluid("slime", new resourcelocation(steamagerevolution.modid, "fluids/solution"), new resourcelocation(steamagerevolution.modid, "fluids/solution")) { @override public int getcolor() { return color.green.getrgb(); } }); }