ForgeDirection orientation = data.output.getOpposite();
if(getUpgradeManager().hasSneakyUpgrade()) {
orientation = getUpgradeManager().getSneakyOrientation();
}
while (data.getItemIdentifierStack().getStackSize() > 0 && container.fill(orientation, liquidId, false) == liquidId.amount && this.useEnergy(5)) {
container.fill(orientation, liquidId.copy(), true);
data.getItemIdentifierStack().lowerStackSize(1);
Item item = data.getItemIdentifierStack().getItem().item;
if (item.hasContainerItem(data.getItemIdentifierStack().makeNormalStack())) {
Item containerItem = item.getContainerItem();
transport.sendItem(new ItemStack(containerItem, 1));