@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public Object toLua(ITypeConvertersRegistry registry, Object o) {
if (o instanceof FluidTankInfo) {
FluidTankInfo fti = (FluidTankInfo)o;
Map map = new HashMap();
map.put("capacity", fti.capacity);
FluidStack fluidStack = fti.fluid;
if (fluidStack != null) {
map.put("amount", fluidStack.amount);