package net.ros.common.fluid;

import net.minecraft.block.material.Material;
import net.minecraft.client.util.ITooltipFlag;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraftforge.fluids.BlockFluidClassic;
import net.minecraftforge.fluids.Fluid;
import net.ros.common.ROSConstants;
import org.apache.commons.lang3.tuple.Pair;

import javax.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;

public class BlockFluidBase extends BlockFluidClassic
{
    private List<Pair<ITooltipFlag, String>> informations;

    public BlockFluidBase(final Fluid fluid, final Material material, final String name)
    {
        super(fluid, material);
        this.setRegistryName(ROSConstants.MODID, name);
        this.setDensity(fluid.getDensity());
        this.setUnlocalizedName(name);

        this.informations = new ArrayList<>();
    }

    public void addInformation(String information)
    {
        this.addInformation(information, ITooltipFlag.TooltipFlags.NORMAL);
    }

    public void addInformation(String information, ITooltipFlag advanced)
    {
        this.informations.add(Pair.of(advanced, information));
    }

    @Override
    public void addInformation(ItemStack stack, @Nullable World player, List<String> tooltip, ITooltipFlag advanced)
    {
        this.informations.forEach(pair ->
        {
            if (pair.getKey() == ITooltipFlag.TooltipFlags.ADVANCED && advanced != ITooltipFlag.TooltipFlags.ADVANCED)
                return;
            tooltip.add(pair.getValue());
        });

        super.addInformation(stack, player, tooltip, advanced);
    }
}

@@ -295,75 +295,129 @@
 net.
-ros.common.ROSConstants;%0Aimport org.apache.commons.lang3.tuple.Pair
+minecraftforge.fml.relauncher.Side;%0Aimport net.minecraftforge.fml.relauncher.SideOnly;%0Aimport net.ros.common.ROSConstants
 ;%0A%0Ai
@@ -578,35 +578,15 @@
 ist%3C
-Pair%3CITooltipFlag, 
 String%3E
-%3E
  inf
@@ -594,16 +594,36 @@
 rmations
+ = new ArrayList%3C%3E()
 ;%0A%0A    p
@@ -887,56 +887,8 @@
 me);
-%0A%0A        this.informations = new ArrayList%3C%3E();
 %0A   
@@ -961,20 +961,17 @@
    this.
-addI
+i
 nformati
@@ -972,16 +972,21 @@
 ormation
+s.add
 (informa
@@ -993,585 +993,222 @@
 tion
-, ITooltipFlag.TooltipFlags.NORMAL);%0A    %7D%0A%0A    public void addInformation(String information, ITooltipFlag advanced)%0A    %7B%0A        this.informations.add(Pair.of(advanced, information));%0A    %7D%0A%0A    @Override%0A    public void addInformation(ItemStack stack, @Nullable World player, List%3CString%3E tooltip, ITooltipFlag advanced)%0A    %7B%0A        this.informations.forEach(pair -%3E%0A        %7B%0A            if (pair.getKey() == ITooltipFlag.TooltipFlags.ADVANCED && advanced != ITooltipFlag.TooltipFlags.ADVANCED)%0A                return;%0A            tooltip.add(pair.getValue());%0A        %7D
+);%0A    %7D%0A%0A    @Override%0A    @SideOnly(Side.CLIENT)%0A    public void addInformation(ItemStack stack, @Nullable World player, List%3CString%3E tooltip, ITooltipFlag advanced)%0A    %7B%0A        tooltip.addAll(this.informations
 );%0A%0A

Fix blockfluid tooltip flag