diff --git a/src/main/java/com/gregtechceu/gtceu/api/machine/trait/NotifiableFluidTank.java b/src/main/java/com/gregtechceu/gtceu/api/machine/trait/NotifiableFluidTank.java index d94952c8d6..383cac7d5e 100644 --- a/src/main/java/com/gregtechceu/gtceu/api/machine/trait/NotifiableFluidTank.java +++ b/src/main/java/com/gregtechceu/gtceu/api/machine/trait/NotifiableFluidTank.java @@ -262,6 +262,18 @@ public boolean isEmpty() { return isEmpty; } + private long getSpace(int slot){ + return this.getStorages()[slot].getCapacity() - this.getStorages()[slot].getFluidAmount(); + } + + private long getTotalSpace(){ + long total = 0; + for (FluidStorage storage : this.getStorages()) { + total += storage.getCapacity() - storage.getFluidAmount(); + } + return total; + } + public void exportToNearby(@NotNull Direction... facings) { if (isEmpty()) return; var level = getMachine().getLevel();