package xyz.brassgoggledcoders.steamagerevolution.modules.alchemical.multiblocks.vat.tileentities;

import com.teamacronymcoders.base.multiblock.validation.IMultiblockValidator;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.fluids.capability.CapabilityFluidHandler;
import xyz.brassgoggledcoders.steamagerevolution.utils.multiblock.MultiblockTankWrapper;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

public class TileEntityVatFluidInput extends TileEntityVatPart {
    @Override
    public boolean hasCapability(@Nonnull Capability<?> capability, @Nullable EnumFacing facing) {
        return capability == CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY || super.hasCapability(capability, facing);
    }

    @Override
    @Nonnull
    public <T> T getCapability(@Nonnull Capability<T> capability, @Nullable EnumFacing facing) {
        if (capability == CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY) {
            return CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY.cast(new MultiblockTankWrapper(this, true));
        }
        return super.getCapability(capability, facing);
    }

    @Override
    public boolean isGoodForSides(IMultiblockValidator validatorCallback) {
        return true;
    }

    @Override
    public boolean isGoodForBottom(IMultiblockValidator validatorCallback) {
        return true;
    }

}

@@ -93,16 +93,84 @@
 ities;%0A%0A
+import javax.annotation.Nonnull;%0Aimport javax.annotation.Nullable;%0A%0A
 import c
@@ -239,16 +239,17 @@
 idator;%0A
+%0A
 import n
@@ -498,76 +498,8 @@
 r;%0A%0A
-import javax.annotation.Nonnull;%0Aimport javax.annotation.Nullable;%0A%0A
 publ
@@ -559,20 +559,17 @@
 tPart %7B%0A
-    
+%09
 @Overrid
@@ -562,36 +562,33 @@
 rt %7B%0A%09@Override%0A
-    
+%09
 public boolean h
@@ -662,32 +662,26 @@
 g facing) %7B%0A
-        
+%09%09
 return capab
@@ -777,35 +777,29 @@
 y, facing);%0A
-    %7D%0A%0A    
+%09%7D%0A%0A%09
 @Override%0A  
@@ -796,20 +796,17 @@
 verride%0A
-    
+%09
 @Nonnull
@@ -806,20 +806,17 @@
 Nonnull%0A
-    
+%09
 public %3C
@@ -904,19 +904,12 @@
 ) %7B%0A
-        
+%09%09
 if
- 
 (cap
@@ -974,20 +974,11 @@
 ) %7B%0A
-            
+%09%09%09
 retu
@@ -1069,34 +1069,23 @@
 is, 
-tru
+fals
 e));%0A
-        %7D%0A        
+%09%09%7D%0A%09%09
 retu
@@ -1128,27 +1128,21 @@
 acing);%0A
-    %7D%0A%0A    
+%09%7D%0A%0A%09
 @Overrid
@@ -1135,36 +1135,33 @@
 %0A%09%7D%0A%0A%09@Override%0A
-    
+%09
 public boolean i
@@ -1212,32 +1212,26 @@
 Callback) %7B%0A
-        
+%09%09
 return true;
@@ -1235,19 +1235,13 @@
 ue;%0A
-    %7D%0A%0A    
+%09%7D%0A%0A%09
 @Ove
@@ -1246,20 +1246,17 @@
 verride%0A
-    
+%09
 public b
@@ -1324,16 +1324,10 @@
 ) %7B%0A
-        
+%09%09
 retu
@@ -1339,12 +1339,9 @@
 ue;%0A
-    
+%09
 %7D%0A%0A%7D

Fix vat input also being an output