@@ -0,0 +1,840 @@
+package openmods.utils;%0A%0Aimport javax.annotation.Nullable;%0Aimport net.minecraft.tileentity.TileEntity;%0Aimport net.minecraft.util.EnumFacing;%0Aimport net.minecraftforge.fluids.capability.CapabilityFluidHandler;%0Aimport net.minecraftforge.fluids.capability.IFluidHandler;%0Aimport net.minecraftforge.fluids.capability.wrappers.FluidHandlerWrapper;%0A%0A@SuppressWarnings(%22deprecation%22)%0Apublic class CompatibilityUtils %7B%0A%0A%09@Nullable%0A%09public static IFluidHandler getFluidHandler(TileEntity te) %7B%0A%09%09final IFluidHandler nativeCapability = te.getCapability(CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY, EnumFacing.UP);%0A%09%09if (nativeCapability != null) return nativeCapability;%0A%0A%09%09if (te instanceof net.minecraftforge.fluids.IFluidHandler) return new FluidHandlerWrapper((net.minecraftforge.fluids.IFluidHandler)te, EnumFacing.UP);%0A%0A%09%09return null;%0A%09%7D%0A%0A%7D%0A

Add utility for handling legacy tanks