package com.taxanthic.hideout.fluids;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemBucket;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fml.common.registry.GameRegistry;

import com.taxanthic.hideout.items.RegistryHelper;
import com.taxanthic.hideout.main.HideoutMain;

public class FluidHandler extends HideoutMain {
	public static Fluid cooledGlycol; //Glycol is a coolant used in place of Liquid Hydrogen in basic Particle Accelerators (Such as ALICE)
	public static Block fluidCooledGlycol;
	public static ItemBucket cooledGlycolBucket;
	public static Fluid liquidGlowstone;
	public static Block fluidGlowstone;
	public static ItemBucket liquidGlowstoneBucket;
	
	public static void init() {
		//Liquid Declarations
		cooledGlycol = new Fluid("cooledGlycol");
		liquidGlowstone = new Fluid("liquidGlowstone");
		FluidRegistry.registerFluid(liquidGlowstone); //Make the game know that it's a thing to be registered
		FluidRegistry.registerFluid(cooledGlycol); //Register the Glycol
		//Fluid
		cooledGlycol.setLuminosity(0); //Doesn't glow
		cooledGlycol.setDensity(3500); //In-between Glowstone and Lava
		cooledGlycol.setTemperature(-3524); //Cooled
		cooledGlycol.setViscosity(30); //Very loose
		cooledGlycol.setGaseous(false); //Is not a gas
		liquidGlowstone.setLuminosity(14); //Glows like the real thing
		liquidGlowstone.setDensity(4000); //Denser than lava
		liquidGlowstone.setTemperature(2600); //Hotter than lava (Solid block in nether surrounded by lava so it has to have a higher temperature as a liquid)
		liquidGlowstone.setViscosity(8000); //More viscous (sticky to itself) than lava
		liquidGlowstone.setGaseous(false); //Is not a gas
		//Block and register the block
		fluidGlowstone = new FluidGlowstone(liquidGlowstone, Material.lava).setUnlocalizedName("liquidGlowstone").setCreativeTab(tagTabBlocks);
		fluidCooledGlycol = new CooledGlycol(cooledGlycol, Material.lava).setUnlocalizedName("cooledGlycol").setCreativeTab(tagTabBlocks);
		GameRegistry.registerBlock(fluidGlowstone, "fluidGlowstone");
			
	}
}
