public int getTier() { if (tier == -1 && worldObj != null) { tier = worldObj.getBlockMetadata(xCoord, yCoord, zCoord); if (tank == null) { tank = new FluidTank(FluidContainerRegistry.BUCKET_VOLUME * (16 * (tier + 1))); } super.setMaxStorage(2 * (tier + 1)); } return tier; }
public void setTier(int tier) { if (tank == null) { tank = new FluidTank(FluidContainerRegistry.BUCKET_VOLUME * (16 * (tier + 1))); } super.setMaxStorage(2 * (tier + 1)); }