// TODO TE compat?
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();
                    }
                });
    }
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"),
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")) {
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));
}