EntityPlayer player = getPlayer();
if(player != null) {
int liquidToXP = PneumaticCraftAPIHandler.getInstance().liquidXPs.get(resource.getFluid());
int xpPoints = resource.amount / liquidToXP;
if(doFill) {
player.addExperience(xpPoints);
curXpFluid = resource.getFluid();
}
return xpPoints * liquidToXP;
}
}