private IInventoryUtil getAdaptedInventoryUtil(AdjacentTile tile){
IInventory base = (IInventory) tile.tile;
if(base instanceof net.minecraft.inventory.ISidedInventory) {
base = new SidedInventoryMinecraftAdapter((net.minecraft.inventory.ISidedInventory)base, tile.orientation.getOpposite(), true);
}
ExtractionMode mode = getExtractionMode();
switch(mode){
case LeaveFirst:
return SimpleServiceLocator.inventoryUtilFactory.getHidingInventoryUtil(base, tile.orientation.getOpposite(), false, false, 1, 0);
case LeaveLast:
return SimpleServiceLocator.inventoryUtilFactory.getHidingInventoryUtil(base, tile.orientation.getOpposite(), false, false, 0, 1);