Package extracells.util

Source Code of extracells.util.SpecialFluidStack

package extracells.util;

import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidStack;

public class SpecialFluidStack
{
  public long amount;
  int fluidID;

  public SpecialFluidStack(Fluid fluid, long amount)
  {
    fluidID = fluid.getID();
    this.amount = amount;
  }

  public SpecialFluidStack(int id, long amount)
  {
    this.fluidID = id;
    this.amount = amount;
  }

  public long getAmount()
  {
    return amount;
  }

  public int getID()
  {
    return fluidID;
  }

  public FluidStack getFluidStack()
  {
    return new FluidStack(fluidID, (int) amount);
  }
}
TOP

Related Classes of extracells.util.SpecialFluidStack

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.